Circular camera movement
#1

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?
Reply
#2

use sin and cos to do it
Reply
#3

Lorenc_

Have released it something similar to what you want.

Try it
LINK
Reply
#4

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

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
Reply
#6

The problem: It's not smooth.
Moving the camera with the functions is always like
Speeding up - moving - Slowing down.
Reply
#7

I hate looping timers with very little time.
Reply
#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
#9

Is there any way to do so? I really want to have a smoother circular camera movement.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)