Bossbazen / webgl-loader

Automatically exported from code.google.com/p/webgl-loader
0 stars 0 forks source link

ERROR: bad second index at line [...] #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Loading in a large mesh that was converted from assimp (open asset import lib) 
to .obj produces the following issue:

ERROR: bad second index at line [...]

Looking in the obj file at the given line revealed nothing special to me:

#0 vertex normals

# Mesh 'defaultobject' with 1388088 faces
g defaultobject
usemtl DefaultMaterial
f  1/1/ 2/2/ 3/3/ <<<<<<<<< exporter : ERROR: bad second index
f  4/4/ 5/5/ 6/6/
f  7/7/ 8/8/ 9/9/
f  10/10/ 11/11/ 12/12/

Model file:
http://threever.org/demos/problem/dScanASSIMP.obj

mtl lib file:
http://threever.org/demos/problem/dScan.obj.mtl

(Possible something went wrong with the converting in assimp...)

Original issue reported on code.google.com by guntr...@googlemail.com on 27 Oct 2012 at 4:58

GoogleCodeExporter commented 9 years ago
Ah, the face parser is expecting to find another number, like %d/%d/%d instead 
of %d/%d/

Original comment by wonchun on 23 May 2013 at 3:44