Hi, What do you mean by view space? Doing you eye coordinates? Or model coordinates?
If you want a light relative to eye coordinate frame than attach the Light it to an osg::LightSource with its RefeferenceFrame set to ABSOLUTE_RF, if you one it in model coordinate then use RELATIVE_RF. See the osglight example for details on use of osg::LightSource. Robert. On 2/11/07, UnSeal <[EMAIL PROTECTED]> wrote:
Hi, how can I translate my light to view space? I use osg::light. osg::Light* myLight = new osg::Light(); myLight->setPosition(osg::Vec4(10, 10, 3, 0)); And how to trans. it to view space? UnSeal _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
