Re: [osg-users] how to disable the frustum culling?

2013-10-19 Thread Robert Osfield
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

[osg-users] how to disable the frustum culling?

2013-10-19 Thread Julio Jerez
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

Re: [osg-users] how to disable the frustum culling?

2013-10-18 Thread Paul Martz
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

Re: [osg-users] how to disable the frustum culling?

2013-10-18 Thread Sebastian Messerschmidt
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

[osg-users] how to disable the frustum culling?

2013-10-18 Thread Julio Jerez
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