Hi Julio,
The OSG by default clamps the near/far planes to the extents of your model.
You can disable this via:
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
This has nothing to do with culling though, you seem to confuse near/far
planes and culling in
Oh I do no wnat to change the culling, all I want to know is why OSG change
the projection matrix to and arbitrary near plain of 0.2 and far plane of
228
I set the camera to be projection to
SetCameraProjectionMatrix (0.5 * 3.1416f, 1.33f, 0.01, 1000.0f);
but when I ge the Plojection m
It's often desirable to disable culling for any geometry that is
non-spatial in nature. Such geometry is very common in modern graphics
programming.
Even after you disable near/far auto-compute, and set culling disabled on
your scene graph, the CullVisitor will still cull any geometry that is
behi
Hi julio,
I guess you are not looking for culling, but for near-far plane calculation.
try:
camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
why do you want to disable culling, or did you just mixed it up with the
near-far mode?
cheers
Sebastian
I am get a lot of
I am get a lot of frustration trying to disable frustum culling with OSG
camera.
I am setting the perspective matrix to a near plane of 0.1 and a far plane
of 1000.0
here is my code.
I explicitly disable frustum culling, however no matter how many time I do
it, each time
viewer.frame() is ca
5 matches
Mail list logo