Hello Don,
> light->getLight()->setPosition(osg::Vec4f(0.0, 0.0, 0.0, 1.0));
> ---------------------------------------------------------^
Ah... Looking up the other question (you answered for spot lights, but I still
didn't know how to specify between a directional or a point light) I came
across the OpenGL docs that say that for a directional light, w = 0, but for a
point light, w = 1. That means that how I had it earlier, with w = 0, it didn't
take into account the PAT because it was a directional light (which has no
position). That explains it. Thanks.
> There is a full API (osg::Light - the thing pointed to when you call
> light->getLight() in your code), for setting spot light parameters.
I had already seen those methods but was wondering about point vs directional.
Now I know.
Thanks for your speedy response,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/