View Full Version : can i save memory by loading 16 or 8bit textures ?
02-02-2003, 12:50 AM
or do i have to use 24 bit ?
02-02-2003, 12:59 AM
it depends on what you use as type. int requires normaly less memory than long, etc. (This can however be machine-dependend, but a long will never be bigger than an int, a float will never be bigger than a double)
In general: Yes 16Bit or 8Bit textures save memory. I would not use 8Bit textures anymore simply because of the colourtable hazle.
Of course lower precision means more banding.
BTW 24bit textures are uploaded into the videomemory as 32bit textures.
You may want to look into compressed textures.
02-04-2003, 12:51 AM
compression sounds good.
how to use it ?
02-04-2003, 01:13 AM
GL_ARB_texture_compression (http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_compression.txt) .
Or google for "opengl texture compression tutorial". I'm sure you'll get lots of hits.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.