I want my camera to hover a certain height over the player's charactor. Everything I tried so far results in an offset that is not affected by terrain height. My camera looks different depending on the height of terrain the player is standing on...
Any advice? I tried height of unit and height of ground at unit.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Um, i once (upon a time) was messing around with a battlefield map i thot i might try to make out and i used a periodic timer to follow each of the players characters. By doing this at a respectable rate, i made the camera constantly pan to the units position offset by y distance so that the camera was always a bit higher than the unit... i think this worked out well?
sorry if it doesnt help, its very hard to tell what ur exactly asking for. or at least its very hard to see what your problem is. maybe a Dudd map upload which shows ur problem? meh
I tried just making it have a constant height of 15, but that doesn't work, because it ignores terrain for that. I tried height of point, didnt work. Maybe I should make a 3d point and attach it to the unit?
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
I mean I want the camera to be a certain height above the player's unit at all times no matter what terrain level hes on. So it looks the same all the time, and as the player goes up in level, so does the camera....This SHOULD be simple but I cant get it to work.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Heres the problem, cameras would normally follow the units x,y positions, this means that they DONT ADJUST TO HEIGHT CHANGE (i am guessing anyway :D).
Its often unnoticeable due to the small height changes there are, but the higher the unit the more noticeable.
basically, to fix, you gotta make the Y change according to the terrain ur gay boi is on.
your problem seems to be associated with cliffs and hills so im guessing ur unit height is always 0? therefore use regions to change the Y the camera is following.
i dnno man... just hope that someone who knows whats going on can answer u :P
if you set the camera to actually follow the unit It should adjust to the unit hieght. I believe.... Or your can keep a variable that is updated in real time with the units relative height you can then use this value to increase the camera hieght / target height.
Good luck
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Figured out the answer to this question. It seems like nobody's ever stated that there is a field found within the "Cameras" tab in the Data editor called "Zoom Levels +". From there, open it up and find "Height Offset". Adjust the value per zoom levels as required. Make sure to have Height Displacement turned off (via triggers) and height smoothing as required. This will make your camera have a static height (NOT DISTANCE, ffs) relative to the ground it's on. If you only want one height for the player to see from, just make one zoom level (or make many, with the same "Height Offset").
Cheers (5 years later),
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want my camera to hover a certain height over the player's charactor. Everything I tried so far results in an offset that is not affected by terrain height. My camera looks different depending on the height of terrain the player is standing on...
Any advice? I tried height of unit and height of ground at unit.
bump for good luck?
o jeez sounds gay.
Um, i once (upon a time) was messing around with a battlefield map i thot i might try to make out and i used a periodic timer to follow each of the players characters. By doing this at a respectable rate, i made the camera constantly pan to the units position offset by y distance so that the camera was always a bit higher than the unit... i think this worked out well?
sorry if it doesnt help, its very hard to tell what ur exactly asking for. or at least its very hard to see what your problem is. maybe a Dudd map upload which shows ur problem? meh
Try something like attaching a point to the unit, and do a trigger ( at point, with z offset ) or height of point with z offset.
I tried just making it have a constant height of 15, but that doesn't work, because it ignores terrain for that. I tried height of point, didnt work. Maybe I should make a 3d point and attach it to the unit?
i still dont really understand under what conditions u want the camera to move and stuff :S
what do u mean by "not effected by terrain?"
do u mean that when the unit goes on higher terrain, the camera remains at a lower level?
I mean I want the camera to be a certain height above the player's unit at all times no matter what terrain level hes on. So it looks the same all the time, and as the player goes up in level, so does the camera....This SHOULD be simple but I cant get it to work.
Heres the problem, cameras would normally follow the units x,y positions, this means that they DONT ADJUST TO HEIGHT CHANGE (i am guessing anyway :D).
Its often unnoticeable due to the small height changes there are, but the higher the unit the more noticeable.
basically, to fix, you gotta make the Y change according to the terrain ur gay boi is on.
your problem seems to be associated with cliffs and hills so im guessing ur unit height is always 0? therefore use regions to change the Y the camera is following.
i dnno man... just hope that someone who knows whats going on can answer u :P
X and Y wont change height.
X = east and west Y = north and south Z = altitude
So I've been working with Z...
the thing is, cameras dont work with altitude
@RageQit: Go
if you set the camera to actually follow the unit It should adjust to the unit hieght. I believe.... Or your can keep a variable that is updated in real time with the units relative height you can then use this value to increase the camera hieght / target height.
Good luck
Figured out the answer to this question. It seems like nobody's ever stated that there is a field found within the "Cameras" tab in the Data editor called "Zoom Levels +". From there, open it up and find "Height Offset". Adjust the value per zoom levels as required. Make sure to have Height Displacement turned off (via triggers) and height smoothing as required. This will make your camera have a static height (NOT DISTANCE, ffs) relative to the ground it's on. If you only want one height for the player to see from, just make one zoom level (or make many, with the same "Height Offset").
Cheers (5 years later),