Hi Aitor,

Is you normal of your model well defined and normalized ?

I suppose you used an osg::Light to define your light.
Have you put it in a osg::LightSource ?

Could you provide an example to reproduce your issue
This will become hard to solved it without more information.

David Callu

2010/10/4 Aitor Ardanza <[email protected]>:
>
> Trajce (Nick) Nikolov wrote:
>> 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
>>
>
> Neither solves ...
> Could I use the standard osg lighting if I use a vertex program to change the 
> position of the vertices?
yes, you can.


> If I coment
> Code:
> //gl_FrontColor =  diffuse + globalAmbient + ambient + specular;
>
>  the result is this...
> [Image: http://img210.imageshack.us/img210/4333/30581070.jpg ]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=32359#32359
>
>
>
>
>
> _______________________________________________
> 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