Read *.dds Files with JOGL

Hi!

I’m using jogl and until now i used textures in *.png format. (This works fine)
Now i want to use dds files and also found support for the format in the TextureIO Class.
I changed the source code to load the dds files:

textureData = TextureIO.newTextureData(new File(“img/outdoor_wall1_1_s.dds”); true, TextureIO.DDS);
texture = TextureIO.newTexture(textureData);

When i start the programm however the walls are plain white - with no texture.
Any hint how to solve this?

Any help appreciated,
ToM

Ah i found the error. The textures were all white because i had mipmaps enabled.
Strange why does dds doesn’t allow mipmaps ?

ToM

DDS supports mipmaps, but maybe you haven’t included them in the file, or the mipmaps were white. (or something is broken in the JOGL loader)

I have a feeling something may be broken in the JOGL loader. I’ve seen similar behavior loading DXTn-compressed textures with mipmaps but wasn’t sure whether this was a bug in the OpenGL driver or in the JOGL loader. If you have a chance to look at the DDSImage and TextureIO classes and see if anything is obviously wrong that would be a help. Otherwise feel free to file a bug using the JOGL Issue Tracker.