MD3 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
Spidla
Posts: 31
Joined: Tue Nov 25, 2003 3:46 pm
Location: Czech Republic
Contact:

MD3 loader

Post by Spidla »

Hi I have a problem with MD3 loader.
I inserted MD3 loader to Irrlicht 0.4.2 project and recompiled it.
After few problems with compiling I have made DLL and LIB and tried it in my project. Everything seems to be allright and I can render MD3 model, but I when I turn off lighting, nothing is visible I can`t see nothing.

Please Niko, can you insert MD3 loader into Irrlicht and upload compiled DLL on web ?

Thanks
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

There are precompiled files here.
Anyway, can you be more specific about your problem? Maybe you should simply set the material lighting flag properly...
Spidla
Posts: 31
Joined: Tue Nov 25, 2003 3:46 pm
Location: Czech Republic
Contact:

Post by Spidla »

I know that there is the precompiled version, but it is precompiled in DevCpp and I am working in VC++ and I need LIB file generated by VC++ during the compilation.

And about my problem :
I use this code :

scene::ISceneNode *NODE = LPMan->addAnimatedMeshSceneNode(LPMan->getMesh("D:/pj_lamp.md3"));

NODE->setMaterialTexture(0,LPDriver->getTexture("D:/texture.jpg"));
NODE->setMaterialFlag(video::EMF_LIGHTING,false);

When I use it I became blank screen.
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

Tried it, and it worked for me :shock:
Maybe some problem with your skin file, try converting it to a different format.
Also, try adding a dynamic light:

Code: Select all

yourDriver->setAmbientLight (video::SColorf (255, 200, 200, 200));
Spidla
Posts: 31
Joined: Tue Nov 25, 2003 3:46 pm
Location: Czech Republic
Contact:

Post by Spidla »

Yes it`s working. Thanks Madinitaly
Post Reply