Texture Mapping


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

bmp is too large, what size textures you using!

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.

Try PNG, it has some lossless compression, supports alpha and has fast decompress (LZ + arithmetic swizzle).