[osg-users] RTT Camera does not render anything

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Apr 15 03:20:18 PDT 2015


You lost me here,

You want a relative RTT camera ("pointing" to where the main camera 
points to) but you set up da absolute camera (having its independent 
Viewport, matrix etc.)
You most likely want to have a ABSOLUTE ref frame for screenspace passes 
and final output only-

Cheers
Sebastian
> Hi,
>
> sorry here it is
>
> Code:
>
> osg::ref_ptr<osg::Camera> RTTCamera = createRTTCamera(osg::Camera::COLOR_BUFFER, rttTexture.get(), 1);
>
>
>
>
> then I add to this camera the needed geometry and at the camera to the scene graph
>
> Code:
>
> RTTCamera->addChild(geometry.get());
>
> root->addChild(RTTCamera.get());
> root->addChild(geometry.get());
> root->addChild(rttQuad.get());
>
>
>
>
>
> Between these steps I do nothing else with the rtt camera.
>
> In the createRTTCamera function I set the ReferenceFrame to "ABSOLUTE_RF"
>
> ...
>
> Thank you!
>
> Cheers,
> Andreas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63407#63407
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list