Jump to content
  • Advertisement
Sign in to follow this  
B_old

OpenGL Whats your preferred DDS reader?

This topic is 2065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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? 

Share this post


Link to post
Share on other sites
Advertisement

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

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!