obj. loader

Do you want to contribute to improving ZGameEditor? Check out the list of open activities and find out where you may be able to help!

Moderator: Moderators

Post Reply
User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

obj. loader

Post 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.
Attachments
SteveMuckinAbout.zip
(686.16 KiB) Downloaded 1003 times
wavefront.zip
original
(97.57 KiB) Downloaded 1010 times
"great expectations"
Post Reply