Results 1 to 6 of 6

Thread: Centripetal Catmul-Rom spline curve implementation example & demo

  1. #1

    Centripetal Catmul-Rom spline curve implementation example & demo

    https://en.wikipedia.org/wiki/Centri...0%93Rom_spline

    This is possibly the most useful spline / curve for game developers, you simply put points, and the curve points will be generated that will go thru them and do nice and logical, reasonable turns.



    Example source implementation (in 2d)
    https://github.com/JernejL/Centripet...pascal-example
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  2. #2
    This will come in handy. Thanks for sharing.

  3. #3
    No problem

    Btw.. "mali svet"
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  4. #4
    Quote Originally Posted by Delfi View Post
    Btw.. "mali svet"
    Ja res je mali svet

    Yes small world indeed

  5. #5
    Thanks for sharing mate!
    I didn't know about this version of a catmull-rom spline, very cool

  6. #6
    Quote Originally Posted by paul_nicholls View Post
    Thanks for sharing mate!
    I didn't know about this version of a catmull-rom spline, very cool
    It seems like the best variant:



    "uniform" fails miserably, chordal seems to go off track a lot, centripetal seems to do its best in these extreme situations.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL