ValveSoftware / driver_hydra

OpenVR Driver for Razer Hydra using Sixense SDK
BSD 3-Clause "New" or "Revised" License
101 stars 108 forks source link

Lack of acceleration and velocity extrapolation breaks the ability to throw objects in Budget Cuts and The Lab. #1

Open Relys opened 8 years ago

Relys commented 8 years ago

@betavr added acceleration and velocity extrapolation in the OSVR Hydra support he was working on before this official release: https://github.com/betavr/SteamVR-OSVR/commit/e66caea843254a48a456b8da6f16f3719fea076a Can we implement something like this so that these games are at least functional? Other than this one issue the driver works perfectly! Much smoother tracking compared to the OSVR implementation and all the buttons work too! :D Thanks so much for your support. I'm really glad I can purchase games and play on Steam with my Oculus DK2 and Razer Hydras as opposed to having to purchase new hardware. I <3 Valve! Thanks for being pro consumer and helping to open VR for everyone!

bjj commented 8 years ago

Velocity is computed as a first-order difference, but it is disabled. With it enabled, throwing would probably work, but the position will be jumpier because of the position extrapolation in the driver.

https://github.com/ValveSoftware/driver_hydra/blob/master/drivers/driver_hydra/driver_hydra.cpp#L841

It looks like the work @betavr did was more sophisticated, and if he submits a pull request we'll definitely consider it.

r57zone commented 4 years ago

I fixed the buttons in the driver from BetaVR and also added a crouch button. The updated driver can be found here. Since BetaVR no longer supports the driver, let's now join forces in this repository.

Checked in games: Half-Life: Alyx, VRChat, PavlovVR. Everything works well.