[osg-users] Scale-invarient lighting

Robert Osfield robert.osfield at gmail.com
Wed Aug 31 01:04:51 PDT 2016


Hi Dave,

Are you defining normals for your points?

Any chance there is a Transform node in the scale in the scene graph
that is scaling the normals messing up the fixed function lighting
calculation?

Robert.

On 31 August 2016 at 08:13, Dave Rush <dave at laniakea.zone> wrote:
> I should probably take a step back and explain why I was using a positioned light sources in the first place. Basically when I add a scene populated with white GL_POINTS programmed in:
>
> - using the default directional light, the points (which should be white in reality) show up as black.
>
> - using a positioned light source, the points show up correctly as white.
>
> I'm thinking this may actually be an nvidia driver bug (linux nvidia-355), since when using an intel card the points always show up as white regardless of light source type. Does this make sense?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68493#68493
>
>
>
>
>
> _______________________________________________
> 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