KhronosGroup / KhronosGroup/glTF-Sample-Environments
KTX2 files fail validation
Nobody has claimed this yet.
- Dominant language
- Batchfile
- Stars
- 101
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to extract individual images from the sample environment KTX2 files, but they all fail validation checks:
KTX-Software-main/build/ktx info glTF-Sample-Environments-main/field/lambertian/diffuse.ktx2
Validation failed
error-6001: Mismatching dfdTotalSize and dfdByteLength. dfdTotalSize must match dfdByteLength.
dfdTotalSize is 28 but dfdByteLength is 0 and they must match.
error-6015: Invalid colorModel in basic DFD block for RGB VkFormat.
DFD block #1 colorModel in basic DFD block is KHR_DF_MODEL_UNSPECIFIED but for VkFormat VK_FORMAT_R16G16B16A16_SFLOAT it must be KHR_DF_MODEL_RGBSDA.
error-6025: Invalid sample count in basic DFD block. The sample count must match the expected sample count of the VkFormat.
DFD block #1 sample count in basic DFD block is 0 but for VkFormat VK_FORMAT_R16G16B16A16_SFLOAT it must be 4.
error-6021: Invalid bytesPlanes in basic DFD block. The values do not match the expected values.
DFD block #1 bytesPlanes in basic DFD block are 0 0 0 0 0 0 0 0 but for VK_FORMAT_R16G16B16A16_SFLOAT textures these must be 8 0 0 0 0 0 0 0.
I assume this is because the ktx tool is much more recent than the ktx2 files. I tried checking out a much older version of the KTX-Software, but the older versions don't seem to have a tool for image extraction from ktx2. Any advice on how to make this work?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the KTX-Software ktx info command and the sample file glTF-Sample-Environments-main/field/lambertian/diffuse.ktx2. Investigate why validation reports mismatched DFD fields, then determine a compatible way to extract individual images from the KTX2 files without validation failures.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100