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
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.
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.
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
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
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 );
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(
7 matches
Mail list logo