nate robins
main OPENGL chronicles allies
--- Coding at SGI ---

areaA simple program to compute the area of a rasterized triangle. Prints out the exact area according to the window size, then uses the OpenGL feedback mechanism to get the actual size of the rasterized triangle. This is useful if you want to know how many pixels you are actually drawing (fill rate).

area.zip (50450 bytes)

multiviewA program that shows how to use multiple viewports in a single context (using scissoring). Macros are provided for doing top, bottom, left, right & perspective views.

multiview.zip (54284 bytes)

niiNetwork Integration Incorporated logo. The dot on the "i" spins around. I wrote this for my friends SCott and Todd who have a vested interest in NII.

nii.zip (60390 bytes)

qixAn example of a 'qix'-like line demo, but without the traditional erase lines, and with anti-aliased lines. Screen-saver mode also available (#define SCREEN_SAVER_MODE when compiling).

qix.zip (55511 bytes)

starfieldAn example of a scrolling starfield in OpenGL. You really have to see this one in action to appreciate it! Screen-saver mode also available (#define SCREEN_SAVER_MODE when compiling).

starfield.zip (55932 bytes)

nullAn example of using null bitmaps to place the rasterpos at positions that may be clipped.

null.zip (47947 bytes)

rotateAn example of rotating a bitmap (w/o OpenGL's help). I wrote this for my little brother John.

rotate.zip (59788 bytes)

stripA simple program to show how to do a 'swaptmesh' to generate a longer triangle strip in OpenGL.

strip.zip (60697 bytes)

textureA simple program to show how to do texture mapping.

texture.zip (50198 bytes)

voronoiUses the depth buffer to intersect cones drawn at each point selected by the user, thus creating a voronoi diagram.

voronoi.zip (50450 bytes)

maiden1A killer "Iron Maiden rocks out with OpenGL" demo (according to Mark Kilgard). I wrote this program for the OpenGL Developer Labs. It has a performance counter and metrics for how many pixels were filled per frame.

maiden.zip (915735 bytes)

maiden2The maiden program with texture mapping enabled. Many features can be toggled, including the filtering method (point sampled/bi-linear) & the environment mode (decal, modulate).

maiden3In addition to a lot of OpenGL state that can be toggled, the level of detail of the spheres and torus can be changed. Since the program was designed to be a pseudo-benchmark, you can enable a background to stress fill-rate, or crank up the teselation (lod) of the objects and add a starfield to become transform limited.

--- --- ---
nate@pobox.com