Hello forum,
osgViewer , by default uses the world coordinate system that is oriented
with positive X to right , positive Z up, and positive Y into the screen.
Does that mean the camera' s defualt position is at the origin looking down
into the screen which is positive Y?
I have tried to extract the vectors using the function
************************'
osg::Vec3f eye;
osg::Vec3f dir;
osg::Vec3f up;
viewer.getCamera()->getViewMatrixAsLookAt(eye,dir,up);
cout << "The eye vector: " << eye.x() << " " << eye.y() << " " <<
eye.z() << endl;
cout << "The look at position: " << dir.x() << " " << dir.y() << " " <<
dir.z() << endl;
cout << "The up vector is: " << up.x() << " " << up.y() << " " << up.z()
<< endl;
************************
The eye vector: 0 0 0
The look at position: 0 0 -1
The up vector is: 0 1 0
I was wondering if the up vector be Z axis instead
Regards
Sajjad
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org