Hi Hartwig, On Thu, May 27, 2010 at 11:26 PM, Hartwig Wiesmann <[email protected]> wrote: > it seems to be that OSG is not supporting to bind LineStipple to a vertex > (like it can be done with the colour) in the state set. > Is there any workaround to change the stippling within a line strip for > example?
OpenGL doesn't allow you to change state during primitives, only vertex attribute data like normals, colours etc. can be set with a per vertex binding. The OSG being built upon OpenGL also inherits these restrictions. The only way for you to change the line stipple is to use separate osg::Geometry one for each block of same stippling, or implement the stippling yourself using texturing and shaders. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

