Description of the problem
Many of the Blender examples have morph targets, however I’ve been trying to export a mesh from Blender and morph targets aren’t exported.
You can see shape keys are set up in Blender, and keyed in the “Shape Key Editor” view:
However on export to JSON there are no morph targets. Only one empty array under they "geometry"
key, "morphTargets":[],
.
Exporter settings include morph:
You can download the .blend file in question to try this out: eye-test.blend.zip
Three.js version
✅ Dev✅ r76
UPDATE: I found a workflow that works for me:
and modify morph target influences by modifying the mesh.morphTargetInfluences, which contains floats between 0. and 1. corresponding to each shape key. seems like no “needsUpdate” calls are necessary, you can just set them and the mesh will update. Like so:
mesh.morphTargetInstances[0] = 1.