Hi everyone,
I'm trying to figure out whether back face culling is culling my geode or not.
I only have a single geometry drawable in the geode. The geode is getting
culled out properly when it is not facing the camera, but I can't figure out
how to tell that it was culled using the following code:
Code:
class CullCallback : public osg::NodeCallback
{
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
{
traverse(geode, nv);
osgUtil::CullVisitor* cullVisitor = dynamic_cast<osgUtil::CullVisitor
*>(nv);
bool wasCulled = cullVisitor->isCulled(*geode);
printf("Was my geode culled? %d\n", wasCulled);
}
};
I've dug around all over the forums and still can't seem to figure this out.
Any help would be greatly appreciated.
Thanks for the help!
--
Christian
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43843#43843
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org