Three.js: this.updateMorphTargets is not a function

Created on 22 May 2016  ·  3Comments  ·  Source: mrdoob/three.js

Description of the problem

(This is NOT a help site. Please read the guidelines above before posting.)

    var ThreeJSObject = function(x, y, z, udp, img) {
            var texture, material, geometry, geom;

            texture = THREE.ImageUtils.loadTexture(img);

            material = new THREE.MeshBasicMaterial({
                map: texture
            });

            geometry = new THREE.PlaneBufferGeometry(8, 8);

            THREE.Mesh.call(this, geometry, material);

            this.prototype.foo = ...
            ...
}

I try to use THREE.MESH.call(this,geometry,material) to creat a object in my viewer, and chrome gives me this.

this.updateMorphTargets is not a function

Three.js version
  • [ ] Dev
  • [x] r71
  • [ ] ...

    Browser
  • [x] All of them

  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer

    OS
  • [x] All of them

  • [ ] Windows
  • [ ] Linux
  • [ ] Android
  • [ ] IOS
    Hardware Requirements (graphics card, VR Device, ...)

Most helpful comment

see here for how-to

All 3 comments

see here for how-to

@makc Thx!

Was this page helpful?
0 / 5 - 0 ratings