Re: [osg-users] Read number of Pixels an object takes up

2010-11-13 Thread Tomas Starka
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

Re: [osg-users] Read number of Pixels an object takes up

2009-07-03 Thread Ulrich Hertlein
Hi guys, On 3/7/09 12:48 AM, Jeremy Warren wrote: -- 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

Re: [osg-users] Read number of Pixels an object takes up

2009-07-03 Thread Paul Martz
--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 h

Re: [osg-users] Read number of Pixels an object takes up

2009-07-03 Thread Paul Martz
Ulrich Hertlein wrote: While we're on the subject: for simple objects, say a sphere or an AABB, shouldn't it be possible to do this calculation quicker on the CPU without going to the GPU? Isn't something like this done for small feature culling? Host computation has (by definition) no

Re: [osg-users] Read number of Pixels an object takes up

2009-07-03 Thread Ulrich Hertlein
Hi Paul, On 3/7/09 5:57 PM, Paul Martz wrote: Ulrich Hertlein wrote: While we're on the subject: for simple objects, say a sphere or an AABB, shouldn't it be possible to do this calculation quicker on the CPU without going to the GPU? Isn't something like this done for small feature culling?

Re: [osg-users] Read number of Pixels an object takes up

2009-07-02 Thread Jeremy Warren
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

Re: [osg-users] Read number of Pixels an object takes up

2009-07-02 Thread Robert Osfield
Hi Jeremy, On Thu, Jul 2, 2009 at 11:48 PM, Jeremy Warrenjw...@hotmail.com wrote: 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. I'm afraid I haven't dived into the

Re: [osg-users] Read number of Pixels an object takes up

2009-07-01 Thread Robert Osfield
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 Warrenjw...@hotmail.com wrote: I have a simple scene. Colored background and an object, say

[osg-users] Read number of Pixels an object takes up

2009-06-30 Thread Jeremy Warren
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

Re: [osg-users] Read number of Pixels an object takes up

2009-06-30 Thread Judd Tracy
Jeremy I am not sure exactly how to do this in OSG now, but I did something like this 4-5 years ago in OSG 0.9x. I used the ARB_occlusion_query extention http://oss.sgi.com/projects/ogl-sample/registry/ARB/occlusion_query.txt. I placed nodes in different renderbins added cull and draw callbacks