Marzac / le3d

A straightforward and easy to use 3D software renderer for real-time retro graphics.
https://marzac.github.io/le3d/
MIT License
60 stars 6 forks source link

OBJ parser - does not support triangles without texture coords #15

Closed Marzac closed 6 years ago

Marzac commented 6 years ago

The current Wavefront obj file parser is extremely naive.

It expects all triangles to have both

Truth is they can have only vertex coords index or even have normal coords index. If the export does not respect the format it crashes the renderer.

Marzac commented 6 years ago

Done and checked!