Jump to content
  • Advertisement
Sign in to follow this  
zedzeek

fastest curve method

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

whats the fastest fastest method of creating curves? accuracy is of least importance (ie good enuf looking hacks are ok) ideally i want to generate a curve that gos through all the control points (ie not bezier, more like catmull rom) but like i said ild take speed over flexibility. ive been mucking around with linear lerps between 3 control points but havent been able to nail something acceptable yet, as im sure this has been done umpteens times in the past i thought i'ld ask more wiser heads? ta zed

Share this post


Link to post
Share on other sites
Advertisement
the fastest ones I could find were bezier. If your control points are uniform enough you could possibly create a closed form function to handle it more efficiently. It'd also be good to know the use of your points. For instance a simple optimization is to cache the sample points into an array of points and it'd be a simple look up with a possible lerp between the two.

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!