Hi
Draw semitransparent quad in ortho projection before your models. With clear color disabled.
Cheers.
05.06.2012, 08:01, "shekhar vishwa" <[email protected]>:
Hi,I want to show the models on semi-transparent backgroud color. I have implemented following codeBut above code is set the background as complete transparent.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_BITcamera1->setReferenceFrame( osg::Transform::ABSOLUTE_RF );
Please help me to make the camera background as semi-transparent.ThanksVishwa_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

