(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
[ ] ...
[x] All of them
[ ] Internet Explorer
[x] All of them
Most helpful comment
see here for how-to