Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.updateMorphTargets is not a function #8967

Closed
3 of 12 tasks
yqrashawn opened this issue May 22, 2016 · 3 comments
Closed
3 of 12 tasks

this.updateMorphTargets is not a function #8967

yqrashawn opened this issue May 22, 2016 · 3 comments

Comments

@yqrashawn
Copy link

yqrashawn commented May 22, 2016

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
  • r71
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, ...)
@makc
Copy link
Contributor

makc commented May 22, 2016

because it is on Mesh prototype?

@makc
Copy link
Contributor

makc commented May 22, 2016

see here for how-to

@yqrashawn
Copy link
Author

@makc Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants