//////////////////////////////////////////////////////
	
	Spring Sphere Demo 

	(c) Lucas Walter 2002 

//////////////////////////////////////////////////////

Featuring:
---------
	Spring sphere
	OpenGL & SDL
	Movable light source
	Skybox generated with Terragen 
		(http://www.planetside.co.uk/terragen/)
	Simple terrain 

The object the camera is centered around is a collection of springs and dampers connected
to masses.  The masses are vertexes on the sphere, but there's also an invisible inner layer
of springs to give the object more stability.  The dampers are set pretty high so the springs
don't oscillate too much (I'll make it controllable in the future).

with the spring sphere selected (press tab once), use the keypad to impart
forces on some masses on one end of the sphere, and then watch the thing
undulate.  It's relatively easy to turn the thing inside out and then it may
just oscillate like crazy all twisted up and never restore itself.

I've already experimented with collision detection and response with the terrain,
but it's presently massively inefficient, so it's been left out.

I may make the source GPL if anyone wants it.


Files:
------

Windows executable (Linux port should be a snap, when I get around to it)

	sdl_vc.exe

Transparent spheres exported from wings3d (www.wings3d.com)

	explosion.obj
	explosion.mtl

Six Skybox bmps generated with Terragen

	up.bmp, down.bmp, front.bmp, back.bmp, left.bmp, right.bmp

SDL library file (I'm not sure if I should be redistributing this, you may want to get it
from www.libsdl.org instead)
	
	SDL.dll




Controls:
---------

Tab 	- Cycle through control of camera, spring sphere, terrain, and light

1 - 5  	- Control view options of spring sphere, turn off surface to view spring
		internals, restoring forces, bounding box, etc.

Keypad  8,2 - Move up and down
	4,6 - left and right
	0,5 - forward and back

Mouse	- Rotate, hold right button and move left/right to rotate around z-axis




Lucas Walter
lucasw@u.washington.edu
http://students.washington.edu/lucasw

July 2002