a-day-old-bagel / DualityEngine

3D game stuff
0 stars 0 forks source link

Assimp loads obj files neglecting last face #19

Closed a-day-old-bagel closed 8 years ago

a-day-old-bagel commented 8 years ago

This may be a bug on their end and I've submitted an issue to the assimp github page. If your obj file doesn't have a trailing newline character after the last line (which is usually a face-specifying line), that line won't be loaded. They probably have a regex that includes the newline character so it misses those cases.

Anyway, to fix it for now, just make sure there's an empty line at the end of your obj file.

natevm commented 8 years ago

Awesome! Glad that's taken care of. I wouldn't have thought to make sure obj's have a carriage return at the end. Nice work.