On 7/4/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Sherman,
The call setCullMode(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING);
is enabling just view frustum culling for the sides of the frustum,
it'll switch off cluster culling along with all other culling at the
same time.
To just disable small feature culling do:
viewer.getCamera()->setCullingMode(
viewer.getCamera()->getCullingMode() &
~osg::CullSettings::SMALL_FEATURE_CULLING);
Robert.
I built a prototype that has one point primitive on a globe. If I use
SMALL_FEATURE_CULLING the point disappears. But if I use
VIEW_FRUSTUM_SIDES_CULLING then the point is displayed. But, as you
pointed out using only VIEW_FRUSTUM_SIDES_CULLING will disable cluster
culling.
In the meantime, I've implemented my own over the horizon culling to
solve the original problem.
I suppose the question now becomes why does the point primitive
disappear when I use SMALL_FEATURE_CULLING with osgViewer?
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/