HTC Vive 与Leap Motion 出现位置错误的问题

Leap Motion已经支持VR, 但是官方没有支持HTC Vive的例子。

按照官方的文档, 其实是有问题的:

https://developer.leapmotion.com/documentation/unity/unity/Unity_Custom_Rig.html

 

Add the LeapVRTemporalWarping script component to the LeapSpace component you just created. Double check that the Head Transform property has been set to your MainCamera and that TrackingAnchor has been set to the TrackingAnchor game object you created a few steps earlier. Apply the following settings to the script:

Set Tween Rotational Warping to 1.
Set Sync Mode to LOW_LATENCY.

问题在于这句话:“Head Transform property has been set to your MainCamera”

如果你按照官方这样设置, 两只手的模型, 永远都会在你脑袋上方, 而不是在你前方。

 

正确的是什么呢?

 是这样的:

因为对steamVR来说, 有点特别, head 是一个Camera, eye也是一个Camera, 而实际上,这里Head tranform用Camera(head)才是正确的。

对应的, Tracking Anchor就是Camera(head)的父对象了。

 

posted @ 2016-10-01 23:09  Stanley.Luo  阅读(1751)  评论(0编辑  收藏  举报