Hi Lukas,

It is possible to pick items in a 2D hud, the osgpick example
demonstrates this.  I don't know what might be wrong at your end, my
best guess would be the projection matrix has zero depth range or
something similar to that.  SInce the osgpick example does work
compare you code to it.

Robert.

On Fri, Dec 12, 2008 at 11:37 PM, Lukas Diduch <[email protected]> wrote:
> Hello all,
>
> I have a texture stored on a (Geode->Geometry created with
> osg::createTexturedQuadGeometry) and trouble picking it. Other (simple)
> quads (like examples from the guide) can be picked fine. Any ideas what
> could go wrong here ?
>
> Output of pick using LineSegmentIntersector (pick taken 1-1 from osgpick
> example)
>
> [Pick] :
> Warning:: Picked up error in TriangleIntersect
> (0 0 1088,   0 0 0,  1440 0 0)
> (nan,        nan,    nan)
>
> Best wishes
> Lukas
> _______________________________________________
> 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