Look at CullSettings::setComputeNearFarMode() and see if any of the modes works for you. If they don't, then set it to DO_NOT_COMPUTE_NEAR_FAR and manually set the near plane to a larger value (further from the eye). Search the archives for "computeNearFar" or "Z fighting" for more info. -Paul
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Bourdier Sent: Tuesday, September 16, 2008 8:24 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Culling problem Hi Paul It is exactly the problem. I've done some tests with the depth test, and I'm sure that what you think is the problem. So now, how to solve it ? If I put "depth = new osg::Depth(osg::Depth::ALWAYS, 0.0, 1.0);" My plane are always visible, but nothing can hide them (mountains for example...) Any suggestion or Idea ? Thanks Regards, Vincent. 2008/9/16 Paul Martz <[EMAIL PROTECTED]> If the polygons are very close to the ground and your eye is quite distant, then it sounds like it's losing the depth test. -Paul _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Bourdier Sent: Tuesday, September 16, 2008 5:22 AM To: osg Subject: [osg-users] Culling problem Hi all, I have a strange problem : Nodes are moving (PAT->LOD->Node.ive) depending on a PAT and all the PATs have the same group for parent. Theses nodes (planes) have the ground under them but, sometimes the planes are hidden under the ground. It happens when the camera it on a top-position (not side or face ) of the planes and it depend on the point looked by the camera. Just modifying camera's orientation make then appear. If the camera if near of the plane nothing happen. I have checked Z position, but it do not changed anormaly. I only see a culling problem to have this problem. Do you have already encountered something similar ? How to solve this problem ? See attached files to understand better what it looks like. thanks, Regards Vincent. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

