if you create a single drawable then yes OSG will try to draw them all
as this is 
the granularity of OSG's cull test its tests bounding spheres for speed.
 
If you have multiple drawable's then  OSG will draw every triangle of
each drawable that is partially in of fully in the frustum
 
The trick you loader needs to do is to create a well balanced quad or
oct tree to enable good culling and drawing
 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 
 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, December 01, 2008 2:49 PM
To: [email protected]
Subject: [osg-users] How to know if polygon is about to be draw
onscreen?


Thank you,
So if I have a really big object (no paging) with 300000 polygons (read
using readnodefile()), OSG is going to draw them all???
I'm just trying to reach for the vertex x,y,z, of the polygons in the
view frustum. 
I managed to get the vertex X,Y,Z , but for all the object, not the one
in view frustum.
For now I have only 1 object in my scene, I switch object base on
distance from my surface.
thank you
Oren David
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to