Jump to content
  • Advertisement
Sign in to follow this  
lincsimp

Cardinal Splines

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

Hi I'm using c# in a game development project, can anyone point me to a cardinal splines tutorial with c# code that doesn't use the gdi, but uses managed directx? Thanks very much

Share this post


Link to post
Share on other sites
Advertisement
As far as I know, there is no nice built-in function for drawing cardinal splines with DirectX. You'll have to write your own.

This site has information on interpolating different types of curves, and should help you should you chose to write your own functions.

But are you after this because you need to draw a cardinal spline? Or do you just want curves? What'cha doing?

Share this post


Link to post
Share on other sites
Thanks that looks good and was what I was after, basically I was looking for a fairly easy way to create a curved 3D camera path and my mathy friend just said I should use cardinal splines, do you think that they are the best ones to use?
Also I would like to find a directx implementation to have a look at to find the best way to approach the prob...

Thanks very much

Share this post


Link to post
Share on other sites
I would think just using the built in spline functionalty (to D3DX) would be simpler. Plus maybe throw in some quaternions for smooth rotations, etc.

Share this post


Link to post
Share on other sites
Thanks, in the end I settled on this, which seems to work:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx/c/unsafenativemethods.vector3/m/hermite.asp
Thanks

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!