Skip to content

sheen.ktx2 is not a valid ktx2 file. #6

@MarkCallow

Description

@MarkCallow

https://github.com/KhronosGroup/glTF-Sample-Environments/blob/master/helipad/charlie/sheen.ktx2 has an invalid data format descriptor. Probably any other file written by "UX3D SlimKTX2 v1.0" is also invalid. The problems are:

  1. The DFD gives its length as 0 although the KTX2 file header gives the correct byte length.
  2. The color model is UNSPECIFIED but the KTX v2 spec requires RGBSDA.
  3. All BYTES_PLANE fields are 0
  4. The DFD has 0 samples.

The libktx reader uses the DFD in order to avoid a big switch on the VkFormat so the invalid DFD causes it to return an error when trying to load this file.. The three.js loader also uses the DFD info and I'm sure other software does too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions