Open UX3D-haertl opened 3 years ago
Therefore, indices and attributes of the primitive should be omitted...
The primitive's attributes (and indices, if applicable) are always required, even without fallback uncompressed data. They reference accessor definitions, containing all of the normal properties except the bufferView
property. The accessor definitions are required to determine the count, type, and other properties of the compressed data. The compressed data in the Draco bitstream will not necessarily have all of that data.
The Conformance section gets into this a bit, but feel free to open a PR suggesting clarifications!
Thanks for the clarification :) I opened a PR to clarify the accessor properties
If I understood correctly: If
KHR_draco_mesh_compression
is defined in theextensions_required
field, only compressed data should be kept.Therefore,
indices
andattributes
of the primitive should be omitted (as well as the referenced bufferviews and buffers if they are not used elsewhere). To make this possible,attributes
should no longer be required or should not have the requirement to consist of minimum one item, ifKHR_draco_mesh_compression
is defined in the primitive.If this is the desired functionality, it would be a good idea to explicitly state it in the documentation of
KHR_draco_mesh_compression