Graphics Samples

SGI™'s OpenGL is an essential component in my downloadable graphics-related sample executables and source code. I have more to say about OpenGL on my Graphics and OpenGL page.

If your PC has an OpenGL ICD (Installable Client Driver) then these samples will work just fine (opengl32.dll comes as standard with Windows 9x, NT 4.0 and Windows 2000). Of course a graphics adapter with OpenGL hardware acceleration will help them to run faster and smoother. Please feel free to download and run the executables, and take a look at the source code if you want to know how they work.

Most of these samples leverage the functionality of my Windows/OpenGL Classes (WOC), so if you want to compile, or just study, the source code which built these samples then you'll need to download a copy of WOC. Of course you don't need WOC if you just want to download and run the compiled executables.
 
   

VGA Samples

VGA Mode 10h Sprite
a simple sprite moving around in a full-screen MS-DOS VGA Mode 10h application. This sample writes directly to the VGA hardware.

 
   

OpenGL Samples

400 Cubes in orbit around an icosahedron
demo featuring a twenty-sided regular Platonic solid suspended in space, orbited by four hundred cubes.

Fly-by of cubes in space
demo of a recurring fly-by in space through a cloud of four hundred cubes followed by a 180 degree turn and repeat.
 
WOC Tutorial One - Skeleton Project
how to integrate the WOC source files into a Visual C++ project to end up with a skeleton project you can re-use.
WOC Tutorial Two - Campbell's Soup Can
how to use the built-in model loaders to define your own simple textured 3-D model, substitute it for the view's default model, and set initial modelview transformations.
WOC Tutorial Three - Star Cluster
a lower-level look at defining your own geometry.
WOC Tutorial Four - Model Viewer
how to load a model from a .OBJ file, and how to customise your frame window to handle menu commands.
WOC Tutorial Five - Dialog Child Window
how to place an OpenGL rendering context child window on a dialog, a frame window, or an MFC CDialog.
Pigs in space
auto-rotating galaxy of pig-textured cubes.
Robot arm
demonstrates a complex 3-D WOC model as well as hierarchical animations.
Earth and clouds
demonstrates the use of BMP and RAW texture images as resources.
Sugared Almond Explosion
demonstrates the built-in Explosion animation and the animation of lights.
Graph
uses the animation classes to generate two kinds of animation: the motion of lights, and the one-time initialisation of geometry.
Child Windows
demonstrates how to place OpenGL windows and ordinary windows controls together on the view of a frame window.
Fireflies
demonstrates the fireflies animation applied to lights, and the RippleGrid model loader.
last updated: 8-oct-01