You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, I recently started using Raylib with the basic setup. Basically I was trying to load ,GLB file and animate it.
You can see there, my character how looks like without animation.
But.. that happens when I called UpdateModelAnimation method.
I thought that, something wrong with my .GLB file but I have tried this, web site and it was working properly.
I faced similar issue before with Mixamo Y-bot. I tried your example too. and its somewhat similar. I have modified your model a little and you can get here. orc_warrior.zip.
What i did:
Open blender.
Import model in blender.
Delete camera, default cube and light.
Change rotation model to Euler model and set rotations to 0. As shown here.
Now export the model and use it again.
It will work now. You can apply transform in code to make him upright. There's a way to apply transforms permanently to a model in blender but i'm not good with blender.
I think this issue is with UpdateModelAnimation() function(or UpdateModelAnimationBones()) or issue could be that bindPose does not consider rotation of mesh while loading or updating bones. But this process works.
You may see animation running too fast, you can add SetTargetFPS(60); before while loop to see it at normal speeds.
Issue description
Hi folks, I recently started using Raylib with the basic setup. Basically I was trying to load ,GLB file and animate it.
You can see there, my character how looks like without animation.
But.. that happens when I called
UpdateModelAnimation
method.I thought that, something wrong with my .GLB file but I have tried this, web site and it was working properly.
https://gltf-viewer.donmccurdy.com/
Environment
Windows x64 \ Raylib 5.5 \ VC++
Additional files
orc_warrior.zip
The text was updated successfully, but these errors were encountered: