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
MD3 loader
-
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
There are precompiled files here.
Anyway, can you be more specific about your problem? Maybe you should simply set the material lighting flag properly...
Anyway, can you be more specific about your problem? Maybe you should simply set the material lighting flag properly...
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.
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.
-
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
Tried it, and it worked for me
Maybe some problem with your skin file, try converting it to a different format.
Also, try adding a dynamic light:
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));