Hi Robert

Thank you for help!

I used the call for setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); on wrong place. The example you pointed me to gave me the another view to the problem.

This code:

osg::Camera * m_rttsCameraNode = new osg::CameraNode;
...
m_rttsCameraNode->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);

is working.

Best regards
Vaclav

Robert Osfield wrote:

Hi Vaclav,

How do you try to disable the compute near/far?  I haven't tried to do
it with a RTTS CameraNode but it should work.  The osgdepthpartion
example sets up an internal CameraNode and settings up the
ComputNearFarMode, perhaps this will serve as a good example.

Robert.

On 6/27/06, Vaclav Bilek <[EMAIL PROTECTED]> wrote:

Dear OSG Users

I am using CameraNode rtts to make NLIM distortion. I learned how use it in
the osgdistortion example. In principle I did the same as in the
osgdistortion.
Everything works fine and I thought that I know how it is working.
The new request to adjust near/far clipping planes occurred.

I already did the near/far adjusting before by the way of disabling
the auto near/far computing and then setting directly the perspective lens.

This way is not correctly working for osgdistortion (in my case).
I am able to set only the far clip plane/distance, but not near clip.

It seems that the near clip is always 1.

- I checked the CameraNodes for possible parameters but I did not found
any working.
- I also adjusted the CullSettings of the osgProducer::Viewer by the
setCullingMode to ENABLE_ALL. but without success.

Could anyone point me to right direction. I don't need the code sample,
just only hint.

Best regards
Vaclav Bilek

_______________________________________________
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/


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

Reply via email to