[osg-users] osgFX::Cartoon (setOutlineLineWidth)
Vincent Bourdier
vincent.bourdier at gmail.com
Tue Mar 11 02:39:44 PDT 2008
Hi,
No one have already had this problem ?
Thanks.
Vincent.
2008/3/7, Vincent Bourdier <vincent.bourdier at gmail.com>:
>
> Hi,
>
> I'm using osgFX::Cartoon to obtain an effect on the edges. I want to
> highlight edges of a node. (geode)
>
> I've already tried osgFX::Scribe, but I prefere Cartoon edges because it
> compute only the necessary edges and not all.
>
> So, my problem is when I use Cartoon, I can't set LineWidth. I can put 0.1to
> 20.0 it doesn't change anything.
>
> Is use this code :
>
> osg::ref_ptr<osgFX::Cartoon> c = new osgFX::Cartoon;
> c->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 1.0f));
> c->setOutlineLineWidth(edge_width);
> c->addChild(copynode);
>
> Is there any reason to this problem ?
> how to solve it ?
>
> Thanks.
>
> Vincent.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080311/0c4cd651/attachment.htm
More information about the osg-users
mailing list