the viewer by default is attaching a light. Setup your viewer with NO_LIGHT
(or something like that, look in the code), and then create and control your
own light

-Nick


On Mon, Oct 4, 2010 at 11:19 AM, Aitor Ardanza <[email protected]> wrote:

>
> ledocc wrote:
> >
> > bug fix:
> > - ViewDirection  = normalize(eyePosition - fvObjectPosition.xyz);
> > + ViewDirection  = normalize( - fvObjectPosition.xyz);
> >
>
> I already had tried before, but does not solve the problem.
> If you disable the shader, with the standard osg lighting, gives me no
> problems, the model normals  are well.
>
> If approached the camera at a distance close enough to the model,
> everything is fine, but if you walk away a bit, whole model is lit
> regardless of the position of the light ...
>
> Thanks for the answer!
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=32342#32342
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to