Jump to content
  • Advertisement

Archived

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

jonbell

Splines

This topic is 5703 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 want to write a spline class that i will hook to my camera class to allow for predefined camera movement. The reason for this post is two fold. Firstly can someone please point me in the direction of any good articles (prefferbly including source) on splines and secondly what are peoples thoughts on how to tackle this problem. I thought that the best approach would be to link several splines together to form the camera path and then link a second set of splines to define what the camera is looking at. I can see potential timing problems here though if the splines are differant lengths.

Share this post


Link to post
Share on other sites
Advertisement
Look in the articles section of this very page! I would believe that this kind of thing might be under the Spline/Nurbs group in the ath section of the articles.

You would be able to make 2 curves and then have one be for the camera''s position and one for the coordinate it is looking at. These curves are parameteric (which is descussed in the very well written article) that means you plug in a t value, in your case between 0 and 1 to ake things easy, and the curve returns a coorasponding cordinate. Because both curves go from t=0 to t=1, your idea would work as expected.

hope this helps...

BTW, here the link: Bezier Curves and Surfaces
just look at the beginning of this article to learn how to ake Bezier curves, I think this is what you want!

Tazzel3d ~ dwiel

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!