[osg-users] Culling problem

Judd Tracy jtracy at ist.ucf.edu
Tue Sep 16 07:59:53 PDT 2008

```Try using PolygonOffset.

Judd

Vincent Bourdier wrote:
> 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 <pmartz at skew-matrix.com
> <mailto:pmartz at skew-matrix.com>>
>
>     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:* osg-users-bounces at lists.openscenegraph.org
>         <mailto:osg-users-bounces at lists.openscenegraph.org>
>         [mailto:osg-users-bounces at lists.openscenegraph.org
>         <mailto:osg-users-bounces at lists.openscenegraph.org>] *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
>     osg-users at lists.openscenegraph.org
>     <mailto:osg-users at lists.openscenegraph.org>
>     http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>

```