PDA

View Full Version : Texture Mapping



08-29-2002, 11:14 PM
Hi,

What is the best file format to use in texture mapping?
Bitmap file is to large (but fast), JPG file is compresed but decompresing algorithm runs to long, maybe TGA or what?

thanks for any help

Gavin
08-29-2002, 11:49 PM
bmp is too large, what size textures you using!

Deiussum
08-30-2002, 04:26 AM
What format you use really makes little difference to OpenGL. So far as OpenGL is concerned, you are simply passing in an array of bytes no matter which of these formats you use.

No matter which of the formats you use, you still need to know how to get the appropriate array of bytes. So, whatever you feel best about getting that data from would be best for you. I tend to like TGA simply because it's simple and has an optional alpha channel.

dorbie
08-30-2002, 07:11 AM
Try PNG, it has some lossless compression, supports alpha and has fast decompress (LZ + arithmetic swizzle).