Re: [osg-users] Blending in OSG

2011-04-29 Thread Sergey Polischuk
Hi, Mukund I think in your case problem might be that you draw your sphere without backface culling and only front faces are set to transparent on material. Try to enable backface culling or set alpha on material to FRONT_AND_BACK. Cheers, Sergey. 22.04.2011, 23:49, Mukund Keshav

Re: [osg-users] Blending in OSG

2011-04-29 Thread Mukund Keshav
Hi Sergey, Thanks a lot! that helped. Thanks, Mukund -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38894#38894 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Blending in OSG

2011-04-22 Thread Mukund Keshav
Hi Everyone, i am trying blending in OSG and i tried this code: Code: osg::Geode* wireSphere = new osg::Geode(); osg::PolygonMode* polygonMode = new osg::PolygonMode(); osg::ref_ptrosg::ShapeDrawable sphere = new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0,0,0), 3));