Hi everybody!
I have one question...how can i make a billboard to be transparent?
(I want only one color to be transparent and all the others solid)
I tried something like this->
video::ITexture* image = driver->getTexture("picturre.bmp");
driver->makeColorKeyTexture(image, core::position2d<s32>(1,1));//pixel with color i want to be transparent
scene::IBillboardSceneNode * bill = smgr->addBillboardSceneNode();
bill->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL);
bill->setMaterialTexture(0, image);
bill->setMaterialFlag(video::EMF_LIGHTING, false);
etc...
i put that billboard in some 3d space...
and it is allright when camera is very near to the billboard,otherwise,when camera moves far enough from the billborad,it becomes full solid,including color i want to be transparent...
Is this what i did a good practise anyway?
My billboard is not transparent
what type of graphic are u using?
only bitmap- type images will have a uniform clean color sceme
make sure taht is px u actually use as filtercolor also is the one used by the complete background
only bitmap- type images will have a uniform clean color sceme
make sure taht is px u actually use as filtercolor also is the one used by the complete background
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
+1
Same problem billboards are becoming black when moving the camera away.
Same problem billboards are becoming black when moving the camera away.
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com