Android VR Toolkit - HeadTransform getHeadView matrix representation

血红的双手。 提交于 2019-12-04 16:36:44

Google Cardboard 's headTransform.getHeadView() provide a transform matrix holding bothrotation and translation transforms (of the head).

Here is the matrix layout (column major order)

Rxx Ryx Rzx x
Rxy Ryy Rzy y
Rxz Ryz Rzz z
0    0    0 1
  • [x, y, z] is the translation matrix. The vector is [0,0,0] in my tests.
  • [Rxx, Rxy, Rxz] is the x axis after the rotation (replace Rx by Ry for the Y axis and so on).

If you are new in OpenGL maybe vr toolkit is not the best place to start learning opengl.

You could find this interesting ftp://ftp.informatik.hu-berlin.de/pub3/Linux/Qt/QT/developerguides/qtopengltutorial/OpenGLTutorial.pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!