Skip to main content
Up and Coming
July 26, 2014

Oculus Rift SDL2 OpenGL Demo (Updated for Oculus SDK 0.4.0)

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

    New Participant
    September 22, 2014
    I get an access violation error at function call ovrHmd_EndFrame when I use direct HMD mode. I used SDK version 0.4.1 and 0.4.2 but it doesnt work with both SDK versions.
    New Participant
    September 23, 2014
    "C0dR" wrote:
    I get an access violation error at function call ovrHmd_EndFrame when I use direct HMD mode. I used SDK version 0.4.1 and 0.4.2 but it doesnt work with both SDK versions.


    Currently there are problems with the SDK when using OpenGL in direct to HMD mode.
    Hopefully it should be fixed by the next SDK release, but we haven't heard more than "soon".

    In the meantime you can use extended more, or workarounds like the one jherico created:
    viewtopic.php?f=20&t=14646