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

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

obj. loader

Postby y offs et » Mon Feb 14, 2011 8:54 am

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
wavefront.zip
original
(97.57 KiB) Downloaded 463 times
SteveMuckinAbout.zip
(686.16 KiB) Downloaded 459 times
"great expectations"

Return to “Open activities”

Who is online

Users browsing this forum: No registered users and 1 guest