Author Topic: Compressed Textures  (Read 4108 times)

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Compressed Textures
« 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.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Compressed Textures
« Reply #1 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.

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Compressed Textures
« Reply #2 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;)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • View Profile
Re: Compressed Textures
« Reply #3 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Compressed Textures
« Reply #4 on: August 13, 2016, 10:03:52 am »
No, not in the desktop version. Only on Android.