Hi,

I want to show the models on semi-transparent backgroud color.  I have
implemented following code

camera1->setViewport( 0, 0, 200, 200 );

camera1->setClearColor( osg::Vec4(0.0f, 1.0f, 1.0f, 0.5f) );

camera1->setRenderOrder( osg::Camera::POST_RENDER );

camera1->setAllowEventFocus( true );

camera1->setClearMask(GL_DEPTH_BUFFER_BIT );//| GL_DEPTH_BUFFER_BIT

camera1->setReferenceFrame( osg::Transform::ABSOLUTE_RF );
But above code is set the background as complete transparent.

Please help me to make the camera background as semi-transparent.

Thanks
Vishwa
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to