ands / lightmapper

A C/C++ single-file library for drop-in lightmap baking. Just use your existing OpenGL renderer to bounce light!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proper obj format

rasteron opened this issue · comments

Hi, I'm trying to test other objs or just simply open the current example gazebo.obj model to Blender or any other modelling tool and exporting it again. The new output model crashes the example program with this error.

File: C:\ands\example\example.c, Line 319
Expression: !"unknown identifier"

Any ideas?

I have the same problem.
Im exporting from Blender, and whenever I want to generate custom UV Lightmap,
the result is mess.
@rasteron make sure you triangulate your mesh (Ctrl+T), import the example, then experiment with the settings.
result

@r3aktormk Thanks! but still no luck and same error even exporting with triangulate mesh..

commented

Sorry, I should have mentioned that the master branch only has the minimum viable obj parser to read that one obj file. If you switch to the development branch, you'll get a proper obj loader and slightly better lightmapping performance. :)

Awesome, thanks works great now! :D

commented

Cool :)