Re: [osg-users] Having Problems getting the Cam Matrix

2009-09-18 Thread Robert Osfield
Hi David, The viewer has the masster Camera, to get the view martrix it's simple a case of: viewer.getCamera()->getViewMatrix(); As for your seg fault, there isn't anyone can tell you exactly what wrong with no code in front of them, there are lots different mistakes you could have made. It w

[osg-users] Having Problems getting the Cam Matrix

2009-09-17 Thread David Goering
Hey, I am trying to get the Cam Matrix and use it in calculations I do in an update Callback. One problem I am currently having is that I can't access the cam, and if I define the Cam as a global variable I get segmentation fualts... most likely because it hasn't been fully initialized yet ? Any