View Full Version : webgl and compress texture file

07-14-2011, 09:56 AM
I have the necessity of transfer a lot of image files because i created a sketchup/webgl exporter and i need to send all images files to the javascript script that creates textures.
I ask if exist something that help to compress and send these image or better images transparently and html folder but runtime.

I asking but i believe that may be impossible

Dark Photon
07-14-2011, 03:52 PM
Please qualify "compress". Is your aim to save network bandwidth, save GPU space, or both?

If the latter two, then check out squish (http://code.google.com/p/libsquish/) (article (http://www.sjbrown.co.uk/2006/01/19/dxt-compression-techniques/)). Great DXT compression lib. There's also probably several libs and executable tools from NVidia (link1 (http://developer.nvidia.com/content/texture-tools-208-64-bit), link2 (http://developer.nvidia.com/legacy-texture-tools)) and/or ATI (link (http://developer.amd.com/tools/compressonator/pages/default.aspx)) you might use to help you out.

If you just want to compress for network bandwidth (or to compress further), look at zip, zlib, gzip, etc.