Circular camera movement
#8

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.
Reply


Messages In This Thread
Circular camera movement - by leong124 - 14.04.2012, 06:55
Re: Circular camera movement - by Lorenc_ - 14.04.2012, 08:14
Re: Circular camera movement - by Ronaldo_raul™ - 14.04.2012, 08:53
Re: Circular camera movement - by IstuntmanI - 14.04.2012, 11:17
Re: Circular camera movement - by Ronaldo_raul™ - 14.04.2012, 11:18
AW: Circular camera movement - by Meta - 14.04.2012, 12:56
Respuesta: Circular camera movement - by Francis. - 14.04.2012, 19:18
Re: Circular camera movement - by leong124 - 15.04.2012, 16:01
Re: Circular camera movement - by leong124 - 17.04.2012, 08:08
Re: Circular camera movement - by eesh - 17.04.2012, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)