Error loading obj file

Hello! It seems this file is a bit malformed, because it doesn’t have any UV data (which would be lines starting with vt):

But the face data is specified as if there was UV data:

the expected format here would be the f 1//1 2//2 etc...

The other viewers are probably trying to fix this under the hood by assuming that, if you have a face in the f 1/1 2/2... format, but there are no UV coordinates, then the second index refers to the normals instead of the UVs. Should we do the same @sebavan ? We could perform this correction by default, or throw an error in the default case, and pass an option to correct.

3 Likes