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

accessor.bufferView is not a required property #103

Open
Clockwork-Muse opened this issue Jul 1, 2021 · 4 comments
Open

accessor.bufferView is not a required property #103

Clockwork-Muse opened this issue Jul 1, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Clockwork-Muse
Copy link

The gltf spec says that accessor.bufferView is not a required property ("init as zeros"), but the converter acts as if this property is required.

While Blender seems to output this in most cases regardless, other tools are not as nice, especially when it comes to .glb files, or files using draco mess compression.

@el-dee
Copy link
Contributor

el-dee commented Jul 2, 2021

Do you have a file lacking a bufferView that you can share here ?

@Clockwork-Muse
Copy link
Author

Khronos sample model

@el-dee
Copy link
Contributor

el-dee commented Jul 3, 2021

If I understand the specification correctly, accessor.bufferViewer is indeed not a required property, but "When it's omitted, the sparse accessor is initialized as an array of zeros of size (size of the accessor element) * (accessor.count) bytes."

sparse or an extension is therefore needed to replace those zeros with meaningful values. (sparse will offset some of those zeros using the indices and values buffers)

In case of Draco compression, the actual data will be provided to the accessors after Draco decompression.

So, actually what is missing is sparse and Draco support

@Moguri Moguri added the bug Something isn't working label May 13, 2023
@MikelAyani
Copy link

I am having the same issue with some glb files, I guess it is because the lack of Draco compatibility. Any plans to implement it? I would like to help anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants