Jump to content
  • Advertisement
Sign in to follow this  
zhengrong

How to render bezier curve with D3D?

This topic is 2697 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 writing code to make my camera moving in cubic bezier curves, and I think it'll be nice if I can see the camera track, but I just don't know what's the right way to render the curve.

Is there a way to render a 3d bezier curve other than breaking it into line segments?

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You will always have to split the curve in some segments, I think there's no way around.

On though I just had, perhaps it is possible to split the curve in quad segments and the apply a special fragment shader to it which calculates the curve in this quad pixel perfect.

Or u can just tesselate the lines in a geometry shader so that lines near the camera look smooth

Share this post


Link to post
Share on other sites
I think lines segments will be ok in this case, Thank you !


You will always have to split the curve in some segments, I think there's no way around.

On though I just had, perhaps it is possible to split the curve in quad segments and the apply a special fragment shader to it which calculates the curve in this quad pixel perfect.

Or u can just tesselate the lines in a geometry shader so that lines near the camera look smooth

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!