[osg-users] Strange node mask behaviour since 2.0
Art Tevs
stud_info2 at yahoo.de
Thu Aug 2 05:36:24 PDT 2007
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 <robert.osfield at gmail.com> 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 <stud_info2 at yahoo.de> 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
> > osg-users at lists.openscenegraph.org
> >
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
>
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
More information about the osg-users
mailing list