Irrlicht Engine version 1.6
Microsoft Windows XP Professional Service Pack 3 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce GTX 295 nv4_disp.dll 6.14.11.9038
There is changed code of example 07.Collision_vc9:
Code: Select all
/** Example 007 Collision
main.cpp file line 171
*/
// Add the billboard.
scene::IBillboardSceneNode * bill = smgr->addBillboardSceneNode();
//bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR );
bill->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL );
irr::video::ITexture* tex = driver->getTexture("../../media/woman_doctor_idle.png");
//bill->setMaterialTexture(0, driver->getTexture("../../media/particle.bmp"));
driver->makeColorKeyTexture(tex, core::position2d<s32>(0,0));
bill->setMaterialTexture(0, tex);
...
There are two results of Irrlicht rendering, first is longer distance and second is shorter distance from billboard: