Hi, I'm new here, and I've just started using Irrlicht. I trying to make a simple FPS game to get to know the engine a little better, and am having some problems with loading weapons. I am using the code from the .irr file example to load my level. Now, I've gotten that working, but my problem is that all weapons that I load (and I geuss this means all models) show up tinted pink. With no texture, and lighting off, they are pure pink, and with a texture they are textured and tinted pink. Here is my weapon loading code -
Code: Select all
//Weapons
IAnimatedMesh* mp_m = smgr->getMesh(".//Media//Weapons//Gun.3ds");
ITexture* mp_t = driver->getTexture(".//Media//Weapons//Gun.tga");
if(mp_m && mp_t)
{
IAnimatedMeshSceneNode* mp = smgr->addAnimatedMeshSceneNode(mp_m);
mp->setMaterialTexture(0,mp_t);
mp->setMaterialFlag(EMF_LIGHTING, false);
//mp->setScale(vector3df(200,200,200));
mp->setParent(camera);
mp->setPosition(vector3df(50.0f,-60.0f,90.0f));
};
Any help would be appreciated. If you want, I can supply all of my code.