Skip to content

My obj won't load

groverburger edited this page Jan 16, 2021 · 1 revision

In g3d, models must have their faces triangulated before they can be used in-game. This means that faces must be made out of only triangles, and not any shape with more sides like squares or pentagons.

This can be easily achieved in Blender. There is a simple "triangulate faces" checkbox when you go to export an obj file. Other model editors most likely have the same feature.

If you feel courageous enough to dig into the objloader.lua code, a contribution for allowing untriangulated model imports would be greatly appreciated!

Clone this wiki locally