Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: How do I code a spline path?

  1. #1
    Intern Contributor
    Join Date
    Feb 2011
    Posts
    50

    How do I code a spline path?

    Hi

    I'm trying to create a spline path as seen in the link below but trying to find the fomular to use has been the most difficult aspect since I don't know how to interpolate the points. The spline will be used to create a path for a game I'm making were I need objects to follow such a path (is sonething a bit similar to zuma deluxe: http://www.terragame.com/screens/zuma_deluxe.jpg ).

    http://www.cs.berkeley.edu/~sequin/C...plineTypes.JPG

    Plus what code could I use to generate such a path.

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    20

    Re: How do I code a spline path?

    There is a lib called SGcore - there is a demo version available for download. It contains spline functions. Just keep in mind you need at least 3 points to define a spline using that lib.

Posting Permissions

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