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 beundefined
. - You have to convert your geometry to
BufferGeometry
like shown beneath before creating the mesh. That is necessary sinceMesh.updateMorphTargets()
no longer supportsGeometry
. Always try to work withBufferGeometry
since at some pointGeometry
will not be renderable anymore.
var geometry = new THREE.BufferGeometry().fromGeometry( cubeGeometry );
1 Like