[osg-users] I have a question about the units of fog visility.

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Fri Sep 4 00:54:35 PDT 2020


osg::Fog is a wrapper for glFog:

   https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glFog.xml

The units are eye coordinates after the modelview matrix has been applied,
so will depend upon your scene graph and view matrices have been combined.
If you scene is in meters and your camera view matrix just provides
position/rotation then the units will still effectively be meters.  If you
decide to scale the scene via the view matrix then you can end up with
different coordinate scale.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200904/66089077/attachment.html>


More information about the osg-users mailing list