[osg-users] question about drawing/modifying lines in OpenSceneGraph
Nguyen Tien Dat
tiendatbk at gmail.com
Fri Nov 6 12:12:48 PST 2009
I draw a line as following:
osg::Geometry* geo = new osg::Geometry();
// define some vertices
osg::Vec3Array* v = new osg::Vec3Array;
// draw lines
geo->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0, 2, 1));
But the line is hardly to be seen because it's too thin and has white
color. So my question is:
- Can I change the color of the line? If yes, please tell me how.
- Can I change the thickness of the line? If yes, pleas tell me how.
More information about the osg-users