[WayneKeenan] wrote a proof-of-concept virtual reality system that used a Raspberry Pi and an Oculus Rift. It was about a thousand lines of Python and with a battery pack it was even portable. The problem was that the Pi was struggling to create the 3D views.

[Wayne] recently revisited the demo and found that just about everything has gotten better: the Pi 3 is faster, and the Python libraries have become better. He spent some time building a library — VR Zero — and then recreated the original demo in 80 more lines of Python. You can see a video, below.


The library offers:

  • Default input event handling for Keyboard, Mouse, and other input devices.
  • Configurations for the Oculus Rift DK1 and DK2 and the Xbox Joypad.
  • An OpenGL ES barrel shader for correcting lens distortion.

Some of the demos peak at around 25-30 frames per second on a Pi 3. Not too shabby.

We’ve looked at some cool uses for the Rift like virtual monitors and crane control.

[embedded content]


  1. i remember riftonthepi from oculus dk1. recently tried to get it to work again but was unable to. nice to see someone revive oculus support on pi with its native hdmi and all. i have both dk1 and dk2 and they are still useful headsets and shouldnt be abandoned. now if we could get them working with webvr that would buy them alot of life.

  2. Robyn Rissell

    Demos look good but his reflection/silhouette in the monitor while filming throw off the quality impact.

  3. For people without VR experience, it’s important to know that using VR wih less than 60Hz is unbearable, and you ideally want 75Hz+. Unbearable in this context means nearly guaranteed nausea.
    Still a nice hack, though.

  4. Nice but DK1 and DK2 are not really available any longer. Are there other VRs that could be connected to one or two PIs?


    Lars: hate to be a troll but give your head a shake. The DK1 & DK2 are all over eBay and can be had relatively cheap. E.g. 2 seconds on ebay I found this http://tinyurl.com/jhlgpg9
    These aren’t old old Motorola flip phones we are talking about. The dk1 & dk2 are still totally cutting edge technology and just because they have been superceded doesn’t need they all went to the E-waste depots.
    That said if they are considered garbage I’d gladly pay shipping to anyone looking to toss their unused obsolete units.

Leave a Comment

Your email address will not be published. Required fields are marked *