Hi Vincent

Well i worked out a solution to the problem:


                                  Group
      __________________|_______________________
      |                                          |            |
|
osgFX::Scribe/Cartoon          Group2    Group3    Group4
      |
Group1


                                  Group
      __________________|_______________________
      |                                          |            |
|
osgFX::Scribe/Cartoon          Group2    Group3    Group4
      |
Group (empty)
      |
Group1

then it works.

Well this is a bug in the OSG osgFX effect (Scribe/Cartoon). May you could
work out the bug in the source (trunk) and propose a fix. But we have to
wait as long as robert is off.
Or shall i support you in fixing this issue?

adrian


2009/7/7 Vincent Bourdier <[email protected]>

> These are the two osg files.
>
> I'm not sure of what I need to look at...
>
> The color of the FX is set to red when I set the effect.
>
> (sorry if you get double answer, the .osg files needs admin approbation, so
> I post compressing them)
>
>
> Thanks.
>
> Regards,
>     Vincent.
>
> 2009/7/7 Adrian Egli OpenSceneGraph (3D) <[email protected]>
>
>> Ok, i c.
>>
>> It looks good, but i don't understand why it doesn't work for case (2). Do
>> you attach shaders? I don't believe that the stateset would change any
>> thing. you can may try to attach a similar stateset.
>> But as far as i understand the osgFX concept, and OSG it should not
>> change. Well the scenegraphs look good. could you store case 1 and case 2
>> into osg files. ?
>>
>> adrian
>>
>> 2009/7/7 Vincent Bourdier <[email protected]>
>>
>> Hi Adrian,
>>>
>>> My original scene graph is
>>>
>>>                     Group
>>>       ___________|____________
>>>       |             |            |              |
>>> Group1    Group2    Group3    Group4
>>>
>>>
>>> And then I modify it :
>>>
>>> *case 1 (working good) *
>>>
>>>               osgFX::Scribe/Cartoon
>>>                          |
>>>                     Group
>>>       ___________|____________
>>>       |             |            |              |
>>> Group1    Group2    Group3    Group4
>>>
>>> *case2 (working bad)*
>>>
>>>                     Group
>>>       ___________|_____________________________
>>>       |                                          |
>>> |              |
>>> osgFX::Scribe/Cartoon          Group2    Group3    Group4
>>>       |
>>> Group1
>>>
>>>
>>> Sorry for the misunderstanding
>>>
>>> Do that graph looks bad ?
>>> Are there any special case when the render do not looks good ?
>>> (for example my Group have a stateset, my Group1 doesn't )
>>>
>>> Thanks.
>>>
>>> Regards,
>>>     Vincent.
>>>
>>> 2009/7/7 Adrian Egli OpenSceneGraph (3D) <[email protected]>
>>>
>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> 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

Reply via email to