open scene graph - handy snippets

quick notes

obtaining the viewing frustum


osgViewer::Viewer	pViewer = ...;
osg::Polytope		frustum;

frustum.setToUnitFrustum();
frustum.transformProvidingInverse(
	pViewer->getCameraManipulator->getInverseMatrix() *
	pViewer->getCamera()->getProjectionMatrix());

			


ssTk.co.uk
Last updated: 02 February 2012