Re: [osg-users] ModelView/Projection Matrices From Camera

2011-07-05 Thread Jeremy Moles
On Tue, 2011-07-05 at 10:38 -0600, Paul Martz wrote: > On 7/5/2011 10:10 AM, Glenn Waldron wrote: > > I usually pull them from the CullVisitor/CullStack during the cull > > traversal. > > Right -- During cull you can access these from the CullVisitor: > osg::RefMatrix* view = cv->getModelVie

Re: [osg-users] ModelView/Projection Matrices From Camera

2011-07-05 Thread Paul Martz
On 7/5/2011 10:10 AM, Glenn Waldron wrote: I usually pull them from the CullVisitor/CullStack during the cull traversal. Right -- During cull you can access these from the CullVisitor: osg::RefMatrix* view = cv->getModelViewMatrix(); const osg::Camera* cam = cv->getCurrentCamera();

Re: [osg-users] ModelView/Projection Matrices From Camera

2011-07-05 Thread Glenn Waldron
I usually pull them from the CullVisitor/CullStack during the cull traversal. Glenn Waldron / Pelican Mapping / @glennwaldron On Tue, Jul 5, 2011 at 12:01 PM, Jeremy Moles wrote: > Hey guys, I have a really quick question. I'm trying to debug a piece of > code and what I need is access to the c

[osg-users] ModelView/Projection Matrices From Camera

2011-07-05 Thread Jeremy Moles
Hey guys, I have a really quick question. I'm trying to debug a piece of code and what I need is access to the current MV/Proj matrices as affected by the Viewer's active camera. I see that they can both be queried from an osg::State object, though I've never had to interface directly with this.