Hi Community, I have done this before but it seams I forgot all of it now :-). Here is the story:
I have GLSL code for pixel based lighting and my LightSource is attached to a matrixtrasnform which has updatecallback to update the position and orientation based on the camera view matrix (the pseudo code would look like this): osg::Matrixd mx = _camera->getInverseViewMatrix(); mxt (MatrixTransform is this)->setMatrix(mx) however, it doesnt follow the orientation, only the translation Any hints? Thanks a bunch Nick -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org