Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-15 Thread Darren Graham
Got something working based on the osgtexture1D example. Cheers, Darren -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51104#51104 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Darren Graham
Hi, I am using osg to display just a simple cube using lines in 3D. This is fine if I use a solid line (no pattern). but I get an odd effect when I use linestipple to create a dashed line. When I move the camera around the dashes move up/down the length of the line. This looks wrong to me.

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Robert Osfield
Hi Darren, This will be a limitation with the implementation line stipple in OpenGL. I can't think of an easy solution to making sure the stipple is object space, the hard way would be to not use LineStipple but create the lines yourself and then use a 1D texture to create the stipple effect.

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Darren Graham
create the lines yourself and then use a 1D texture to create the stipple effect are there any examples I can look at? Cheers, Darren -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51080#51080

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Robert Osfield
On 13 November 2012 16:04, Darren Graham darrenfgra...@hotmail.com wrote: create the lines yourself and then use a 1D texture to create the stipple effect are there any examples I can look at? Plenty, just search the OpenSceneGraph/examples for Texture1D. One obvious one will be

[osg-users] osg::LineStipple

2008-01-07 Thread Kim C Bale
I'm trying to a line using the following. Now, am I missing something obvious here? as this code doesn't work. m_markerLine is a geode that contains a line drawable. osg::ref_ptrosg::LineStipple ls = new osg::LineStipple(); ls-setPattern( 0x00FF ); ls-setFactor( 2 );

Re: [osg-users] osg::LineStipple

2008-01-07 Thread Paul Martz
I'm trying to a line using the following. Now, am I missing something obvious here? as this code doesn't work. m_markerLine is a geode that contains a line drawable. You didn't really say HOW it's failing,m so I'm just guessing here... m_markerLine-getOrCreateStateSet()-setAttribute(