home *** CD-ROM | disk | FTP | other *** search
-
- ~4Dgifts/toolbox/src/custEducation/opengl2 README
-
-
- This subtree contains the software included in the OpenGL
- Programming 2 class course materials available through SGI's
- customer education program.
-
- This software will only compile/run on a >= 5.1 Irix system
- with gl_dev and x_dev products loaded.
-
-
- This subtree contains two libraries (the auxiliary library (written
- specifically for the "OpenGL Programming Guide" book to make
- programming examples simpler yet more complete), and
- librgbImageFile.a (routines to read and write sgi image files)), a
- checkVisual utility program that prints out attributes of all
- available OpenGL GLX X Visuals, and src and binaries demonstrating
- the following:
-
- * accum:
- programs using the accumulation buffer to achieve scene
- anti-aliasing, depth-of-field, and motion blurring effects.
-
-
- * alpha:
- programs using alpha blending functionality. Includes a
- demonstration of how the depth-buffer and spotlights interact.
-
-
- * clipping:
- demonstrates defining and using arbitrary clipping planes.
-
-
- * dlists:
- programs implementing display lists including an example
- performing benchmark which can be run in either immediate or
- display list mode, lighting done with display lists, and
- creating an outline font and displaying it using glCallLists().
-
- * feedback:
- demonstrates use of OpenGL feedback, where one can toggle in
- and out of feedback mode.
-
- * fly:
- program lets user "fly" through a simple virtual world. Input
- controls enable toggling autopilot, alpha blending, drawing
- surface normals, reset eye position, as well as MOUSE buttons
- to move the eyepoint and SPACE bar to cycle wireframe/flat
- shaded/smooth shaded.
-
- This program is to be modified by the student during lab
- exercises.
-
- * fog:
- demonstrates using different types of fog including exponential,
- exponential squared, and linear as well as altering the density
- value.
-
- * nurbs:
- demonstrates using nurbs curves and surfaces. It includes an
- example of using nurbs in display lists, setting the various
- nurbs properties, and trimming nurbs surfaces.
-
- * raster:
- programs demonstrating the use of raster positioning and pixel
- operations, including creating a collage of images, use of the
- glCopyPixels() and glPixelZoom() routines, plus displaying an
- rgb image and file (and a subimage) in a window and writing
- pixel data from the window to an image file.
-
- * selection
- two programs: 1 demonstrates picking, and the other, selection.
-
- * stencils:
- demonstrates a simple application of the stencil planes to mask
- an arbitrary screen area.
-
- * superfly:
- program lets user "fly" through a simple virtual world. Input
- controls enable toggling autopilot, alpha blending, cycle thru
- clipping plane modes, debug mode (print coords), fog, display
- raster image, drawing surface normals, reset eye position,
- selection culling, and texture mapping, as well as MOUSE
- buttons to move the eyepoint, pick a shape and SPACE bar to
- cycle wireframe/flat shaded/smooth shaded.
-
- This program is an enhanced version of the fly program. It is
- one of many solutions to the labs.
-
- * texture:
- programs demonstrating the use of textures, including using
- textures with alpha values, using gluBulid2dMipmaps() to scale
- and load mipmaps for a single texture image and then applying
- this to a polygon; reading a texture from an rgb file, setting
- up the texture and a sphere map texture environment and then
- applying them; as well as a second version using automatically
- generated texture coordinates; reading in a texture from an
- rgb file, setting the texture and the texture environment, then
- applying the texture to a rectangular polygon using explicit
- texture coordinates; and a demonstration of storing textures
- in display lists where the objects are drawn using environment
- mapping.
-
-