Hi all,

I'm using COMPUTE_NEAR_FAR_USING_PRIMITIVES near and far planes
computation mode with OSG 2.8.1. The scene contains a number of
various models. One of them is a long curve that is drawn as an array
of vertices in osg::Geometry using GL_LINE_STRIP primitive.
When viewed from some angles the part of the line that is close to the
camera disappears. Only fragment that is behind the other closest
object to the camera eye is rendered.

I suspect the problem lays in
CullVisitor::computeNearestPointInFrustum method. It uses
osg::TriangleFunctor to determine the closest point in the drawable.
As my line geometry contains no triangles the near plane is not
updated.
Is this possible and is there any way to cull my geometry correctly?

Thanks,

Wojtek
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to