Skip to content

Generic OpenVR Driver, STM32 based HeadTracker and wireless motion controller firmware.

Notifications You must be signed in to change notification settings

vicdxxx/openvr-customhmd

 
 

Repository files navigation

openvr-customhmd

DIY attempt for building OpenVR compatible HMD and controllers, and drivers (Windows only).

I started my VR experience with a custom built HMD by using parts of a disassembled Sony HMZ-T2, an Arduino based Head Tracker, and OpenTrack software. But only few games were supporting FreeTrack-like protocols. So I decided to write a complete OpenVR driver which hopefully will support newer games, and I hope I will be able to play some VR games with friends who cannot afford ridiculously expensive hardware.

Some features:

  • Tracking and controller hardware is based on STM32F103.
  • Supporting framepacked 3D signal for HMD's with two monitors or 3D TV's. (double horizontal resolution 👍)
  • IVRDirectModeComponent supporting driver for Android phone based orientation tracking and display. (in progress...)
  • Lighthouse-like positional tracking, (or ultrasound TimeOfFlight based, still experimenting, also in progress...)
  • Expose any USB WebCam (YUY, YUV or RGB) to OpenVR (for Room-View or other camera functions).
  • Autodetect monitor position and size in Extended mode for placing the HeadSet Window.
  • Minimal electronics in trackers/controllers. (eg. no button debouncing filters, all done in code. 72Mhz can handle it.)
  • Controllers communicate with the HeadSet which is connected via USB cable to the computer.
  • ...

Dependencies:

  • ffmpeg from NuGet, for compiling the driver
  • dotNet 4.6.2, for the HMD monitor program.
  • VC2015 Runtime, for using the driver
  • ...

ToDo:

  • Positional tracking. (Already done some experiments with 2 DIY laser lighthouses, servo and stepper. Servo is too noisy and slow, stepper needs extra controllers. cheapest solution may be tracking by ultrasound...)
  • Fix/flip quaternion from RotationVector sensor for Android tracking.
  • Hardware encoding instead of ffmpeg?
  • Use OpenGL mesh for distortion correction on Android display?
  • Remove magnetic sensor input from trackers.
  • Find a friendlier way to calibrate tracker sensors.
  • ...

After long resisting to buy one of the expensive but ready VR solutions, I finally bought a Vive (for twice of the actual price 😭 ). Unlike my older Sony headset's and unlike both my phones screens (G5, Z3), the ones in this expensive HMD are crap; the screen-door effect is annoying, the lenses generate too much flare when there are bright areas in corners etc. Text is unreadable even when doing 2x oversampling. Seems positional tracking is the only thing I paid for 😠. Shame on me, for buying such an immature product for such a price. I'm going to sacrifice some FOV, FPS, accuracy and latency for readability, and use my phone as output display for playing games like Elite Dangerous or DCS, which are uncomfortable to play on the Vive because it gives me eye pains. I used to play ED for hours with the orientation-only DIY'ed Sony ...

About

Generic OpenVR Driver, STM32 based HeadTracker and wireless motion controller firmware.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.7%
  • C++ 7.9%
  • Assembly 2.5%
  • C# 0.4%
  • HTML 0.2%
  • Objective-C 0.1%
  • Other 0.2%