Circular camera movement -
leong124 - 14.04.2012
Can someone make a circular camera movement with the latest camera functions in 0.3e?
I tried many times but I still cannot make the camera to look at a point smoothly while the camera is moving in a circular path, that is, you can see the screen tearing problem even when the camera is moving in a circular path.
I think the problem is caused by the camera not looking at the centre constantly. You need to frequently set it to look at it, so that the camera isn't looking at the centre smoothly. Is there any solution?
Re: Circular camera movement -
Lorenc_ - 14.04.2012
use
sin and
cos to do it
Re: Circular camera movement -
Ronaldo_raul™ - 14.04.2012
Lorenc_
Have released it something similar to what you want.
Try it
LINK
Re: Circular camera movement -
IstuntmanI - 14.04.2012
Quote:
Originally Posted by Ronaldo_raul™
Lorenc_
Have released it something similar to what you want.
Try it
LINK
|
Using 0.3e functions.
I have no idea.
Re: Circular camera movement -
Ronaldo_raul™ - 14.04.2012
Quote:
Originally Posted by costel_nistor96
Using 0.3e functions.
I have no idea. 
|
Woops !
Sorry, didn't read properly.
But i said similar to what he is looking
AW: Circular camera movement -
Meta - 14.04.2012
The problem: It's not smooth.
Moving the camera with the functions is always like
Speeding up - moving - Slowing down.
Respuesta: Circular camera movement -
Francis. - 14.04.2012
I hate looping timers with very little time.
Re: Circular camera movement -
leong124 - 15.04.2012
Yes I know it can be done with sin and cos, but the problem is that it is not smooth, as said by Meta.
Imagine the circle as a regular polygon (picture 00). For each loop the camera moves from a point to another (red arrow), with a constant angle set by SetPlayerCameraLookAt(blue arrow). When the camera moves, the angle of the camera isn't changed (green arrow) until the next loop (blue arrow on picture 02), which is the problem.
Since the change of the camera angle is quite large (I guess about 1 degree), the scene will move a lot, causing the screen tearing problem. If you need to solve it, you have to make a faster timer and a smaller angle change for each loop, but it will make your server become laggy.
If there are methods (using 0.3e functions) that can always look at the same point but not keeping the same angle (purple arrow), the problem can be solved.
Re: Circular camera movement -
leong124 - 17.04.2012
Is there any way to do so? I really want to have a smoother circular camera movement.
Re: Circular camera movement -
eesh - 17.04.2012
I just got an idea for it. I need to know if its possible to make an object invisible using the textures function. Let me know ASAP so I can test it out and then make my first tutorial if it works out xD