Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
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?
Posts: 624
Threads: 38
Joined: Feb 2010
Reputation:
0
The problem: It's not smooth.
Moving the camera with the functions is always like
Speeding up - moving - Slowing down.
Posts: 58
Threads: 0
Joined: Apr 2012
Reputation:
0
I hate looping timers with very little time.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
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.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Is there any way to do so? I really want to have a smoother circular camera movement.
Posts: 194
Threads: 2
Joined: Mar 2012
Reputation:
0
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