leapmotion 正反问题_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 objectyou created a few steps earlier. Apply the following settings to the script:

Set Tween Rotational Warping to1.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值