Skip to main content
Up and Coming
May 29, 2014

Oculus Rift SDL2 OpenGL Demo

I created a simple demo to show how to use the latest Oculus SDK with SDL2 and OpenGL using SDK Rendering. You can access the source code here.

UPDATE: I updated the demo to work with the new SDK. Positional tracking is not applied to the camera, but it can easily be added. You can access the source code here. Here are two screenshots for those who are curious.

    2 replies

    Inspiring
    June 4, 2014
    Thanks for posting this code.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    June 5, 2014
    I might try this out on the raspberry pi, thanks.

    I tried to try it but I couldn't build the sdk. it said

    "{standard input}:1596: Error: selected processor does not support ARM mode 'dmb' "

    not sure what that means, I changed the build target from i386 to arm926, I'm pretty sure that's the right target for the raspberry Pi.

    there is an alternative to dmb, I might check this out later
    http://www.raspberrypi.org/forums/viewtopic.php?t=23616&p=322295