Compressed Textures

Started by cyberkilla, February 02, 2007, 02:45:27 PM

Previous topic - Next topic

cyberkilla

Does anyone know if the textures used in OpenGL mode are compressed?

I know that the standard images are not compressed in memory(Java2D),
but I did hear something like this on an OpenGL forum.

Its strange how Java doesnt natively use some form of RLE compression for in-memory images.

If you have a 640x480 image in memory, its a good few MB.
On the hard disk, in png format, its a few KB.
Naturally RLE isnt as powerful as the compression in pngs, but I feel my point is still valid.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

EgonOlsen

Nothing is compressed in OpenGL by default. You can enable texture compression (not with jPCT btw.) and compress the texture with an external tool or let the driver do it. Hardware texture compression is neither RLE nor lossless. It reduces the color space in a clever way and does some interpolation to recreate the actual texture. Depending on the texture, this is hardly noticable or looks just awfull. Google fot S3TC, DXT1 or DXT3 for more information.

cyberkilla

Ah, I see:) Well, I suppose I will have to live with a few MB of potentially wasted space:)

EDIT:
I forgot to thank you:) Much appreciated;)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

MichaelJPCT

i couldn't find an option for compressed texture in JPCT, is it still not supported by now?

EgonOlsen

No, not in the desktop version. Only on Android.