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 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
[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

Reply via email to