About Store Forum Documentation Contact
Donations:
243$/mo



Post Reply 
Camera animation
Author Message
alkirah Offline
Member

Post: #1
Camera animation
Hi,

I'd like to know if there is a camera animation preprogrammed in engine or if I need to make my own.

Basicly I want a Vec camStartPos, Vec camEndPos, Flt animationTime that will move camera using lerp estimation.

Just willing to check if it already exists before I do my own

I haven't found one in Camera.h.

Thanks
(This post was last modified: 09-30-2011 05:50 PM by alkirah.)
09-30-2011 05:50 PM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: Camera animation
You could use waypoints in World Editor to define a path in your world, then load it in code and animate the camera using that path.
09-30-2011 06:31 PM
Find all posts by this user Quote this message in a reply
alkirah Offline
Member

Post: #3
RE: Camera animation
I just want to know if there's a function that will animate the camera or I have to manually lerp the pos of the cam.

start and end pos is already known, I just need the function to animate from point a to point b.

So if there's one will you please tell me smile or just tell me to go ahead making my own
09-30-2011 07:18 PM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #4
RE: Camera animation
Not that I know of. You will have to manually animate the position, but that should be easy enough.
09-30-2011 08:49 PM
Find all posts by this user Quote this message in a reply
bivit Offline
Member

Post: #5
RE: Camera animation
Do not know if that helps, but there is a tutorial "Tutorials \ Source \ Advanced \ 4 - Demos, Game Basics \ Game Basics \ Waypoints.cpp"
I believe that we can make the camera follow the waypoint
10-14-2011 03:54 PM
Find all posts by this user Quote this message in a reply
Damian_Dev Offline
Member

Post: #6
RE: Camera animation
in loop
Code:
frame ++;

and cam roll must look like that:
Code:
sin(frame/9)*12
(This post was last modified: 10-14-2011 03:57 PM by Damian_Dev.)
10-14-2011 03:57 PM
Find all posts by this user Quote this message in a reply
Post Reply