Hi all
i want to blend sydney mesh with my background ,so i do the following
Code: Select all
IAnimatedMesh* mesh;
mesh = irrSceneMgr->getMesh("media/sydney.md2");
IAnimatedMeshSceneNode* node;
node = irrSceneMgr->addAnimatedMeshSceneNode(mesh,0,666);
node->setMaterialType(EMT_TRANSPARENT_ALPHA_CHANNEL);
node->setMaterialFlag(EMF_LIGHTING, false);
node->setFrameLoop(0, 310);
node->setMaterialTexture( 0, irrVideo->getTexture("media/sydney.bmp"));
node->getMaterial(0).AmbientColor.setAlpha(255/2);
node->getMaterial(0).DiffuseColor.setAlpha(255/2);
please help