Page 1 of 9

Occulus Rift DK2 [ALSO: OpenVR]

Posted: Wed Feb 18, 2015 3:58 pm
by MangoFusion
Just to let everyone here know, I'm currently working on Oculus rift Rift DK2 support for T3D. Hopefully should be posting a progress report on this soon...

Re: Occulus Rift DK2

Posted: Wed Feb 18, 2015 4:27 pm
by LukasPJ
Nice! *applauds*

Re: Occulus Rift DK2

Posted: Thu Feb 19, 2015 5:02 am
by newaged
Glad to hear someone is working on this. Hope it goes well for you.

Re: Occulus Rift DK2

Posted: Thu Feb 19, 2015 11:04 am
by buckmaster
I got to try out a DK2 today - my first time in any Rift. Less FOV than I expected, though I was trying out a web app which had an abominably low framerate, which meant I was trying not to look around, which may have made it feel more claustrophobic than it would have otherwise...

I'm super glad James decided to take this on! Excited to see how it goes.

Re: Occulus Rift DK2

Posted: Sat Mar 21, 2015 3:40 pm
by MangoFusion
Just an update for you guys here.

Most stuff is now working more or less correctly, though I'm currently doing a few tweaks with the settings, tracking down a memory leak, and incorporating a second camera matrix into the rendering code. Also need to add an on-screen floating canvas thing so dialogs and such can pop-up correctly in-game as currently the oculus essentially takes over the rendering of the whole screen while active.

Expecting to get this finished by next week.

Re: Occulus Rift DK2

Posted: Wed May 20, 2015 7:13 am
by JeffR
Hey dude, just a heads up.

Was trying to get everything compiled last night for testing on the oculus since I got it to actually display crap as mentioned.

Running into errors in platform/input/oculusVR/oculusVRHMDDevice.cpp.

Looks like it has a problem with a fair bit of stuff not being defined. Stuff like ovrD3D9Config, ovrHSWDisplayState, ovrD3D9Texture.

Did a search but didn't turn up anything other than that particular file trying to reference them, so I think some files didn't get put up to the branch.

Also, looks like the latest SDK requires a name change.

the include header file "OVR_CAPI_0_5_0.h" is now "OVR_CAPI_0_6_0.h", if you wanted to accomodate for that. Just as a heads up.

If I've just missed something on those references, lemme know.

Re: Occulus Rift DK2

Posted: Fri May 22, 2015 4:50 am
by JeffR
Alright, got it all set up and running and it seemed to work pretty nicely.

The only issue I could note is the head tracking seemed to not be fully smoothed. I dunno if that was just my headset not being calibrated, or if you saw that too. I vaguely remember you mentioning that though.

Otherwise it seemed to work pretty well.

Re: Occulus Rift DK2

Posted: Fri May 22, 2015 8:26 am
by buckmaster
What was the issue? Would be good to document your fix so others can test too :).

Re: Occulus Rift DK2

Posted: Fri May 22, 2015 3:37 pm
by JeffR
Basically, the latest 0.6 SDK doesn't work. They've deprecated D3D9 in it, so it's not compatible with T3D currently. Using the 0.5 SDK works fine though. Going forward, we need to focus on getting D3D11 running to maintain compatibility, or go more in on OpenGL.

Re: Occulus Rift DK2

Posted: Thu Jun 04, 2015 10:00 am
by LordThrash
Quick question. would you guys expect to hit an exception when no device is detected? I was trying to add the code without the actual hardware attached.

"Oculus VR Device Init:
Could not enumerate a HMD device. Simulating a HMD."


And then exception at OculusVRHMDDevice.cpp
mSupportedCaps = hmd->HmdCaps;

i hope to have a dev kit this weekend to see how it works and wanted to get a jumpstart on the code.
-Rob