javascript - Fault in Json object - three.js -


i create .3ds object in 3ds max, export in in .obj , transform .js python convert_obj_three.py -i mesh.obj -o mesh.js

there somehting wrong mesh.js sure, don't know what. error message in chrome's console:

enter image description here

enter image description here

also here .js file:

    / converted from: mybarrel.obj //  vertices: 1097 //  faces: 1233 //  normals: 952 //  colors: 0 //  uvs: 1283 //  materials: 1 //  edges: 0 // //  generated obj -> three.js converter //  http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_three.py   var model = {      "version" : 2,      "scale" : 1.000000,      "materials": [  {     "dbgcolor" : 15658734,     "dbgindex" : 0,     "dbgname" : "_fueldefault",     "colorambient" : [0.5843, 0.5843, 0.5843],     "colordiffuse" : [0.5843, 0.5843, 0.5843],     "colorspecular" : [0.0, 0.0, 0.0],     "illumination" : 2,     "opticaldensity" : 1.5,     "specularcoef" : 10.0,     "transparency" : 0.0     }],      "vertices": [16.2 .................]     "morphtargets": [],      "morphcolors": [],      "normals": [-0.0001,-1,-.........]     "colors": [],      "uvs": [[0.3286,0.22     "faces": [43,0,1......]      "edges" : []  };  postmessage( model ); close(); 

please help!

edit! should format of .js file http://stemkoski.github.io/three.js/models/android.js

i see @ top

/ converted from: mybarrel.obj

i assume should be

// converted from: ...


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -