[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.
Filed under: Raspberry Pi, Virtual Reality
from raspberry pi – Hackaday http://ift.tt/2dzDEWN
via Hack a Day