[osg-users] [3rdparty] WireFrame display for 3d model using c++ code

Robert Osfield robert.osfield at gmail.com
Sat Sep 24 08:57:37 PDT 2016


HI Uma,

On 24 September 2016 at 08:13, Uma Devi Selvaraj
<umaselvam1503 at gmail.com> wrote:
>   I am new to OSG. Can somebody tell me how to view wireframe of 3d model using c++ code. I am able to view wireframe , points,texture etc using osgviewer(with help of 'w' key ) only when I open the 3d model using the  "osgviewer <3dmodel_name>" in cmd prompt.

The osg::PolygonMode state attribute wraps up the glPolygonMode
function in OpenGL, so have a look for OpenGL docs on how it works.
Also look at the src/osgGA/StateManipulator.cpp file to see how it
toggles on/off the wireframe mode.

Robert



More information about the osg-users mailing list