[osg-users] [osg-users[ Viewer as emmbeded and existing modelview and projection matrices

2011-04-18 Thread Thomas Hogarth
Hi All I'm currently working on added some osg functionality to an existing opengl es app. The application already applies all the relavent matrix and viewport information. I was wondering if there was a simple way to just draw my osg viewer but without applying any matrix or viewports to the

Re: [osg-users] [osg-users[ Viewer as emmbeded and existing modelview and projection matrices

2011-04-18 Thread Chris 'Xenon' Hanson
On 4/18/2011 8:19 AM, Thomas Hogarth wrote: I'm currently working on added some osg functionality to an existing opengl es app. The application already applies all the relavent matrix and viewport information. I was wondering if there was a simple way to just draw my osg viewer but without

Re: [osg-users] [osg-users[ Viewer as emmbeded and existing modelview and projection matrices

2011-04-18 Thread Robert Osfield
Hi Thomas, The OSG's cull traversal requires information about the viewport, projecton and view matrices, and the draw traversals use this data in the draw traversal, so you have to pass them in via the setting of appropriate OSG data structures like osg::Camera. Applying viewports,

Re: [osg-users] [osg-users[ Viewer as emmbeded and existing modelview and projection matrices

2011-04-18 Thread Thomas Hogarth
Hi Guys Thanks for the speedy replies, yes seems like using the same model view matrix for the osg camera and then ensuring I reapplied the originals the next time round. They were only getting applied on setup by the original app then being read back from OpenGL before being applied again so