How about using osgUtil::SceneView::getViewMatrixAsLookAt(eye,center,up)
and then
Vec3 view = center - eye;
Don
Rolf Anders wrote:
Hello, how do I get the viewing vector from the camera and into the scene?
I have seen that under MatrixManipulator getUpVector, getFrontVector
and getSideVector. But it is berried deep down, is there any other way
to get a hold of the viewing vector?
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
- Benjamin Franklin
+----------------------------------------+
| Don Tidrow |
| Visualization Software Engineer |
| SAIC |
| ph: 703-253-1094 |
+----------------------------------------+
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/