Page 1 of 1

camera animation

Posted: Fri Mar 29, 2024 2:59 am
by peng
I always face this problem where the camera always travels in a CURVE when i animate the camera to zoom and track at the same time. is there a way to keep the camera trajectory to a straight line?

Re: camera animation

Posted: Fri Mar 29, 2024 11:00 am
by hayasidist
short answer: use Bezier interp on the camera zoom and shape the transition curve so you get a straight line when zooming. It'll look a bit like this:
Image
(zoom from 30 degrees to about 7 whilst tracking in x/y but not z)

longer answer: camera zoom changes the angle for Vertical Field of View. This, however, is not linearly related to the visual size of the object (if you really want the maths, ask!) and so if you move camera in x/y using linear interp and zoom at the same time, you'll need to compensate for the non-linearity in angle:visual size - and using bezier is a cheap way of doing it by eye without resorting to trigonometry.

Another answer is not to use zoom, but to track in z.
Yet another answer is to move the object in x/y/z and not the camera.
and I'm sure there are more answers too!

Re: camera animation

Posted: Mon Apr 01, 2024 2:49 am
by peng
wow these solutions works really well, thank you so much hayasidist