Re: [osg-users] Scribe outline only
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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Scribe outline only
Trying to modify the osgscribe example. I want to display the scribe lines, without the underlying model beneath it. The code does the following: root-addChild(decorator); decorator-addChild(loadedModel); The decorator setups up the scribe mode. If I then set the nodeMask of the loadedModel to 0 : loadedModel-setNodeMask(0), nothing appears. Intuitively, I would have thought this would show the scribe lines only. How do I achieve this effect? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Scribe outline only
If you mean you just want to display your model in wireframe, you could use the PolygonMode StateAttribute for that. -Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Greene Sent: Monday, June 09, 2008 1:01 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Scribe outline only Trying to modify the osgscribe example. I want to display the scribe lines, without the underlying model beneath it. The code does the following: root-addChild(decorator); decorator-addChild(loadedModel); The decorator setups up the scribe mode. If I then set the nodeMask of the loadedModel to 0 : loadedModel-setNodeMask(0), nothing appears. Intuitively, I would have thought this would show the scribe lines only. How do I achieve this effect? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org