THREE.ObjectLoader issues

object-loader
loaders

#1

How to generate it something like that:
“faces”: [1,0,2,0,1,3,2,4,1,4,2,5,5,6,4,6,5,7,7,8,6,8,7,9,11,10,12,10,11,13,14,11,12,13,15…]

I use Three.js Editor export json file
"faces": [40,1,0,2,0,1,2,0,1,2,40,1,3,0,0,3,1,0,3,1,40,4,3,1,4,3,0,4,3,0,40,3,5,…]use it THREE.ObjectLoader class,vertex index do not match the original faces, seems the faces are not composed of the correct vertices.
Thanks!


#2

What version of three.js are you using, and can you post a more complete code example?


#3

I use Three.js Editor as shown below: vertex index do not match the original faces, seems the faces are not composed of the correct vertices.

But use it THREE.ObjectLoader class correctly displayedas below:

This is the json source file: http://114.215.129.33/ds/ds.js

I want to know why this is. Thanks!!

Three.js version

r68


#4

You are using a very old version of three.js, have you tried loading the model with the latest release?