[osg-users] wireframe mode and degenerate triangles

Christian Buchner christian.buchner at gmail.com
Fri Dec 30 05:38:05 PST 2016

Hi all,

I have just optimized a human model that had around 150 individual
GL_LINE_STRIP drawables by adjoining these. This requires doubling the last
vertex of a strip and the first vertex of the next strip which is to be
appended, generating a couple of degenerate triangles.

The model still renders fine and the OSG stats viewer now shows a much
lower drawable count.

A quirk appears when rendering this in wireframe mode (using the 'w' hotkey
implemented in one of the builtin Event handlers). I assume this enables a
GL PolygonMode of GL_FRONT_AND_BACK, GL_LINE. Now the degenerate triangles
are still rendered, making the model look broken (arms look fused to the

Here's my question: Shouln't wireframe rendering mode hide degenerate
triangles, as they wouldn't be passed on to the rasterizer in any case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161230/3a15c44b/attachment-0002.htm>

More information about the osg-users mailing list