You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These lessons work very well for the sample OBJ files that you provide, but I'm having trouble loading in other OBJ files. I pulled a few from https://groups.csail.mit.edu/graphics/classes/6.837/F03/models/ and they either threw segmentation faults or drew the geometry completely wrong.
The text was updated successfully, but these errors were encountered:
Meaning it expects 4 characters after each index, specifically a slash followed by a number followed by a slash followed by another number. But not all OBJ files define vt's and vn's so some define faces like this:
f 2227 2077 2049
I changed the code to do this instead:
while (iss >> idx)
and it worked, but ideally it'd be able to handle either format. Will keep looking...
These lessons work very well for the sample OBJ files that you provide, but I'm having trouble loading in other OBJ files. I pulled a few from https://groups.csail.mit.edu/graphics/classes/6.837/F03/models/ and they either threw segmentation faults or drew the geometry completely wrong.
The text was updated successfully, but these errors were encountered: