码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-10-02 00:31:08      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

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)的父对象了。

 

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

标签:

原文地址:http://www.cnblogs.com/vivid-stanley/p/5926610.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!