osgOQ is no longer an extension -- OcclusionQueryNode is part of OSG v2.4.
However, as currently implemented, it does not return to you a count of the
number of visible vertices.
 
OSG, like many rendering doesn't provide direct support to return the number
of visible vertices. However, you should be able to use any general
algorithms that exist to perform this task.
 
To determine the pixel size of a bounding sphere, you can use the distance
and radius along with the combined modelview and projection matrices.
OcclusionQueryNode could probably be modified easily to return a count of
the number of visible pixels of the bounding box, but it doesn't currently
do this, as that was not a design goal.
   -Paul
 
 
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of a.lagnier
Sent: Tuesday, May 27, 2008 10:28 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Counting visible vertex



Hi all,

I want to calculate number of no occlusing vertex. But, I don't know how
determinate visibility. Must I use osgOQ extension? 

I have an other question : how can I access to pixel size of an object on
screen? I think I must use Cullstack::pixelSize(boundingsphere). I want it
for determinate what LOD is visible (with RangeMode PIXEL_SIZE_ON_SCREEN).
Maybe there is an other way to determinate it...




Any idea ?

Thanks,
Aude






Créez votre adresse électronique [EMAIL PROTECTED]
<http://www.laposte.net>  
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to