Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load DDS files in DevIlImageLoader without decompression #27

Open
mosra opened this issue Jan 7, 2017 · 2 comments
Open

Load DDS files in DevIlImageLoader without decompression #27

mosra opened this issue Jan 7, 2017 · 2 comments

Comments

@mosra
Copy link
Owner

mosra commented Jan 7, 2017

I thought this would be just a few lines changed, but apparently not and the more I'm trying to search anything about this in the incredibly sparse docs the more miserable I get.

What I found out so far:

  • I thought that IL_IMAGE_FORMAT would be set to something DXT-related for *.dds, but it's set to RGBA for a DXT5 file.
  • So I thought that this is in IL_IMAGE_TYPE. That returns 0x1401 for all images and that value is not in the header. What's that?!
  • The IL header has some defines for DXT like IL_DXTC_FORMAT, IL_KEEP_DXTC_DATA or IL_DXT5, but I failed miserably at searching for their use when loading images.

So far it seems that there is no way to load the DDS files without decompression and that would be very bad, because what's the point of doing that? A plain JPEG would match such use case much better.

Cc: @alicemargatroid

@ghost
Copy link

ghost commented Jan 8, 2017

@mosra When you load it without converting it, you can read it out in raw format I think.
I'll look into it, I've got some time this weekend, but no guarantees.

@mosra
Copy link
Owner Author

mosra commented Jan 8, 2017

Thank you! :)

@mosra mosra moved this from In progress to TODO in Asset management Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant