Hi Fred, My guess is that small feature culling is culling the Geometry before it even gets into the draw traversal. You can switch off small feature culling by doing:
viewer.getCamera()->setCullingMode(viewer.getCamera()->getCullingMode() & ~osg::CullSettings::SMALL_FEATURE_CULLING); Robert. On Wed, Oct 27, 2010 at 11:00 AM, Fred Smith <[email protected]> wrote: > Hi, > > When I only have one point in a GL_POINTS DrawElements primitive, the shaders > in my StateSet have no effect. It seems a primitiveset cannot contain use > only one point, or the point does not reach the shaders for some reason. > > To reproduce the problem, change the osggeometryshaders sample so that only 1 > (not 8) points are added to the vertex array. You should see 2 animated lines > in this case - but nothing is displayed. > > A colleague of mine stumbled upon this behavior (bug?) a while ago. > > Is this a known bug? > > Cheers, > Fred > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=33116#33116 > > > > > > _______________________________________________ > 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

