Hello Martin,
However, I still would like to be able to take a screen shot in the way I explained.
I have recently implemented something similar, where if the screen-space bounding box of an object was smaller than 5 pixels in X or Y, an icon was displayed at the position of the object instead of the object (for a kind of map view).
It's pretty easy - you take the world-space bounding box of the object, project all 8 corners of it to screen space (multiply with the view-projection-window matrix, search for that in the archives and you should get some code to calculate it), add those 8 projected points to another bounding box (which will be axis-aligned in screen space) and in my case, I could then just calculate if max.x() - min.x() < 5 or max.y() - min.y() < 5. In your case, that bounding box will give you the X and Y bounds of your screen shot.
That's a high-level description, if you really need code I can give you some but I think it would be a good exercise for you to work it out.
Hope this helps, 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

