Page 1 of 1

obj. loader

Posted: Mon Feb 14, 2011 8:54 am
by y offs et
Like the license says "... in the hope that it is useful...".

I found this simple Wavefront .obj loader in a dusty Delphi archive.
It loads a 3D .obj mesh and sticks a simplistic material on it.

I got it working with Lazarus in Delphi mode, and got it to load a Fragmotion .obj mesh. It also recognizes the material, but I hadn't got the texture to stick yet. That's where the road forks, because I'm working on something elsewhere and I'm going to replace all the windoz specific code with SDL calls, which also allows a spiffy texture loader.

Since SDL isn't a part of ZGE, I thought to throw it out here in case someone else wants to tweak on with it.

Later, guys.