Model Viewer Animation Question #4522
-
Hello, I have a question. As you can see in the picture, there are 2 separate characters and actually both models have separate animations, but only 1 of them works, is there a way to run both of them? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
if you want both animations to play/loop simultaneously then yes! Entirely possible. You just want to make sure when exporting from blender you uncheck the "group by NLA track" in the animation dropdown under the GLB export settings. If you want independent control over the animations (one plays when x happens, other plays when y happens) then you want to actually IGNORE what I said above, and then use the modelviewer API + some javascript to achieve said functionality. Example: Based on the pose it looks like you're using Mixamo library. Here's an example of a single model that has multiple animations that can be triggered via hovering over the dots on the bottom of the page |
Beta Was this translation helpful? Give feedback.
-
Well, I have another question, can someone who knows answer it? Is it possible to do the FPS camera thing, that is, walk around the model and examine it? |
Beta Was this translation helpful? Give feedback.
if you want both animations to play/loop simultaneously then yes! Entirely possible. You just want to make sure when exporting from blender you uncheck the "group by NLA track" in the animation dropdown under the GLB export settings.
If you want independent control over the animations (one plays when x happens, other plays when y happens) then you want to actually IGNORE what I said above, and then use the modelviewer API + some javascript to achieve said functionality.
Example: Based on the pose it looks like you're using Mixamo library. Here's an example of a single model that has multiple animations that can be triggered via hovering over the dots on the bottom of the page