I have a question about the units of fog visility.

28 views
Skip to first unread message

newli...@gmail.com

unread,
Sep 4, 2020, 3:28:39 AM9/4/20
to OpenSceneGraph Users
I have a simple question.

What is the fog visibility unit?
Is it a meter?
Is it feet?  

OpenSceneGraph Users

unread,
Sep 4, 2020, 3:42:44 AM9/4/20
to osg-...@lists.openscenegraph.org
Hi, it mimics the fog model described in:

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

--
Alberto

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

OpenSceneGraph Users

unread,
Sep 4, 2020, 3:54:59 AM9/4/20
to OpenSceneGraph Users

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.


Message has been deleted

OpenSceneGraph Users

unread,
Sep 4, 2020, 9:38:19 AM9/4/20
to OpenSceneGraph Users
On Fri, 4 Sep 2020 at 14:05, OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:
I'm actually curious about the distance unit of Density used in OSG.
Whether the unit of distance is meters or feet depending on values between 0.0 and 1.0..?

The OSG doesn't have a unit of density, it just passes the settings directly on to glFog.
 
Reply all
Reply to author
Forward
0 new messages