more_samples/





Classic chessboard with (relatively) complicated pieces (pieces by Randy Brown). Drag the middle mouse button to spin board.

Source code: source directory.

Executable: chess.bat.

Snapshots: chess (shown).


Constructive Solid Geometry program based on information from the Advanced OpenGL Rendering course at SIGGRAPH '96 by David Blythe and Tom McReynolds. Click right mouse button for menu.

Source code: csg.c.

Executable: csg.exe.

Snapshots: Sphere sub Cube (shown), Cone sub Cube.


Very simple Win32 example of drawing a cube.

Source code: cube.c.

Executable: cube.exe.

Snapshots: scene (shown).


Neat little program that makes a drip wherever the mouse button is pressed.

Source code: source directory.

Executable: drip.exe.

Snapshots: drops (shown).


This program shows some particles stuck in a Lorenz attractor (the parameters used are r=28, b=8/3, sigma=10). The eye is attracted to the red particle, with a force directly proportionate to distance. A command line puts the whole mess inside a box made of hexagons. I think this helps to maintain the illusion of 3 dimensions, but it can slow things down. Other options allow you to play with the redraw rate and the number of new lines per redraw. So you can customize it to the speed of your machine.

Source code: lorenz.c.

Executable: lorenz.exe.

Snapshots: start (shown).


In this little demo the player navigates through a simple maze using the arrow keys. The maze is defined by a 2D array where each element in the array indicates solid or empty space. This program wraps polygon (quad) walls around the solid space and disallows the player to navigate into solid space during the demo. Note that all the walls are limited to being 90 degrees to each other - there are no "angled" features. The purpose of this sample program is to show a beginning 3D game programmer some things they can do. One other cool thing that this program does is that it constucts a single quad strip to draw all the walls by doing a recursive depth first search on the maze array data.

Source code: maze.c.

Executable: maze.exe.

Snapshots: start (shown).


Simple program to visualize a mesh with a color ramp scale. Press 'h' for a help menu. Specify a data file as a command line argument.

Source code: source directory.

Executable: meshview.bat.

Snapshots: sinc (shown).


Demonstration of palette animation in color index mode. Press 'h' for a help menu, middle button spins.

Source code: rainbow.c.

Executable: rainbow.exe.

Snapshots: rainbow (shown).


This program displays a waving flag with an SGI logo trimmed out of it. The flag is a single nurbs surface (bicubic, bezier). It "waves" by making it control point oscillate on a sine wave. The logo is cut from the flag using a combination of piecewise-linear and bezier trim curves.

Source code: sgiflag.c.

Executable: sgiflag.exe.

Snapshots: sgiflag (shown).


Real-time soft shadows. Press 'h' for a help menu. Drag the middle mouse button to rotate the scene.

Source code: source directory.

Executable: shadow.bat.

Snapshots: shadow (shown), large w/multisample enabled (shown).


Demonstration of picking and rendering luminous objects. Drag the middle mouse button to spin the object. Move the mouse over the bulbs to light them.

Source code: signal.c.

Executable: signal.exe.

Snapshots: signal (shown).


Simple demonstration of using OpenGL's stencil test to cap clipped objects.

Source code: simplecap.c.

Executable: simplecap.exe.

Snapshots: capped (shown).


Simple program that shows how to do multi-colored material lighting in color index mode.

Source code: simpleci.c.

Executable: simpleci.exe.

Snapshots: torus (shown).


Demonstrates texture environment modes and internal image formats.

Source code: texenv.c.

Executable: texenv.exe.

Snapshots: scene (shown).


Simple program that demonstrates the vertex array extension.

Source code: vcull.c.

Executable: vcull.exe.

Snapshots: boxes (shown), torus.


Copyright © 1997 Silicon Graphics Incorporated.