OSG Wireframe display


/ Published in: C++
Save to your folder(s)

Use this to make objects render in wireframe.


Copy this code and paste it in your HTML
  1. osg::PolygonMode * polygonMode = new osg::PolygonMode;
  2.  
  3. polygonMode->setMode( osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE );
  4.  
  5. stateSet->setAttributeAndModes( polygonMode,
  6. osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.