Added cout's of the view frustum to the aid debugging, these cout's are

now commented out, and are just left in so that they may be used to
double check things in future.
This commit is contained in:
Robert Osfield
2002-08-03 16:37:13 +00:00
parent ddd78eb95e
commit b89f3fa9b1
2 changed files with 21 additions and 0 deletions

View File

@@ -83,8 +83,19 @@ void CullStack::pushCullingSet()
//cout << "pixelSizeVector = "<<pixelSizeVector<<" pixelSizeVector2="<<pixelSizeVector2<<endl;
_modelviewCullingStack.push_back(osgNew osg::CullingSet(*_projectionCullingStack.back(),*_modelviewStack.back(),pixelSizeVector));
}
// const osg::Polytope& polytope = _modelviewCullingStack.back()->getFrustum();
// const osg::Polytope::PlaneList& pl = polytope.getPlaneList();
// std::cout <<"new cull stack"<<std::endl;
// for(osg::Polytope::PlaneList::const_iterator pl_itr=pl.begin();
// pl_itr!=pl.end();
// ++pl_itr)
// {
// std::cout << " plane "<<*pl_itr<<std::endl;
// }
}
void CullStack::popCullingSet()

View File

@@ -592,6 +592,16 @@ void SceneView::draw()
drawStage(_renderStage.get());
}
// const osg::Polytope& polytope = _state->getViewFrustum();
// const osg::Polytope::PlaneList& pl = polytope.getPlaneList();
// std::cout <<"draw frustum"<<std::endl;
// for(osg::Polytope::PlaneList::const_iterator pl_itr=pl.begin();
// pl_itr!=pl.end();
// ++pl_itr)
// {
// std::cout << " plane "<<*pl_itr<<std::endl;
// }
}
void SceneView::drawStage(osgUtil::RenderStage* renderStage)