Hi all, I'm currently developing an osg application and I want to use occlusion queries for, let's say, fill consumption meassurement. I want to be able to get number of pixels rendered from some part of tree (the one under OcclusionQueryNode). I came with two ideas:
1. As I understand the OQN makes a bounding box around the object and try to render only a quads (support nodes). So it does not get the precise number of pixels of scene below. But if I could somehow (by Functor) gather the geometry or already have it, and give it to OQN as its OQGeometry, it should render the actual part of the scene. Then I could make the number of pixels visible or getable. 2. I coud temper with renderImplementation and break it into three render bins. One which happens before the scene and call begin query. Second where will be the part of scene. And the third which performs end query. I hope you have understood theese rough thoughts. The second idea may be more elegant, but since I don't know exactly how the rendering is done it's just an idea. If someone could give me some insights I would be grateful. Thanks! Cheers, Tomas ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33732#33732 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

