[osg-users] Scale-invarient lighting

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Aug 30 00:10:16 PDT 2016


Hi Dave,

Why not use directional light (simulating sunlight). This way scale 
doesn't matter.
In fact that is (on of) the default light setup(s) OSG uses.

Cheers
Sebastian
> Hi,
>
> I'm looking to build a generic scene utility class, with lighting already set up.
>
> However the scale of the scene is known - it could be meters, or 100's of meters. Therefore I don't know where to place the lights, and don't want to hardcode any in.
>
> One suggestion given to me was to place the lights mounted to the camera, so that they're not really hardcoded into the scene. However I suspect this will mean there are no longer any lighting cues when looking around the scene.
>
> Surely there is a recommended approach here?
>
> Thank you!
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68466#68466
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list