Texture Detail

Started by rabidsponge, July 28, 2005, 03:39:59

Previous topic - Next topic

rabidsponge

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.

princec

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 :)

rabidsponge

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