Hi Paul,

First thanks for your answer.

I think that if we comment out the texture2->setImage() call, we don't use the second spotlight. So we see just one spotlight with the red light, and sometimes the green too (but the two lights and the spotlight are independant).

For my application, I'm trying to have 2 separated spotlights. Lights are ok, but there is clearly a problem with spotlight, maybe the lookAt() function in :

texgen2->setPlanesFromMatrix(osg::Matrixd::lookAt(position2, position2+direction, up)*osg::Matrixd::perspective(angle,1.0,0.1,100));

but I've not found any solution yet...

Josselin.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to