[osg-users] RTT Camera does not render anything

Andreas Schreiber ayss at online.de
Wed Apr 15 02:38:49 PDT 2015


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








More information about the osg-users mailing list