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

DDS: 3D image data contains only the first image #110

Open
kristiker opened this issue Jun 24, 2023 · 1 comment
Open

DDS: 3D image data contains only the first image #110

kristiker opened this issue Jun 24, 2023 · 1 comment

Comments

@kristiker
Copy link

Image file: tests/Pfim.Tests/data/TestVolume_Noise3D.dds, loaded with Pfimage.FromFile(ddsFile, new PfimConfig(decompress: false))

gives you access to the first depth layer only. The texture is 64x64x64(x4), but image.Data.Length is 64x64(x4). Note that I am not trying to decompress the DDS.

I'm not too bothered by this. Mostly noting the issue down.

@nickbabcock
Copy link
Owner

Nicely found. You're right that mipmaps aren't considered when decompression is skipped. I think it should be able to be supported via the same MipMaps API that is currently exposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants