ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Controller offset issue in OpenXR #236

Open gems2020 opened 2 years ago

gems2020 commented 2 years ago

sddfsadsfa

unity 2020.3.27f1 + OpenXR Plugin 1.3.1 + VIU 1.15.0 Oculus rift cv1

Is there a solution to this?

lawwong commented 2 years ago

Thanks for the report, will look into it.

gems2020 commented 2 years ago

2132432134 When I checked again, the same problem occurred when the runtime was set to SteamVR.

lawwong commented 2 years ago

After some testing, I assume this is a bug from OpenXR Plugin, the odd tracking pose for Oculus controller is what OpenXR returns. From Unity XR interface, OpenXR actually provides both device pose and pointer pose, and pointer pose is more useful. As a workaround, you can enable option in VIUSettings to control VIU underlying module getting pointer pose instead of device pose. viu_enable_uxr_pointer_pose