LWJGL Forum

Programming => OpenGL => Topic started by: rabidsponge on July 28, 2005, 03:39:59

Title: Texture Detail
Post by: rabidsponge on July 28, 2005, 03:39:59
Hi, I'm currently using ST3C compression in my game to reduce the size of my textures in memory.  Currently, you need a graphics card with 64MB of memory to play my game.  I want to make the game playable with a 32MB graphics card by giving players the option to play with low res textures.  What I want to do is somehow load a texture so that it's dimensions are reduced by half.  Sorry if this is obvious, but I'm pretty new to openGL, and I don't know how to load a texture in this way.
Title: Texture Detail
Post by: princec on July 28, 2005, 21:38:44
You'll need to resize the texture on the fly before actually uploading it to OpenGL - which means writing your own image minification filter or using BufferedImage and scaling it with a transform operation.

Cas :)
Title: Texture Detail
Post by: rabidsponge on July 29, 2005, 01:39:13
Thanks, I'm using DevIL for texture loading so all I had to do was use the command ILU.iluScale before I created the texture in OpenGL.   :D