On 8/18/2011 4:28 AM, Christian Buchner wrote:
Hi,

with OSG 2.8.2 we were able to create a cube like this and set polygon
mode to LINE. And it would show up as the outline
of a box with no diagonals in the faces.

With OSG 3.0.0 the same code produces a box that now contains diagonal
lines, as if the quads are now actually tesselated
into triangles.
Right. The GL_QUADS primitive was removed in OpenGL 3.1. The OSG ShapeDrawable code was modified to use triangles so that the same code path could be used for both GL 3x and GL 1x/2x.
Is there any compatibility flag that would allow us to get the old
behavior back?
For ShapeDrawable? Not that I know of. However, osgworks.googlecode.com offers a Geometry-based version of OSG's ShapeDrawables, and the makeWireBox function will produce results similar to what you are used to seeing, so you might want to consider that. osgWorks is compatible with OSG v2.6 through current v3.0.1.
   -Paul

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

Reply via email to