Hi,
I'm just starting out in OSG and have a basic robot arm model that I require an
outline on a specific node. I have a nodeVisitor class which can find the node
by name and I am stuck on outlining it.
Currently I am using this:
Code:
findNodeVisitor findBNode("BodyRotator");
osg::Node* bodyNode = new osg::Node;
g_pModel->accept(findBNode);
bodyNode = findBNode.getFirst();
osg::ref_ptr<osgFX::Outline> outline = new osgFX::Outline;
outline->setColor(osg::Vec4(1.0, 0.0, 0.0, 0.0));
outline->setWidth(100.0);
outline->addChild(bodyNode);
rootNode->addChild(outline);
But I only get a brief outline that flickers off after a second and only
appears when rotating the robot arm. Does anyone have any pointers for getting
this working?
Cheers,
Lex[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72589#72589
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org