Hi Zach,

I thought about this idea but it's will be a little bit complex because I
have to change a big part of the code of my program to check that every hit
computing I do has a test on the HUD name. But maybe it will be the simplest
way.

Thanks


2006/12/4, Zach Deedler <[EMAIL PROTECTED]>:

 Benoit,

You can also traverse back up the tree, and throw out intersections you
don't like.  If you name your HUD something, then you can throw out that
intersection, by checking the name of everything the pick intersected.


Zach


 ------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *amalric alexandre
*Sent:* Monday, December 04, 2006 11:50
*To:* osg users
*Subject:* Re: [osg-users] Intersectvisitor


 the problem is that I don't want to make 2 subsgraph, except if there is
no other way, I just want to not intersect some node by the pickvisitor.

2006/12/4, Benoît Poulard <[EMAIL PROTECTED]>:
>
> run osgpick with in parameter a file to load (ex cow.osg) .
>
> you can have 2 subgraphs in your scene,
> one with th HUD and another with the object that you want to intersect.
> Youn just apply PickVisitor only on the second subgraph
>
> Ben
>
>
> 2006/12/4, amalric alexandre < [EMAIL PROTECTED] >:
> >
> > Hi Ben,
> >
> > I've take a look at osgPick but it seems to be the contrary, this
> > example is provided to pick Head Up Display. What I want to do is
> > to pick a 3D model behind a HUD.
> >
> > Alex.
> >
> > 2006/12/4, Benoît Poulard <[EMAIL PROTECTED]>:
> > >
> > > Hi
> > > You can see osgpic example provided with OSG.
> > >
> > > Ben
> > >
> > > 2006/12/4, amalric alexandre <[EMAIL PROTECTED]>:
> > > >
> > > >  Hi,
> > > >
> > > > I'm a newbie in osg and I was wondering how to make an object to
> > > > not be picked by a osgUtil::PickVisitor, my goal is to display
> > > > (HUD 2D) some information when i move the mouse on a 3D model but I 
don't
> > > > want to intersect the HUD itself. Is it possible to add a setting to a 
node
> > > > to make this one not pickable ??
> > > > Tanks.
> > > >
> > > > Alex
> > > >
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > osg-users@openscenegraph.net
> > > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > > http://www.openscenegraph.org/
> > > >
> > > >
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > osg-users@openscenegraph.net
> > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > http://www.openscenegraph.org/
> > >
> > >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> >
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to