Ryven,

How do you know the nodes aren't culled?  How did you prove they are not
culled?

If you have proven this, try
viewer.getCullSettings().setCullingMode(osg::CullSettings::ENABLE_ALL_CULLIN
G); 


Zach

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryven
Sent: Thursday, January 25, 2007 18:47
To: [email protected]
Subject: [osg-users] Frustum Cull

Hi Zach, and thank you for the reply,

I'me quite sure the nodes have culling active, since on the model is culled
on the sides of the frustum, and on bottom and top of the frustrum. it just
don't cull at the near and far.

my model has cullingActive TRUE on the ".osg" file.



This is really wierd. I'm setting the perspective matrix on the right
place?, if not where should I do it?

, also,

 when I set the perspective, osg automatcly set the frustum polytope right?

thank you

Ryven

------------------------------------------

Hello Ryven,

Are you sure the nodes you are loading have culling active?  I mean do you
setCullingActive(true)?


Zach

-----Original Message-----
From: osg-users-bounces at openscenegraph.net [mailto:osg-users-bounces at
openscenegraph.net] On Behalf Of Ryven
Sent: Thursday, January 25, 2007 15:18
To: osg-users at openscenegraph.net
Subject: [osg-users] Frustum Cull

Hello

how can I set the far and near of the frustum? I have set the perspective
using,


viewer.getCullSettings().setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_
COMPUTE_NEAR_FAR);
viewer.setSceneData(processed_model.get());
viewer.realize();
viewer.setLensPerspective(40.0, 30.0, 0.5, 1.0);


but this way, opengl clips the geometry, but there is no frustum cull by
osg, the primitives and triangles are just the same. I can cull if I don't
set DO_NOT_COMPUTE_NEAR_FAR, bu this way I can't set the far and near.

Can someone help?

sorry about the bad english
thanks
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to