Re: [osg-users] Picking Image in using Ortho 2d Projection

2008-12-15 Thread Lukas Diduch
Hi Robert, seems that using a MatrixTransform node with a scale matrix set to (x_scale, 0., z_scale) instead of (x_scale, 1., y_scale) gave the Picker a tough time. Thanks for the hint :) Lukas On Sat, Dec 13, 2008 at 10:16:53AM +, Robert Osfield wrote: > Hi Lukas, > > It is possible to pic

Re: [osg-users] Picking Image in using Ortho 2d Projection

2008-12-13 Thread Robert Osfield
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. Ro

[osg-users] Picking Image in using Ortho 2d Projection

2008-12-12 Thread Lukas Diduch
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 f