Hi -- The client that funded the occlusion query work in OSG did not
need to know the exact number of pixels, they just needed to know
"visible or not visible". As a result, the current implementation hides
the exact number of pixels. In retrospect, I probably should have
implemented this so that the number of pixels was exposed to host code.
However, this is complicated for multidisplay scenarios where the
geometry being queried spans multiple windows or contexts.
You are welcome to modify the existing implementation or come up with
an alternate implementation that exposes the exact number of pixels.
Jeremy Warren wrote:
Robert--
Thanks for the direction. I looked through osgocclusionquery and also
the API, however I have been unable to come up with a pixel specific
information pertaining to the node.
--Jeremy
--------------------------------------------------
From: "Robert Osfield" <robert.osfi...@gmail.com>
Sent: Wednesday, July 01, 2009 3:18 AM
To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org>
Subject: Re: [osg-users] Read number of Pixels an object takes up
Hi Jeremy,
The OSG now has support of OpenGL occlusion query that can provide the
number of pixels covered when rendering. See osgocclusionquery
example.
Robert.
On Wed, Jul 1, 2009 at 12:35 AM, Jeremy Warren<jw...@hotmail.com>
wrote:
I have a simple scene. Colored background
and an object, say a box. I want
to figure out how many pixels the box is taking up in the scene. It
seems
like a simple request, but haven't come up with any solution. Any
takers?
Thanks in advance
--Jeremy
________________________________
Windows Liveā¢: Keep your life in sync. Check it out.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
|
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org