Hi James,

The easiest way to do selective picking is the use a traversal mask on
the intersection traversal that maps to node masks on the nodes in
your scene.  For instance is you set a node mask of 0x1 on the parts
of the scene you won't to pick, and 0x2 on the parts your don't want
to, then use a traversal mask of 0x1 then only the parts you won't
will be picked.

Robert.

On Fri, Jul 31, 2009 at 9:38 AM, James Sim<[email protected]> wrote:
> Hi,
>
> i have a hud camera with a viewport of (x, y, w=200, h=200) and projection 
> fixed at (x, x+w, y, y+h). The objects attached to Camera is an image of size 
> 640*480 which is the screen resolution for the viewer.
>
> i have a pickhandler that handles the picking for the hud and the 3D objects 
> behind the hud.
>
> The pickhandler picks the hud when i click on the camera, it also picks the 
> hud when i click outside the camera as shown by the red dot in the attachment.
>
> Is there anyway i can disable picking outside the camera?
>
> Thank you!
>
> Cheers,
> James
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=15670#15670
>
>
>
>
> _______________________________________________
> 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

Reply via email to