Results 1 to 8 of 8

Thread: Spline Demo!

  1. #1

    Spline Demo!

    Hey guys

    I'm allready thinking about how to make the second version of my Tuberunner game for IGF. I'd like to use splines to generate the racetrack.

    So I tried to implement a few different spline types. Here's a screenshot of the demo:



    From left to right:
    • Quadratic bezier spline
    • Cubic bezier spline
    • CatmullRom spline
    • Cubic Hermite spline


    I combined 3 catmullRom splines to get a longer spline (check my TCompositeCurve class).
    It doesn't work for other spline types now (don't know why).

    Download source + exe here

    Hope someone finds this usefull. If anyone can think of possible optimizations, please tell me.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2

    Re: Spline Demo!

    I just tried downloading it, but it was corrupted it seems

    and now I can't download it all all - I get this error on the page:

    No suitable nodes are available to serve your request.
    cheers,
    Paul

  3. #3
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287

    Re: Spline Demo!

    I get the same thing as Paul. I am able to download each time, but it's always corrupt.
    Existence is pain

  4. #4

    Re: Spline Demo!

    Weird, I'll upload again.

    I don't know what's wrong with the funpic servers.
    Just uploaded it to MegaUpload:

    http://www.megaupload.com/?d=JZYBK9CA

    (Would be nice if we had a fileserver for this community )
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  5. #5

    Re: Spline Demo!

    The problem was with the hosting company that FunPic uses (MOSSO). Its basically a cloud error stating that the servers got overloaded or a node went down LOL

    How do I know, I use the same hosting company at work. Recently their service has SUCKED! If you try the funpic site again now it should work.

    PS: I've given space for sites and downloads to several members here until they decided to start their own, and have no problem giving out more sub-domains and space.

    - Jeremy

  6. #6

    Re: Spline Demo!

    How about a curve thru points kind of curves? those work best..
    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

  7. #7

    Re: Spline Demo!

    Quote Originally Posted by Delfi
    How about a curve thru points kind of curves? those work best..
    Don't know what you mean? The catmullRom spline goes through all the points.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  8. #8

    Re: Spline Demo!

    Nice work so far Chronozphere

    I downloaded and tried the demo, and looked at the code...

    Now I feel inspired to do my own LOL

    cheers,
    Paul

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
  •