Hi all,

      I am trying hidden line removal with setRenderBinDetails
      I have two Node

      1)mGeode  having triangulation data
      2)mLineGeode having line data

      i have written this for Hidden line removal,

       * osg::ref_ptr<osg::StateSet> ss = mGeode->getOrCreateStateSet();*
* **ss->setAttributeAndModes( new
osg::ColorMask(false,false,false,false),osg::StateAttribute::ON);*
* **ss->setBinName("RenderBin");*
* **ss->setBinNumber(1);*
* **ss->setRenderBinDetails(1,"RenderBin");*
* **ss =mLineGeode->getOrCreateStateSet();*
* **ss->setBinName("RenderBin");*
* **ss->setBinNumber(2);*
* **ss->setRenderBinDetails(2,"RenderBin");*
* **ss->setMode(GL_POLYGON_OFFSET_FILL,osg::StateAttribute::ON);*
* **osg::PolygonOffset *po = new osg::PolygonOffset(10.0f,10.0f);*
* **ss->setAttributeAndModes(po,osg::StateAttribute::ON);*

      it working fine but problem is that line which rendering it coming *dash
line or we can say stiple line*
*      insted of solid line...........*

cheers,
Nitin
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to