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

Fix #1871 (vertex colors not loaded in gltf models) #1873

Merged
merged 4 commits into from
Nov 29, 2022

Conversation

tonihele
Copy link
Contributor

Fixes #1871

With @Ali-RS doing the heavy lifting, this was very trivial to figure out. We just read the wrong amount of bytes when reading as float from arrays of short. Tested with the Duck and the Girl supplied in the issue. Both still work. Only the Girl has these normalized ushort float buffers though.

@pspeed42
Copy link
Contributor

Nice.

@Ali-RS
Copy link
Member

Ali-RS commented Nov 28, 2022

Thanks @tonihele

@Ali-RS Ali-RS changed the title Bugfix/issue 1871 Fix #1871 (vertex colors not loaded in gltf models) Nov 28, 2022
@tonihele
Copy link
Contributor Author

I'll merge this in roughly 8 hours.

@tonihele tonihele merged commit 5557456 into jMonkeyEngine:master Nov 29, 2022
@tonihele tonihele deleted the bugfix/issue-1871 branch November 29, 2022 15:14
@Ali-RS Ali-RS added this to the v3.6.0 milestone Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vertex colors not loaded in Gltf models
3 participants