Android VR工具包-HeadTransform getHeadView矩阵表示形式 [英] Android VR Toolkit - HeadTransform getHeadView matrix representation

查看:73
本文介绍了Android VR工具包-HeadTransform getHeadView矩阵表示形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从使用Google VR的Android VR-Toolkit开始. 我在Google网站上使用了示例: https://developers.google.com/cardboard/get-started

I'm starting with Android VR-Toolkit for google cardboard. I use the sample at google website: https://developers.google.com/cardboard/get-started

我是openGL的新手,尝试弄清楚系统如何表示这些值. 例如HeadTransform.getHeadView根据文档设置4x4矩阵:

I new with openGL and try to figure out how the values are represented by the system. For example HeadTransform.getHeadView set a 4x4 matrix and according to the documentation:

代表从摄像机到头部的变换的矩阵. 头部原点定义为两只眼睛之间的中心点.

A matrix representing the transform from the camera to the head. Head origin is defined as the center point between the two eyes.

我的问题是什么代表矩阵中的每个值(每个单元格)?

My question is what represents every value (each cell) in the matrix?

推荐答案

Google Cardboard的headTransform.getHeadView()提供了一个变换矩阵,该矩阵既包含(头部)的旋转变换又包含平移变换.

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]是转换矩阵.在我的测试中,向量为[0,0,0].
  • [Rxx,Rxy,Rxz]是旋转后的x轴(将Yx轴的Rx替换为Ry,以此类推).
  • 这篇关于Android VR工具包-HeadTransform getHeadView矩阵表示形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆