Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2012, 09:41 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default Get terrain height at Point2d

Stupid question I know, but can anyone advise how to get the terrain height at a given 2d map point (x, y) please?
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote
  #2  
Old 09-25-2012, 10:16 PM
VO101_Tom's Avatar
VO101_Tom VO101_Tom is offline
Approved Member
 
Join Date: Jul 2010
Location: Budapest, Hungary
Posts: 799
Default

I do not know that there is a possibility during the game (I think not), but you can see in FMB. IvanK gave me a good tip couple of weeks ago:

__________________
| AFBs of CloD 2[/URL] |www.pumaszallas.hu

i7 7700K 4.8GHz, 32GB Ram 3GHz, MSI GTX 1070 8GB, 27' 1920x1080, W10/64, TrackIR 4Pro, G940
Cliffs of Dover Bugtracker site: share and vote issues here
Reply With Quote
  #3  
Old 09-25-2012, 10:37 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Thankyou Tom, I want to get the terrain height at various point2d's dynamically via script at runtime though.
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote
  #4  
Old 09-26-2012, 02:34 PM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

it should be possible to place something at runtime sticky to the ground, and then get the height of that object, resulting in the height of the terrain on which it was placed on.

this would work if a method to sticky place an object on terrain at runtime is available. nad it must be, as they have vehicles which are following the terrain.
Reply With Quote
  #5  
Old 09-26-2012, 11:23 PM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by adonys View Post
it should be possible to place something at runtime sticky to the ground, and then get the height of that object, resulting in the height of the terrain on which it was placed on.

this would work if a method to sticky place an object on terrain at runtime is available. nad it must be, as they have vehicles which are following the terrain.
I was hoping there was a C# method for this function, but alas there appears not to be one. I had also thought of implimenting your solution. Dynamically place an object, get its Z-height, then destroy the just-placed object. Very clunky but so be it. Thankyou.
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote
  #6  
Old 09-27-2012, 01:37 AM
IvanK IvanK is offline
Approved Member
 
Join Date: Oct 2007
Location: Australia
Posts: 886
Default

Check the code in ATAGs bombing tool. It does it. I think colander was the artist of this tool.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.