Disapearing Mesh when moving camera
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
Disapearing Mesh when moving camera
I have a strange trouble with my scene.
I create a sphere mesh scene node with a radius R.
When my camera's position X is greater than R or lesser than -R my sphere disapear. But it doesn't occur with Y or Z component of position.
As anybody any idea about that?
Thanks
I create a sphere mesh scene node with a radius R.
When my camera's position X is greater than R or lesser than -R my sphere disapear. But it doesn't occur with Y or Z component of position.
As anybody any idea about that?
Thanks
If you are using 1.7 please try updating to 1.7.1. I'm not sure if the bug also affected the usual clipping, but it sounds a lot like something which could have been caused by the bug in the 1.7 aabbox collision test.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: Disapearing Mesh when moving camera
If you are using Irrlicht 1.7, it could be wrong culling due to the broken aabbox3d intersection functions.
In that case, it would help to upgrade to 1.7.1.
In that case, it would help to upgrade to 1.7.1.
"Whoops..."
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
Can you post some example-code so we can reproduce the problem? Otherwise it's hard to help ...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
Allright:
here is my camera:
here is the incriinated scene node:
the mesh "sun.3ds" has a radius of 6.96.
The same happens with a sphereSceneNode
Thanks for your interest!
here is my camera:
Code: Select all
scene::ICameraSceneNode* pCamera = m_pSceneMgr->addCameraSceneNodeFPS(0,
1000,
1000,
-1,
0,
0,
false,
100,
true,
true);
pCamera->setPosition(core::vector3df(695000, 695000, 695000));
pCamera->setTarget(core::vector3df(0,0,0));
pCamera->setFarValue(10000000000);
the mesh "sun.3ds" has a radius of 6.96.
The same happens with a sphereSceneNode
Code: Select all
pSceneMgr->addMeshSceneNode(pSceneMgr->getMesh("./res/sun.3ds"),
0,
1,
core::vector3df(0,0,0),
core::vector3df(0,0,0),
core::vector3df(100000,100000,100000));
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France