PDA

View Full Version : Simple .obj loader (C++)



AK_N00B
06-18-2012, 08:51 PM
Hi everyone!

I've been searching on the web and forums for the last few days for a SIMPLE .obj loader for OpenGL in C++, and though there are several available out there (and even here), I'm not being lucky when it comes to finding a simple one (that allows textures as well).

As you can tell, I'm away from being an experienced programmer, and most of the codes I've found so far seem to have problems I am not being able to solve. I did got in touch with great examples (e.g. Assimp), but they are way too over the top for the simple solution I need (loading at least 3 .objs together)
and got me lost.

This one, for example, (https://code.google.com/p/obj-mesh-libs/source/search?q=trunk&origq=trunk&btnG=Search+Trunk
), compiled correctly to me, but I didn't find the right place to call for the Mesh * m = new WavefrontObject("MyObj.obj");
, and therefore I couldn't get it to work too.

Do any of you know where I can find a suitable code for my case?

Appreciate any help.