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:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user