[osg-users] Problem with new OpenScenGraph version 2.2.0

Robert Osfield robert.osfield at gmail.com
Tue Oct 23 01:26:12 PDT 2007


On 10/22/07, Nguyen Ha Son <Nguyen at ha-son.de> wrote:
> I have found out the env. OSG_SCREEN_DISTANCE is not set. The
> osg::DisplaySettings uses the value 0.5 for default distance which is
> used to calculate first parameter of
> camera.setProjectionMatrixAsPerspective(). This leads to an angle nearly
> 180 degrees for this parameter. After setting env. OSG_SCREEN_DISTANCE
> all examples work fine now. I'm wondering it seams to be nobody has this
> problem like me.
> Thank for your tip Paul but I didn't see anything strange after setting
> OSG_NOTIFY_LEVEL=DEBUG.

Do you have other OSG_* env vars set?   It certainly isn't normal to
require OSG_SCREEN_DISTANCE to be set, as the defaults should work
pretty well on most setups.

Robert.



More information about the osg-users mailing list