Compressed Textures

Started by lynnt7, May 26, 2004, 17:41:49

Previous topic - Next topic


Does anyone have an example for loading ".dds" textures?  I don't think i'm getting my pixel data ByteBuffer populated properly.

when calling:


I get:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4207C5FC




What method are you using to generate your pixeldata buffer?

I'd like to use DDS textures as well, but I'm not sure how to load the buffer.  ImageIO obviously doesn't do it.
I can no longer sit back and allow, communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy, to sap and impurify all of our precious bodily fluids." - Gen. Jack T. Ripper


With a great deal of help from someone much more saavy than I, I have a simple app that loads & displays a DDS Texture.  It's basically a Java port of a C++ example available from NVIDIA.  It has some proprietary stuff in it to deal with endians - I'll post here when I get a clean example worked up.


Unbeknownst to me the code makes reference to some third party header files.  I'm going to have to do some more checking before I can post the code.