FBXLoader: model with animated morph targets creates invalid animation track

Description of the problem

I’ve encountered a problem when loading a model with animated morph targets.

There sometimes appears to be a mismatch in naming between the model’s morphTargetDictionary property and the Deformer’s attribute name (which becomes ‘morphName’), which means that the line 2704 in generateMorphTrack returns undefined.

For example, the FBX I’m using (created in Maya) sets the morphTargetDictionary key as “pasted_pCylinder1” whereas the deformer attribute name is set to the subdeformer name “blendShape1.pasted_pCylinder1”. In this case, the animation track name becomes pCylinder1.morphTargetInfluences[undefined] which obviously doesn’t work!

In another example, the names are totally different so again, the track name contains ‘undefined’.

Apologies if this is a little vague, I don’t know a lot about the internals of the FBX format so I’m not sure what the expected behaviour/naming should be. Is it more a question of making sure the naming is more consistent before exporting from Maya?

Three.js version
  • Dev
  • r96

Author: Fantashit

2 thoughts on “FBXLoader: model with animated morph targets creates invalid animation track

Comments are closed.