Hi Lauren!
Thanks for your comment. Now I can see a solid line.
A few questions:
1) What are the factor and pattern attributes in the LineStipple? In
the doxygen docs (
http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00466.html)
there's no explanation about them.
2)
Hi Adri,
The naming convention used for OSG state classes is the same as OpenGL, so
for osg::LineStipple maps to glLineStiple. To search for the meaning of
the associated functionality you can then simply look up OpenGL docs on
glLineStiple.
Robert.
On 31 October 2013 09:17, Adri CS
Hi!
Thanks Robert for pointing out the OpenGL docs. I managed to show the
dashed line.
Here's the final code:
osg::ref_ptrosg::Vec3Array dash_points = new osg::Vec3Array;
osg::ref_ptrosg::Vec4Array dash_color = new osg::Vec4Array;
osg::ref_ptrosg::Geometry dash_geometry( new
Hi!
I'm trying to add a dashed line between two points (for now, they're
hardcoded. They exist in the point cloud that is already in the scene).
With this code I expected two blue points of size 10 in the same place of
those in the point cloud and a dashed line between them, yet nothing is
Hi Adri,
I think you want
osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE
in your call to setAttributeAndModes, using only OVERRIDE means OVERRIDE | OFF.
Hope that helps, I would expect your code to show the solid line.
Regards, Laurens.
On 10/30/2013 5:17 PM, Adri CS wrote:
Hi!
I'm
5 matches
Mail list logo