[osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

zarrandreas zarrandreas at web.de
Thu Sep 20 10:00:38 PDT 2007

you are right the problem was setup config:
The one corner of screen aligned quad is in the world center, I used vertex
shader from rendermonkey  to assign the quad to the screen. After I placed
the quad corners to another coordinates, the problem was away.

Thanks to all for support!

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Sent: Thursday, September 20, 2007 10:32 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osg::CameraNode doesn't render the scene behind the


On 9/19/07, zarrandreas <zarrandreas at web.de> wrote:
> Thanks for the tip, but I can't use osgViewer, because I use custom
> framework and this framework use osgProducer::Viewer.

osgProducer::Viewer apps can typically be ported to osgViewer::Viewer
in minutes, they have lots of similarities.

> The Prerender Example in osg framework use also osgProducer::Camera and
> osg::CameraNode to render the scene to the texture. Maybe the problem is
> the using of the screen aligned quad (=> I align the quad to the screen in
> the vertex shader).

When you say "osg framework" what do you mean?  There is no "osg
framework" unless its on your side.  Do you mean the osg examples that
came with 1.2?

As a general note render to texture setup can normally be done totally
independently from the viewer, code can be ported across different
viewers and should still work.  The viewer also shouldn't make any
difference.  If you have problem with RTT then its likely that its a
pure scene graph set up issue.

As for the problem with your set up one really can't say what might be
up with so few details of how you've set up the scene graph.

osg-users mailing list
osg-users at lists.openscenegraph.org

More information about the osg-users mailing list