Jump to content
  • Advertisement
Sign in to follow this  
livingaftermidnight

OpenGL Camera Interpolation

This topic is 4866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a intro for my game. It involves me scripting a camera (in OpenGL) somehow that'll follow something and then once that object hits it's destination then the camera will zoom far out revealing this even bigger object. Would anybody have any idea how to run this? I have camerapos and camerarotation vectors. I just need some interpolation functions or something to get me started. Any pitfalls people have come under while doing this? Any information will help! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
It depends if it is dynamic or static. If it is a static path (it always follows some path) make keyframes. You take a bunch of sample points along the 'path' and set a position, rotation, etc. Than to make the camera follow the path you interpolate the position and rotations.

If it is a dynamic path you can do that to but you need to build the path to follow at runtime. And it can change if the dynamic object it is following is changing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!