i have this problem in my project.
i create a plane
Code: Select all
scene::ISceneNode* ground;
ground = Smgr->addCubeSceneNode(1);
ground->setScale(irr::core::vector3df(4,0.01f,4));
ground->setMaterialFlag(video::EMF_LIGHTING, false);
ground->setPosition( core::vector3df(0.0f, -1.0f, 0.0f));
Code: Select all
scene::ISceneNode* node = 0;
// create light
node = Smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 1200.0f);
scene::ISceneNodeAnimator* anim = 0;
anim = Smgr->createFlyCircleAnimator (core::vector3df(0,0,0),20.0f);
node->addAnimator(anim);
anim->drop();
// attach billboard to light
node = Smgr->addBillboardSceneNode(node, core::dimension2d<f32>(1, 1));
node->setMaterialFlag(video::EMF_LIGHTING, false);
node->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
node->setMaterialTexture(0, Driver->getTexture("particlewhite.bmp"));
thanks in advance!