New to the forums? Click here to read the "How To" Guide.

Developer? Click here to go to the Developer Forums.

ovr_create() fails

bj_sunkubj_sunku Posts: 3
edited January 2016 in Oculus Share
Hello every one,

I am trying to program with oculus. I am trying to initialize the oculus and it was succesful. But I am not able to create the ovr handler. ovr_create() fails for some reason.

The Rift is not turning on though.

error = ovr_Initialize(nullptr);
cout << "OVR_Initialize successful\n";// This is printed on the console
if (!OVR_SUCCESS(error)) {
return false;

ovrGraphicsLuid luid;
error = ovr_Create(&hmd, &luid);
if (!OVR_SUCCESS(error)) {
return false;//it quits with exit code 1?

Appreciate any help!


  • cyberealitycybereality Posts: 26,156 Oculus Staff
    I would closely look at the Oculus Room Tiny sample project and mirror the API calls exactly.

    Off the top of my head, I don't see you declaring "HMD" anywhere.
    ovrHmd HMD;
    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
Sign In or Register to comment.