View Full Version : Relative and absolute altitude ???
VladAlex
Sep 1 2006, 23:43
Hello !
Is it possible to give a absolute altitude to an object ?
Im trying to make an elevated road object and i want all my road elements have exactly the same altitude relative to the level of sea and no relative to the height of earth.
Chris Death
Sep 2 2006, 01:54
When selecting you ground vertices press: shift-e
A window should pop up where you can check some
properties like:
above surface
under surface
height fence
on surcafe
i think this is what you're after
Try playing around with them and don't forget to press 'apply'
after you changed something (in your highway) http://forums.bistudio.com/oldsmileys/wink_o.gif
~S~ CD
VladAlex
Sep 2 2006, 08:16
Yep... I try to manage with that all the night. But it dont work. Because Above surface or Under surface are relative to... THE SURFACE ! http://forums.bistudio.com/oldsmileys/sad_o.gif
No, i was thinking for a more complicated way. Is it possible to give a absolute atlitude (from the level of sea ?) for an object in the cpp ?
And, it's not for my highway http://forums.bistudio.com/oldsmileys/wink_o.gif I'm making a lot of others road stuff... http://forums.bistudio.com/oldsmileys/whistle.gif
OMG OMG OMG OMG ! http://forums.bistudio.com/oldsmileys/yay.gif I succeed ! I found a way to make my dream become reality. Unfortunatly, I spend my weekend far from my computer. So, i will show you screens next week...
I'd be interested to see how you did that http://forums.bistudio.com/oldsmileys/biggrin_o.gif
philcommando
Sep 7 2006, 18:06
1. in the config of your object, add at the init eventhandler to camcreate a box addon( self created in 02)
2. Add a script in the eventhandler to setpos the box at 0 height far away in the corner of the map - xyz coordinates.
3. Add another script to your object to take reference height from the box each time your object is loaded ingame.
Thus, whenever your object loads, the object will reference height to the sea level always, no matter what the tides are. This is the concept. I dont have a exact script with me, but if you want, you can download my Tarawa ship addon to check for the script. I used it offload the cargo whenever my boat moves 1 meter above sealevel which will always be land height.
Just one way to skin the cat. http://forums.bistudio.com/oldsmileys/wink_o.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.