Not fusing at long distances
Hello,
I'm integrating the HTC vive in a medical image software. On my scene I've two cameras on which I impose the position and the rotation of the left eye and right eye "cameras" given by OpenVR. Also I've to determine some options in the cameras such us the height angle (FOV on Y axis) and the aspect ratio, which I calculate from the projection matrix given by OpenVR.
The problem comes when looking at figures that are more than 3-4 meters away. The user sees two different images and can not fuse them into a 3D image. On any closer distance the image fuses and you can see clearly the figure in 3D.
Has anybody the same problem? or any hint about why is it happening?
My code:
UpdateHMDMatrixPose();
m_mat4eyePosLeft = GetHMDMatrixPoseEye(vr::Eye_Left);
m_mat4eyePosRight = GetHMDMatrixPoseEye(vr::Eye_Right);
m_mat4ProjectionLeft = GetHMDMatrixProjectionEye(vr::Eye_Left);
m_mat4ProjectionRight = GetHMDMatrixProjectionEye(vr::Eye_Right);
matcameraRE = (m_mat4eyePosRight*m_mat4HMDPose);
matcameraLE = (m_mat4eyePosLeft*m_mat4HMDPose);
AspectRatio = m_mat4ProjectionRight[1][1]/ m_mat4ProjectionRight[0][0];
HeightAngle = 2 * atan2(1,(m_mat4ProjectionRight[1][1]));
PoseRE = GetPosition(matcameraRE);
RotationRE = GetRotation(matcameraRE);
PoseLE = GetPosition(matcameraLE);
RotationLE = GetRotation(matcameraLE);
When I defined my cameras I defined them as a parallell rig a not as a off axis cameras rig. If you need more info check http://elevr.com/cg-vr-2/