I implemented Spot Light by referring to osglight.cpp.
However, it is having difficulty in implementing SpotLight to change
direction according to the heading of the aircraft at the same location.
Even if I get the Pitch, Roll, and Heading values of the aircraft and set
the values in the
Hi, Robert .
First of all, thank you for your interest and answer.
I'm rendering using osg::Light and osg::LightSource with a spotlight
pointing down.
The exact position is set using light->setPosition()
The direction of the light is set with the code below.
osg::vec3d world =world +
2 matches
Mail list logo