Sign in to follow this  
Followers 0
B_old

OpenGL
Whats your preferred DDS reader?

4 posts in this topic

Since doing more Linux/OpenGL stuff I have been wondering what people are using to load DDS files. Freeimage for instance decompresses the data automatically, which is not what I want in this case. I then tried GLI but unfortunately it fails read mipmaps, at least for files generated with the DDS plugin for Gimp and seems to have even more trouble with DXT5 compressed files.

Is there some library that is more robust? Are people generally implementing their own readers? Or compressing textures on the fly?

Maybe I should take a look at Devil although it is no longer maintained. Can you recommend it? 

0

Share this post


Link to post
Share on other sites

My preferred DDS  library tool is PVRTexTool, which lets me convert it to KTX format. laugh.png

 

KTX has the advantage that it's unambiguously documented (though, you probably couldn't care less since there's a ready-to-use loader library!) and that it loads into something you can directly feed to OpenGL. All the constants and such are already correct as OpenGL expects them, no need to do any obscure translations from some DirectX constants (which sometimes change meaning with a different version) to some other OpenGL constants. Just give OpenGL what's in the file. To me, that is a big, big plus.

Edited by samoth
0

Share this post


Link to post
Share on other sites

I gave GLI another try and have to admit, that the mipmap problem was entirely my mistake. I was able to solve the problem with BC5 encoded files saved from gimp and it seems to be fixed in the next version. All in all I'm quite content with the library now.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0