Hello Pablo,

Pablo Carneiro Elias wrote:
> I've just ported from OSG 18 to 20 now and setActive method within 
> OSG::Node doesnt exists anymore... I've replaced it by setTravMask( 0 / 
> 1 ) and it set the node visible / invisible correctly. But I found a 
> problem now that if a node has travmask 0, then OSG ignores it not only 
> to render it, but also to calculate the volume. As I need the volume of 
> all nodes to perform calculations (even hidden nodes), I cant use 
> travmask 0. Does OSG has a method to hide a node, keeping the traversal 
> of the node to calculate the volume? Is there a trav mask to hide the 
> node but not to ignore it to other operations?

the RenderAction RA excludes a node N and its subtree if
(RA->getTravMask() & N->getTravMask()) == 0.
For volume calculation only nodes with N->getTravMask() == 0 are excluded.
Choosing the following:
RA mask: 1
excluded Node mask: 2

should do what you need, the node has a mask different from 0 and it is 
not visited by the RA.

        Hope it helps,
                Carsten

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to