ygx2011 / ORB_SLAM-IOS

ORB_SLAM For iOS, no pod...
57 stars 17 forks source link

How to use pose_R and pose_T in OpenGL #3

Open OldZhao opened 7 years ago

OldZhao commented 7 years ago

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.