Unable to manipulate camera parameters to rotate camera around z axis
This post has NOT been accepted by the mailing list yet.
This post was updated on .
I am trying to rotate the camera around each axis (origin is the (0,0,0) of the point cloud). My understanding is that the up vector of the camera and the vector formed by the focal and position 3D points controls the orientation of the camera. So if I do a 3D affine transform of these three points I can get any camera position&orientation I want.
A rotation of 30 degrees around the z axis will need the following parameters to be passed to the setCameraPosition funciton.
-0.5, 0.866025, 0
But the camera doesn't seem to rotate around the Z axis. I dont see any visible change in the rendered image.
For 30 degree around the x axis I used the below function call. It works like a charm.
viz->setCameraPosition(0, -1250, 2165.06,
0, 0.866025, 0.5,
Rotation around y axis also works. Why am I not able to rotate the camera around its Z axis? Is my understanding of the up vector wrong?