Can not create a morph animation

I want to create a morph animation but is do not works,what wrong with it?
the source is :index.html (5.5 KB)

Working demo: https://jsfiddle.net/897tjayh/

  • You have to init your GUI after your model. Otherwise cube will be undefined.
  • You have to convert your geometry to BufferGeometry like shown beneath before creating the mesh. That is necessary since Mesh.updateMorphTargets() no longer supports Geometry. Always try to work with BufferGeometry since at some point Geometry will not be renderable anymore.
var geometry = new THREE.BufferGeometry().fromGeometry( cubeGeometry );
1 Like