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

Description of morph targets in mesh.primitive.schema.json is misleading #2382

Open
UX3D-haertl opened this issue Apr 3, 2024 · 0 comments
Assignees
Milestone

Comments

@UX3D-haertl
Copy link

"description": "A plain JSON object specifying attributes displacements in a morph target, where each key corresponds to one of the three supported attribute semantic (`POSITION`, `NORMAL`, or `TANGENT`) and each value is the index of the accessor containing the attribute displacements' data."

A plain JSON object specifying attributes displacements in a morph target, where each key corresponds to one of the three supported attribute semantic (POSITION, NORMAL, or TANGENT) and each value is the index of the accessor containing the attribute displacements' data.

Morphing texcoord and color attributes is supported by the spec and it is also implemented in sample viewer.
Reading the description one could think this is not the case. This was also pointed out by #1363 (comment) but was not changed.

The wording is probably the reason why glTF-Validator reports an error for using texcoord or color as morph targets.
Related issue:
KhronosGroup/glTF-Validator#213

@lexaknyazev lexaknyazev self-assigned this Apr 3, 2024
@lexaknyazev lexaknyazev added this to the 2.0.x milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants