Sign in to follow this  

Cardinal Splines

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

This topic is 4732 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this