Hi Don,

I'm having a problem with not being able to pick on my HUD geometry when
the main camera has a perspective projection. My app is able to toggle
between
perspective and orthographic. Picking on the HUD geometry works fine with
orthographic, and the HUDs are visible in both projections.

This sounds a bit like the reason why in the example I sent a little while ago to test out the changed I had made to QWidgetImage, I had to customize the computeIntersections() method when my widget was under an ortho projection (i.e. displayed fullscreen). Unfortunately I didn't get to look into why that was, I just worked around it.

The workaround I used was to give the IntersectionVisitor directly to the ortho camera instead of starting it from the root (the viewer's main camera, which is the perspective one).

If I had to venture a guess I'd say it looks like some values are lingering around from the perspective projection once the IntersectionVisitor gets to the ortho camera, almost as if it hadn't seen that the ortho camera is in referenceFrame ABSOLUTE_RF (which means it should start over fresh, not multiply by the previous matrix). But as I said, I haven't dug any deeper, so that's just a hunch.

Hope this helps in some small way,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to