HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera that Follows terrian

01-25-2004, 12:22 AM#1
LegolasArcher
Im sorry If I already posted this, I just reformated and lost the link, and am unable to find the thread, if I did

I'm working on a first person (non-FPS mod) map that will need hilly terrian. This raises the question of how to perevent the camera from going though the terrian- instead of over it. JASS, GUI, it makes no difference to me. If you can find a way to do this (without using the FPS mod type measures) I will reward you, if you like, along with a spot in the (short) credits of the map.

I will post more intfo about the map its self in the Maps in Development forum.
01-25-2004, 02:35 AM#2
AllPainful
Can you do something like this every 1 second:

Set Camera heigth equal to (hieght of terrain at point(position of unit(Unit camera is following))) + What ever height you want the camera


I don't know the exact fuction, but I sure its there...
01-25-2004, 03:09 AM#3
LegolasArcher
Im pretty sure they use different units. Such as you will get 1-5 when you need atleast 100 fro it to be eye level. Aswell, that willnot follow hills, if they dont reach that height. I may try and get the conversion down, if it works kwell enough
01-25-2004, 04:30 AM#4
LegolasArcher
Now that I think about it again, Im sure. I used it to detect cliffs and it returns the height of a cliff at that point (1-5 normally)
01-25-2004, 02:36 PM#5
LegolasArcher
Nope, It doesnt work. It still doesnt follow the height of the unit
01-25-2004, 04:38 PM#6
Dead-Inside
Possibly you could have "Hight areas", as to around hills you raise the cam, gradually, and then lower it if you're coming from the top of one.
01-25-2004, 04:55 PM#7
LegolasArcher
Hmm, that may be difficlult since there would b emany hills. I oculd use a loop to check, but I think it would be too jumpy in transitions