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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM