Hi Oren, On Mon, Dec 1, 2008 at 2:23 PM, oren david <[EMAIL PROTECTED]> wrote: > How do I know if a specific polygon is about to be draw on screen in the > next Draw??
The OSG doesn't records where specific polygons are going to be rendered, the finest grained object it culls against and records in the rendering back end is an osg::Drawwable. Duriing the cull traversal for each camera being rendered a graph is gerated with a RenderStage at its root (it's the top most node on a graph heiratchy that represents what is going to be rendered), so you could traversal teh RenderStage contents to see if the Drawable is in there. Or.. just attach a cull callback to the Drawable and this will get called during the cull traversal and will tell you whether it's going to be culled. Or... and probably the best way to test, is just get the world space coords of your polygon and tests it directly agaist the view frustum of the camera you want to know if a polygon is encompassed. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

