Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
anarkavre's avatar
anarkavre
Honored Guest
12 years ago

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

  • C0dR's avatar
    C0dR
    Honored Guest
    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.
  • "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