René Molenaar wrote:
I noticed that the latest developers release (2.9.6) translates quads to triangles. Very large models need to be chopped into smaller pieces for this translation to work,
but in most cases it goes unnoticed.. until, you switch to wireframe.
Now we see the triangles. For example:

boxGeode->addDrawable(new osg::ShapeDrawable(new osg::Box(center, lx, ly, lz)));

now renders triangles instead of quads ..

Is there an easy way to render the wireframe mode 'as-if' quads are used?

You could make a wireframe box using GL_LINE_LOOP and GL_LINE_STRIP primitives. osgWorks (osgworks.googlecode.com) has a convenience routine for this; see osgwTools/Shapes.cpp/.h.
   -Paul



_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to