Hi Robert,

Thank you for looking into this issue.

Robert Osfield wrote:
Hi Per,

I've quite a bit of head scratching about what was going on a couple
of things dawned on me:

1) The way to implement localization of small feature culling is to
disable it globally and then just enable it for
    the subgraphs that need it.  This avoid problems with subgraphs
being culled from higher up in the scene graph
    due to small feature culling that you haven't disabled yet.

I understand that it is possible to achieve the same result the other way around, by disabling small feature culling and only enable it for the subgraphs that needs it. This is however not very practical for my situation where I have a very large scene graph and only want to disable small feature culling for a small set of subgraphs that might be deep down in the graph. I know that setting culling active to false is not the best thing to do but as this was for a small set of subgraphs I don't think it will impact performance much in my case and it is very easy for me to track the nodes that I want to disable small feature culling on.

2) One should only enable the culling against the view frustum sides,
unless you explicitly require near/far culling based
    on a fixed control of near/far planes.

3) One only needs to modify the mask of the CullingSet, mode of
CullSettings is just a distraction.

In my example I needed to disable small feature culling on both the CullingSet and the CullSettings since otherwise the node with the cull callback would be culled by small feature culling, but I guess that is not a problem if it is done the other way around since small feature culling is not enabled then.
I've applied these changes to your example osgscribe.cpp, and now it
works I believe you intended - although the I'm now enabling culling
for the right hand subgarph, rather than disabling it for the right
hand subgraph, you can get your original effect by just swapping which
subgraphs has the callback on.

As the modified example demonstrates that you can enable small feature
culling selectively on subgraphs without any modifications to the core
OSG I'm closing this "bug report"/"bug fix".

I don't really understand how this is not a bug since it is possible to switch small feature culling on for a subgraph but not switch it off?

I will however scratch my head and try to figure out if I can somehow easily invert the enabling and disabling of small feature culling in my program.

Regards,
Per
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to