HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Does anyone know how to remove the camera height map from a map?

04-04-2008, 08:56 AM#1
Anitarf
Is there a camera height map at all, or is it calculated in real time? Anyway, my problem is that when I calculate where the camera should be in order to place a unit in the center of the screen right in fornt of it, on uneven terrain the camera's z is actualy not exact, since the camera adapts to the terrain around it.

If for example the camera's target point is on the center of a hill and the camera has 0 z offset, it's target won't actualy be at the top of the hill but slightly lower in the ground due to surrounding terrain being lower. I'd like to change that by forcing the camera to follow the terrain exactly.

I tried correcting it's z immediately after I move the camera by getting it's actual height, calculating the difference between that and the height it should be at and then setting it again to the height it should be at minus that difference; however, it turns out that when you change the camera's position or any of it's stats, even if you set the duration to 0 it won't update instantly, causing the correction to be incorrect on this and then on subsequent camera changes, causing the camera to tremble badly.
04-04-2008, 10:45 AM#2
Captain Griffen
Quote:
Originally Posted by Anitarf
I tried correcting it's z immediately after I move the camera by getting it's actual height, calculating the difference between that and the height it should be at and then setting it again to the height it should be at minus that difference; however, it turns out that when you change the camera's position or any of it's stats, even if you set the duration to 0 it won't update instantly, causing the correction to be incorrect on this and then on subsequent camera changes, causing the camera to tremble badly.

Duration -1. works without feedback down to below 0.01 second itinerations (AdjustCameraField).

Also, you might like to investigate CameraSetups. If they can be applied instantly, then the problem is solved.