Texture samples



Notice!

The files on these pages require the latest version of the glxCtl.ocx (1.3 or above), as I am using these samples to debug and add functionality to the ocx.





The samples on this page demonstrate how to load bmps, gifs, jpegs, and sgi(bw,la,rgb,rgba) image files. The samples also demonstrate texturing. transparency, and texture animation. Because of space constraints of my ISP, I may not post all the image files here, but I'll post them somewhere or tell you where to get the original C files which include the images.


Textures

Textures.zip (52K) - shows how to load any bmp, gif or jpeg for texture, and how to interactively set some common texture parameters to achieve effects like transparency.




Mask

Mask.zip (45K) - shows how to use a bmp, gif or jpeg for a 'transparent gif' effect.




The following samples were ported from Advanced97 or files at www.opengl.org.

AlphaBlend

Alpha.zip (5K) - A port of Celeste Fowler's alphablend, from Advanced 97.

Background

Background.zip (125K) - Shows how to use a texture as a background.

Explode

Explode.zip (21K) - demostrates transparency.

Fire

Fire.zip (123K) - demonstrates using a sequence of images to produce animation.

Lightmap

Lightmap.zip (141K) - demonstrates using lightmaps to enhance the appearance of a scene.






Please send suggestions, bug reports, and such to:



Home Page   |  Related Sites