Reputation: 213
I was trying to export an object from marmoset toolbag which is textured and animated. However, even though i could play animation in marmoset, im unable to find the same when I export it as gltf file from marmoset. It is unable to export with animations.
I would use the same gltf/glb file in three.js import, but unable play the animation.
GLB file export from marmoset toolbag: Download
var animations = gltf.animations;
if ( animations && animations.length ) {
mixerf = new THREE.AnimationMixer( Objloaded1 );
for ( var i = 0; i < animations.length; i ++ ) {
mixerf.clipAction( animations[ i ] ).play();
}
}
with this above code i'm able to play animations of other gltf models but not the one from marmoset. kindly help.
Upvotes: 2
Views: 1624
Reputation: 213
For Now,
I have tried contacting marmoset support. They confirm that there is no animation support for .gltf export yet.
Upvotes: 0
Reputation: 191
Upon inspection, it is clear the .glb file you provide contains no animation information. Perhaps Marmoset Toolbag's glTF exporter doesn't support animations yet, or perhaps there's an export option you didn't check? I don't own that software, so I can't help you with that part.
I downloaded the FBX file you provided and ran it through the FBX2glTF tool. This does result in a .glb file with a functional animation.
Upvotes: 1