camera animation

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
peng
Posts: 39
Joined: Mon Oct 18, 2021 3:13 am

camera animation

Post 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?
User avatar
hayasidist
Posts: 3526
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: camera animation

Post 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!
peng
Posts: 39
Joined: Mon Oct 18, 2021 3:13 am

Re: camera animation

Post by peng »

wow these solutions works really well, thank you so much hayasidist
Post Reply