hi Robert
because when I set a small far , and move the model byond the far, the
model gets cliped, iit disapears but the number of drawables keeps the
same, what I mode the model outside the screen on the sides the number
of drawables is decreased
thank you
Ryven
------------------------
Hi Ryven,
The DO_NOT_COMPUTE_NEAR_FAR does not affect view frustum culling.
View frustuming culling is only done on nodes and drawables, it
doesn't cull individual triangles.
What makes you think that view frustum culling isn't working?
Robert.
On 1/25/07, Ryven <ryven.kicks.ass at gmail.com> wrote:
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
osg-users at openscenegraph.net
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/