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

Is accessor.bufferView now optional in glTF 2.0? #863

Closed
pjcozzi opened this issue Mar 9, 2017 · 5 comments
Closed

Is accessor.bufferView now optional in glTF 2.0? #863

pjcozzi opened this issue Mar 9, 2017 · 5 comments

Comments

@pjcozzi
Copy link
Member

pjcozzi commented Mar 9, 2017

In 2.0/specification/2.0/schema/accessor.schema.json, it is not listed as required:

"required": ["componentType", "count", "type", "max", "min"]

It was required in glTF 1.0: https://github.com/KhronosGroup/glTF/tree/master/specification/1.0#accessorbufferview-white_check_mark

@sbtron do you know if this was an intention change (I couldn't find the history in GitHub) or a typo when updating the schema to JSON Schema 4?

@lexaknyazev
Copy link
Member

Undefined bufferView means that accessor "contains" only zeros. This is used together with sparse field.

@lexaknyazev
Copy link
Member

Expected use case is keyframe data for animated weights of morph targets.

@pjcozzi
Copy link
Member Author

pjcozzi commented Mar 9, 2017

Ah, I should have looked at the git history. Can we make this more explicit in a gltf_detailedDescription field?

@bghgary
Copy link
Contributor

bghgary commented May 19, 2017

@lexaknyazev Are you planning on updating the description in the schema?

@lexaknyazev
Copy link
Member

See #970.

@pjcozzi pjcozzi closed this as completed May 22, 2017
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

3 participants