[solved] Objects disappear at large distances

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
chamile
Posts: 9
Joined: Thu Jun 05, 2008 4:38 pm

[solved] Objects disappear at large distances

Post by chamile »

Hi,

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"));
and watch with a camera to it. When I set the Z position to -3001, it's no more shown. Why?
Last edited by chamile on Fri Jun 20, 2008 4:28 am, edited 1 time in total.
Gogolian
Posts: 32
Joined: Sat May 17, 2008 10:49 pm

Post by Gogolian »

Code: Select all

camera->setFarValue(100000);
or any other than 1000000 ;)
And the darkness begun...
chamile
Posts: 9
Joined: Thu Jun 05, 2008 4:38 pm

Post by chamile »

Hah! I watched out in the SceneNode objects for something like that, but didn't looked at the camera.

That helped, Thank you :D
Gogolian
Posts: 32
Joined: Sat May 17, 2008 10:49 pm

Post by Gogolian »

no prob ;)
And the darkness begun...
Post Reply