PDA

View Full Version : can i save memory by loading 16 or 8bit textures ?



HamsterofDeath
02-02-2003, 01:50 AM
or do i have to use 24 bit ?

Hoebie
02-02-2003, 01: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)

HS
02-02-2003, 02:39 AM
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.

HamsterofDeath
02-04-2003, 01:51 AM
compression sounds good.
how to use it ?

harsman
02-04-2003, 02: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.