How am I supposed to make a mesh loader?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Cristian
Posts: 55
Joined: Fri Nov 25, 2005 12:02 pm

How am I supposed to make a mesh loader?

Post by Cristian »

I've seen the source to about 5-6 loaders and they have almost nothing in common, so what are the steps in creating an Irrlicht mesh loader?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You implement the interface of an IMeshLoader, so it comes down to creating a method which builds an AnimatedMesh from an IReadFile. which steps are necessary in between are basically up to you, and of course due to the file format.
Cristian
Posts: 55
Joined: Fri Nov 25, 2005 12:02 pm

Post by Cristian »

So I can store the AnimatedMesh in any (logical) way I can think of, the only issue being the actual reading of the file? Ok, thanks for the explanation.
Post Reply