I tested out some movements on larger distances and was surprised, that objects disappear with a distance value of more than 3000. Therefore I used a simple billboard object from one of the examples:
Code: Select all
irr::scene::ISceneNode *light2 = smgr->addLightSceneNode(0, core::vector3df(0,0,-3000.0),video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 200000.0f);
irr::scene::ISceneNode *pbill = smgr->addBillboardSceneNode(light2, core::dimension2d<f32>(695, 695));
pbill->setMaterialFlag(video::EMF_LIGHTING, false);
pbill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
pbill->setMaterialTexture(0, driver->getTexture("../../media/particlewhite.bmp"));