I've got a really newbie question. It's the first time I use billboards with Irrlicht. It seems I'm not able to make the billboard face the camera the right way. Here is the texture I use for my billboard:
And here is what I get in the app:
The code I use is:
Code: Select all
p_pBillbExit = smgr->addBillboardSceneNode();
p_pBillbExit->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
p_pBillbExit->setMaterialTexture(0, driver->getTexture("data/menu/exit.bmp"));
p_pBillbExit->setMaterialFlag(video::EMF_LIGHTING, false);
p_pBillbExit->setSize(dimension2d<f32>(180, 40));
Thanks !
Edit> My camera is placed that way:
Code: Select all
p_pCam = smgr->addCameraSceneNode(0, vector3df(0, 0, 200), vector3df(0, 0, 0));