Mike Greene wrote:
Trying to modify the osgscribe example. I want to display the scribe
lines, without the underlying model beneath it.
...
loadedModel->setNodeMask(0), nothing appears. Intuitively, I would have
thought this would show the scribe lines only. How do I achieve this
effect?
The 'loadedModel' node is shared by the root node and the decorator. Setting
the nodemask also turns off traversal by the decorator.
What you can do is to introduce another node between 'rootnode' and
'loadedModel'. You can then set the nodemask on that node and the original
model will disappear and only the scribes will be visible.
However you'll also see the lines from the back-facing polygons which may or may
not be what you want. (You're effectively seeing a wireframe model.)
To remove the backfacing polys you can play around with osg::CullFace or
osg::ColorMask.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org