-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[rmodels] GLB Animation plays incorrectly. #4327
Comments
@IoIxD Note glTF file format is quite complex with many configuration options and not all the options are supported by raylib. Feel free to review the code and send a PR with a fix. |
What other formats does Raylib support thay support animation |
@IoIxD m3d and iqm. |
Yeah I say leave this open for anybody else - wants to take a crack at this but I'm just gonna use one of the formats you suggested. Shame too, I liked glb for its integrated textures. |
@IoIxD Ok, I'll leave it open for 3 months, if nobody is ready to work on it in that time this issue will be closed. |
Just some triage, could reproduce the issue with the model from the gist, i could not reproduce the issue with another model i had. Also oddly i can't seem to be able to reexport the |
@HarryDC Definitely it can be an issue with the model and how the animations are exported. I'm afraid I'm closing this issue as raylib can not support all possible glTF configurations, it's out of scope. |
Issue description
The animation from my GLB file plays with incorrect proportions, shown below. I made an MRE that almost exactly copy/pastes code from the example, and can reproduce the issue.
I asked about this in the Discord and somebody said that because I made this in Blender, I need to remove all modifiers. But that can't be right (or it is something that needs to be solved) because an armature modifier is required to make animations in Blender. Removing it before export removes animations.
Environment
OS: Fedora Linux 40 (Xfce) x86_64
Host: 20BX001AUS ThinkPad T450s
Kernel: 6.10.9-200.fc40.x86_64
CPU: Intel i5-5300U (4) @ 2.900GHz
GPU: Intel HD Graphics 5500
Memory: 11833MiB
Issue Screenshot
2024-09-13.19-51-45.mp4
Code Example
I have a minimal example of the code (+ the model and .blend file itself) here: https://gist.github.com/IoIxD/ee521a47fd1f2a9bb42ac1c78ef3da6a
The text was updated successfully, but these errors were encountered: