Thread: Spline Surface Demo

  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Spline Surface Demo

    why not, here's a spline surface demo with about 5 different interpolation algorithms implemented and normals calculated by definition (cross product of partial derivatives) and by finite difference approximations.
    This was done as a project for a Numerical Methods course so graphics were not the main focus. As a result there is no texturing and lighting and rendering is a little ugly in places.

    Uses C++, GLUT, and OpenGL.
    Controlls are self explanitory in the Right Click Menu

    *note: this was developed origionally for SunOS. i'm attatching an exe that runs fine for me on WinXP. No source for now as this project may serve as a basis for another school project.

    If anyone has questions or comments about the math behind spline surface interpolation just post, id be happy to answer. general comments always appreciated (although im already aware of the obvious uglies in the program)

    btw: i know its not a game but this is more or less the Graphics forum as well as Game forum

  2. #2
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    looks pretty cool

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    That's pretty sweet. There are a few errors I found that you may want to know about:

    *Turning on "show normals" for the terrain crashes on my computer
    *Turning on "show normals" for the teapot has one normal shooting out to infinity ( or far away )
    *One time when I changed the subdivision level a lot on the teapot and switched to terrain it crashed.

    Very cool demo none the less. Continue adding to it.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    yeah, there were a few oddities in the windows version. All functionality worked fine on SunOS though, no crashing. The crazy normal shooting out into space was something my partner and didnt have time to debug, probably just one to many iterations through the draw routine or something.

    Thanx for the feedback guys.

  5. #5
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    A required .dll file, "glut.dll", could not be found.

    =/

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  6. #6
    Registered User Aalmaron's Avatar
    Join Date
    Jan 2004
    Location
    In front of a monitor
    Posts
    48
    yeah i needed the dll too. you can get it here.

    thats pretty nice, i would sugest being able to move in and out though.

  7. #7
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    I can't do anything =/

    A window comes up saying "No surface loaded" and I can't do anything in the console. Or maybe I'm just stupid...

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Originally posted by SirCrono6
    I can't do anything =/

    A window comes up saying "No surface loaded" and I can't do anything in the console. Or maybe I'm just stupid...

    - SirCrono6
    all of the options are in the Right Click Menu as noted above.

  9. #9
    Registered User
    Join Date
    Feb 2004
    Posts
    13
    I really enjoyed your demo. Im glad you shared it with us. Keep up the good work.

  10. #10
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    pretty cool! my computer makes a weird noise whenever i move the terrain around...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Forming RTS Demo Team – Sixth Extinction
    By SteelRain4eva in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 06-08-2006, 08:47 PM
  2. Adventurers and Outlaws and new Demo
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-07-2004, 05:06 AM
  3. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-12-2004, 11:38 PM
  4. Second MoA Demo Tomorrow
    By harryP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-30-2002, 07:22 PM
  5. SkyLock graphics engine demo
    By jdinger in forum Game Programming
    Replies: 18
    Last Post: 06-26-2002, 07:58 AM