Layered Textures
Posted: Mon Jul 09, 2007 8:29 pm
Hi guys,
I require many different cubes, and I thought that using layers of transparant textures would prevent me to make many different textures.
But i seem to not be able to use textures over each other. I do use different layers, but only the 0th layer displays.
Thanks in advance!
I require many different cubes, and I thought that using layers of transparant textures would prevent me to make many different textures.
But i seem to not be able to use textures over each other. I do use different layers, but only the 0th layer displays.
Code: Select all
player->setMaterialFlag(EMF_LIGHTING, false);
player->setPosition(core::vector3df(pos,151.f,pos));
player->setScale(core::vector3df(-150.f,150.f,150.f));
player->setMaterialType(EMT_TRANSPARENT_ALPHA_CHANNEL);
player->setMaterialTexture( 2, driver->getTexture("media/teamdarkred.png") ); //background
player->setMaterialTexture( 1, driver->getTexture("media/blueedge.png") ); //edge color
player->setMaterialTexture( 0, driver->getTexture("media/number1.png") ); //number