www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: cyberkilla on February 02, 2007, 02:45:27 pm

Title: Compressed Textures
Post by: cyberkilla on February 02, 2007, 02:45:27 pm
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.
Title: Compressed Textures
Post by: EgonOlsen on February 02, 2007, 06:12:50 pm
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.
Title: Compressed Textures
Post by: cyberkilla on February 02, 2007, 08:29:51 pm
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;)
Title: Re: Compressed Textures
Post by: MichaelJPCT on August 13, 2016, 05:43:20 am
i couldn't find an option for compressed texture in JPCT, is it still not supported by now?
Title: Re: Compressed Textures
Post by: EgonOlsen on August 13, 2016, 10:03:52 am
No, not in the desktop version. Only on Android.