PDA

View Full Version : Texture compression tutorial needed



Benshee
08-07-2005, 02:43 PM
Im working on a simple 2D avatars in 3D environment engine and need to somehow compress the large amounts of texture data so I can fit it all into the GFX card.

Is there any good tutorials about how to use texture compression with OpenGL 1.3+ (since I read in the specs that its now part of the official OpenGL and no longer just an extension).

Since I didnt find any tutorials on the net nor any descriptions of functions that would have helped my I guess this is in the right place at "Advanced". Thanks alot for any help you can give.

soconne
08-07-2005, 03:16 PM
http://www.codesampler.com/oglsrc/oglsrc_4.htm

Go down to the DDS Texture Loader tutorial.

Benshee
08-07-2005, 03:38 PM
thanks :)

hmm now I need something that covers how i can convert into S3TC on the fly from an uncompressed format such as 32bit RGBA.

CrazyButcher
08-07-2005, 11:47 PM
http://www.developer.nvidia.com/object/texture_compression_OpenGL.html

GPSnoopy
08-09-2005, 06:39 AM
Originally posted by oconnellseanm:
http://www.codesampler.com/oglsrc/oglsrc_4.htm

Go down to the DDS Texture Loader tutorial.One thing with this loader is that it does not address the inversion of coordinates. Basically, the compressed image has to be vertically inverted to be displayed correctly. There are other loaders on the net that do it. I think that you can find one in NVIDIA SDK.