[osg-users] OSG_NEAR_FAR_RATIO overriding setComputeNearFarMode(DO_NOT_COMPUTE_NEAR_FAR)

Robert Osfield robert.osfield at gmail.com
Wed Apr 6 07:10:21 PDT 2016


Hi Etienne,

It's not possible to know exactly where the problem lies without knowing
the ordering of how you are setting up the osgViewer and associated Camera.

The best I can say it sounds like the src/osg/DisplaySettings.cpp values
are being utilized after your code is setting up the osg::Camera.  Try
putting a breakpoint into the code that sets up the Camera values to see
where the OSG is doing it. Changing the order of your own settings to the
Camera should then be put after this is invoked.

Robert.

On 6 April 2016 at 14:53, Etienne de Sarrieu <etienne.desarrieu at altran.com>
wrote:

> Hi,
>
> Everything is in the title, in my application when I set
> OSG_NEAR_FAR_RATIO as a runtime environnment variable, the settings I give
> to my master camera through a Frustum projection matrix are ignored (and of
> course I used setComputeNearFarMode(DO_NOT_COMPUTE_NEAR_FAR) on this
> camera).
>
> Is this normal ? Could this be a side effect of something else ?
>
> Thank you for your help!
>
> Cheers,
> Etienne
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66746#66746
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160406/2c8237d9/attachment-0003.htm>


More information about the osg-users mailing list