- 22 7月, 2012 1 次提交
-
-
由 Dahie 提交于
I had the issue that some of my OBJ-files weren't loaded by the OBJLoader provided in the examples. Parsing the file crashed with this exception: Uncaught TypeError: Cannot read property 'x' of undefined Three.js:13 THREE.Vector3.addSelf (Three.js:13) THREE.Geometry.computeCentroids (Three.js:91) THREE.OBJLoader.parse (OBJLoader.js:295) xhr.onreadystatechange (OBJLoader.js:21) I traced the error to the OBJLoader and my OBJ files. The obj files were exported by 3ds Max Wavefront OBJ Exporter and slightly differ in format: Where the loader expected: v 0.4500 1.5256 0.6595 they were: v 0.4500 1.5256 0.6595 Note the extra space. This threw off the regular expressions, the vertices weren't parsed and the computeCentroid failed. This commit changes the regular impression to accomodate this variance.
-
- 05 7月, 2012 1 次提交
-
-
由 Mr.doob 提交于
Tomorrow Geometries and CanvasRenderer.
-
- 26 5月, 2012 1 次提交
-
-
由 Mr.doob 提交于
-
- 25 5月, 2012 1 次提交
-
-
由 Mr.doob 提交于
-
- 08 5月, 2012 1 次提交
-
-
由 Mr.doob 提交于
Using xhr.addEventListener instead of xhr.onreadystatechange. Changed 'complete' event to 'load' as native JavaScript.
-
- 07 5月, 2012 2 次提交
- 22 4月, 2012 1 次提交
-
- 21 4月, 2012 1 次提交
-
-
由 Mr.doob 提交于
-
- 18 4月, 2012 6 次提交
- 17 4月, 2012 8 次提交