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

Fixes for cubemap loading from ktx/pvr3 container #63

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

attilaz
Copy link
Contributor

@attilaz attilaz commented Aug 6, 2021

ktx: imageSize checking is modified to conform to cubemap exception rule.
https://www.khronos.org/registry/KTX/specs/1.0/ktxspec_v1.html#2.16

This fired the assert: BX_ASSERT(size == imageSize, "KTX: Image size mismatch %d (expected %d).", size, imageSize);
(To reproduce with texturev I had to enable assert because it was defined as NOOP in debug msvc project)

pvr3: container surface layout is similar to ktx (mip first then array/cubemap faces)

See section 4 in http://cdn.imgtec.com/sdk-documentation/PVR+File+Format.Specification.pdf

Here are two files (ktx and a pvr) that reproduce the issue:
cubemaps.zip

@bkaradzic bkaradzic merged commit 0b6febf into bkaradzic:master Aug 6, 2021
goodartistscopy added a commit to goodartistscopy/bimg that referenced this pull request Oct 26, 2021
Change was introduced by commit bkaradzic#63 (b8a7a90)
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

Successfully merging this pull request may close these issues.

2 participants