Re: [osg-users] Multiple camera 'layers'

2010-10-04 Thread Mike Bostock
Hi, I sorted this issue by not trying to set the viewer's main camera up as the 2D camera. I then set the clear mask on the viewer's main camera to just GL_DEPTH_BUFFER_BIT. I derived my background from an osg::Camera and added its own sub scene to it. I set the clear mask on the background

Re: [osg-users] Multiple camera 'layers'

2010-10-01 Thread Mike Bostock
Hi, Thanks for the quick reply guys. I am trying out what you have suggested but I can't seem to get my 2D background camera working. I am creating an osg::Viewer then I am creating a camera with 2D ortho projection with an identity matrix as the view matrix, the render order as PRE_RENDER

[osg-users] Multiple camera 'layers'

2010-09-30 Thread Mike Bostock
Hi, I would like to create a 2D background (can this be done using the main camera? If so how?) I would then like to have other multiple cameras each rendering their own 3D sub scene with a transparent background (how does each camera have a transparent background?) but be able to position the

Re: [osg-users] Multiple camera 'layers'

2010-09-30 Thread Jean-Sébastien Guay
Hello Mike, I would like to create a 2D background (can this be done using the main camera? If so how?) I would then like to have other multiple cameras each rendering their own 3D sub scene with a transparent background (how does each camera have a transparent background?) but be able to

Re: [osg-users] Multiple camera 'layers'

2010-09-30 Thread Frederic Bouvier
Hi, - Jean-Sébastien Guay a écrit : Hello Mike, I would like to create a 2D background (can this be done using the main camera? If so how?) I would then like to have other multiple cameras each rendering their own 3D sub scene with a transparent background (how does each camera have