Hi Robert.

Thanks, this helps. 

Hmm, I have already tried to add similar lines to the
code, but I have added setTransversalMask(saved_mask)
after the setCullSettings(saved_cull_settings) and not
before. Probably therefor I was not able to correct
the Problem by myself.

Thank you again.

Best regards, Art


--- Robert Osfield <[EMAIL PROTECTED]> schrieb:

> Hi Art,
> 
> Looking at the code it looks to me like the actual
> setting of the node
> mask is probably correct, but.. the code is not
> restoring the node
> mask when is wrong.  I have now added saving and
> restoring of the
> original traversal mask to prevent the new setting
> from bleeding into
> subsequent subgraphs.
> 
> Could you do a svn update and let me know if this
> makes any difference.
> 
> Robert.
> 
> On 8/2/07, Art Tevs <[EMAIL PROTECTED]> wrote:
> > Hi folks.
> >
> > I am currently rewriting my application from osg
> 1.2
> > to the current one from svn. The node masks do not
> do
> > that what they have done before. For example, I
> have
> > an offscreencamera which mask is set to 4 (so
> 0b0100)
> > some of the connected nodes does have a mask of 1
> but
> > they are visible through the offscreen camera.
> Setting
> > the camera not to inherit mask settings, makes the
> > node disappear in the offscreen camera but also in
> the
> > main camera, which has a full mask 0xFFFFFFFF.
> >
> > I have already found the responsible part of the
> code
> > in osgUtil/CullVisitor.cpp (::apply(osg::Camera),
> from
> > line 1130 and 1270). Changing the correspionding
> line
> > in something like
> >
> > if (..) setTraversalMask(camera.getCullMask());
> > handle_cull....
> > if (..) setTraversalMask(saved_mask);
> >
> > like in the osg v1.2 helps, but has some strange
> > behaviour for other nodes. I think there is also
> > another changes done somewhere.
> >
> > Does anybody encounter same problems with node
> masks?
> >
> > MfG, Art
> >
> >
> >
> >
> >
> >
> >
> >
> >       __________________________________
> > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
> > http://de.yahoo.com/set
> > _______________________________________________
> > 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
> 



      __________________________________  Die etwas anderen Infos rund um das 
Thema Reisen. BE A BETTER WELTENBUMMLER!  www.yahoo.de/clever
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to