Closed pl1307 closed 10 years ago
The method geometry.computeCentroids()
was removed in r.67. Are you calling it in your application? Are your include files from the same release version as the three.js library you are linking to?
I dont't know. I didn't found the VRMLLoader in this repository, then I took the VRMLLoader.js from this example: http://bdcampbell.net/book/software/vplayground/vrml_example.html Most likely it is a older version. I have solved my problem with a collada import which works great. Thanks for your help!
You can find the loader compatible with the current release here: http://github.com/mrdoob/three.js/tree/master/examples/js/loaders
I got a very similar error:
Your program encountered an unrecoverable error, can not draw on canvas. Error was:
TypeError: this.computeCentroids is not a function
when declaring
var eyeGeom = THREE.SphereGeometry(10, 32, 16);
without the new
as it should be like so:
var eyeGeom = new THREE.SphereGeometry(10, 32, 16);
Perhaps this helps you.
I wanted to load this file with VRMLLoader:
Watching this file works in cortona3d if you click on "fit" because the camera position is strange. I have the same error in multiple files, but I have choosen this file because it is the smallest one.