Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Smooth camera movement ?

This topic is 6252 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

how to make smooth camera movment ??? I store my camera data like this: float x, y, z , pitch, yaw struct waypoint { float x,y,z,yaw,pitch,speed }; waypoint waypoints[max_waypoints] i save the waypoints in a file but i don''t know how to interpolate them, or how to make bezier patches from this coordinates ??? any source or help ???

Share this post

Link to post
Share on other sites
There are many methods of interpolating between two values.
Latelly I started to use Bezier curves. They are very easy to code and let you control the path of camera/objects/whatever you need. For more info look for bezier curves.
You can also visit my tutorial - in polish language (might be still helpfull, also working code included)
at the bottom you will find a link to am example program (src+exe).
Example program uses ddraw 640x480x32bit mode. Check the DrawBezier function in engine.cpp - that''s what interests you.
program keys:
"1"-1 bezier curve
"2"-2 bezier curves
"3"-properly connected two bezier curves for smooth movement
(fifth point is placed according to third point position)

"+" and "-" allows you to change the number of points generated on a curve.

Hope it helps.

With best regards,
Mirek Czerwiñski

Share this post

Link to post
Share on other sites
you can use the accumulation buffer to make a motion blur animation. For more information, read the topic "accumulation
buffer" in Redbook (Chapter 10 "FrameBuffer").

If you need sample source codes, you can mail me.


Share this post

Link to post
Share on other sites

  • 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!