Hi Robert,
I've traced the problem down now and it seems the culling mode that the
CullVisitor uses is correct but the one in the CullingSet is incorrect.
This is due to the CullingSet being updated in
CullStack::pushProjectionMatrix which is called early on in culling, and
when I change the culling mode in my callback it only changes the mode
in the CullVisitor and not the mode in the CullingSet.
Since I'm not very familiar with the internals in the culling code I
would like to ask for some guidance before I dive in and try to code up
a fix for the problem. Do you know of a place in the code where the
culling set might be updated to reflect the changes in the
CullVisitor/CullStack or should I try to directly propagate the changes
from the CullSettings::setCullingMode down via CullStack to the CullingSet?
Regards,
Per
Robert Osfield wrote:
Hi Per,
On Tue, Dec 2, 2008 at 11:34 AM, Per Fahlberg <[email protected]> wrote:
Perhaps I wasn't clear in my question so I will try once more, is there a
way to disable small feature culling for just a subgraph not the entire
scene?
The only way is is use a cull callback to cache the previous setting,
set the new setting do the traverse and the restore the original
value. Your original callback does this, but I don't know why it
doesn't work. Note, I haven't tried it myself so I can't provide any
further direction, you'll just have to dig into the source code.
Robert.
_______________________________________________
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