Title: CameraNode + framebuffer + depth attachment

Hello All,


I am trying to attach a depth texture to a CameraNode as follows:

osg::ref_ptr<osg::CameraNode> rttCamera = new osg::CameraNode;
rttCamera->setRenderTargetImplementation(osg::CameraNode::FRAME_BUFFER_OBJECT);
rttCamera->attach(osg::CameraNode::DEPTH_BUFFER, in_pDepthTexture);

This works well. However if I replace the FBO with osg::CameraNode::FRAME_BUFFER
then I get a black texture :-( Is it possible to attach the depth while using
the frame buffer as the render target implementation ? The reason I want to use
osg::CameraNode::FRAME_BUFFER is that there seems to be no support for full scene
anti-aliasing and FBO at the moment...

Any advice would be appreciated :-)


guillaume

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to