I want to use pose_R and pose_T in tracking.cpppose_R = mCurrentFrame.mTcw.rowRange(0,3).colRange(0,3); pose_T = mCurrentFrame.mTcw.rowRange(0,3).col(3);
as the ViewMatrix to compute the MVP matrix. But when I draw a AR model, the model does not translate and rotate as the camera move.
Can you give some advice about how to use pose_R and pose_T in OpenGL?
Thanks a lot.
I want to use pose_R and pose_T in
tracking.cpp
pose_R = mCurrentFrame.mTcw.rowRange(0,3).colRange(0,3); pose_T = mCurrentFrame.mTcw.rowRange(0,3).col(3);
as the ViewMatrix to compute the MVP matrix. But when I draw a AR model, the model does not translate and rotate as the camera move. Can you give some advice about how to use pose_R and pose_T in OpenGL? Thanks a lot.