Hi Vincent
Well, i haven't understood your scene graph right. Let's me draw your scene
graphs
(1)
Group == type of osgFX::xxx
___________|____________
| | | |
Group1 Group2 Group3 Group4
(2)
Group
__________________________________|____________
| |
| |
Group1 == type of osgFX::xxx Group2 Group3 Group4
But if i am right understood your email you appended the osgFX effect not as
group, instead you appended it
as parent node, right?
(x) Group
___________|______________________
| | | | |
Group1 Group2 Group3 Group4 osgFX ???
if i am wrong please stop reading and explain again the exacly outlook of
the scene graph you have. otherwise have a look into the osgFXbrowser
example. if you are using
(x) this would enable the osgFX for all object under osgFX ??? (childrens)
not for Group, GroupX
regard adrian
2009/7/6 Vincent Bourdier <[email protected]>
> Hi all,
>
> I've got a understandable problem with osgFX::Cartoon and osgFX::Scribe.
>
> I got a graph like that :
>
> Group
> ___________|____________
> | | | |
> Group1 Group2 Group3 Group4
>
> If I put the effect on Group, no problem all is good.
> The same effect on Group1 do not set the good color.
>
> I use :
>
> osg::ref_ptr<osgFX::Cartoon> s = new osgFX::Cartoon;
> s->setOutlineColor(osg::Vec4(color.x(), color.y(), color.z(), 0.0f));
> s->setOutlineLineWidth(edge_width);
>
> and I put it as a new parent for the concerned group.
>
> See attached file for details.
>
> Any idea would be very appreciated, this is an important thing I have to
> solved as soon as possible.
>
> Thanks for your help.
>
> Regards,
> Vincent.
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
--
********************************************
Adrian Egli
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org