Irrlicht + Oculus Rift Demo

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Irrlicht + Oculus Rift Demo

Post by Brainsaw »

This is just a little demo for the Oculus Rift virtual reality headset. It includes source and executable. To rebuild it you need the Oculus SDK.

Big thanks to Suvi for helping me with getting the Rotation from the rift applied correctly (a thread and and to Marbas for the distortion code (another thread .. sorry for the heavily modified code, but I just convert *everything* to my preferred coding-style). The demo uses assets from the original Irrlicht distribution.

The movement in the demo is controlled with WASD, and you can rotate the camera using the mouse. Movement is always done in the direction you are looking.

Image

You can download the demo from my homepage
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Suvi
Competition winner
Posts: 45
Joined: Mon Oct 01, 2007 11:24 am
Location: Finland
Contact:

Re: Irrlicht + Oculus Rift Demo

Post by Suvi »

Seems to work really nicely :) I think the zip is missing few source files though.

Did you end up having to do anything with the eye positions? For me the code posted by Marbas worked in some angles but in some the scenery looked kinda flat so I had to add the eyes as additional nodes to the last head-node to get correct positions. It may have been my weird IPD though.

Oh, did you notice they added the calibration tool to the latest Oculus SDK. You could load the saved IPD setting from the default profile which should lessen the eye strain.
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Irrlicht + Oculus Rift Demo

Post by Brainsaw »

It's just sort of a "first shot". I gotta look into some issues (and I'll make sure all source files are in). I didn't yet look at the latest SDK, but currently time is rare.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Irrlicht + Oculus Rift Demo

Post by Brainsaw »

I uploaded a new version. This time it's using my favorite compiler (MinGW) the hacky way: I created a DLL with VC that exports some functions necessary to access the data from the Rift. Can be downloaded on my homepage (http://bulletbyte.de/products.php?sub=irr&show=rift)
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Suvi
Competition winner
Posts: 45
Joined: Mon Oct 01, 2007 11:24 am
Location: Finland
Contact:

Re: Irrlicht + Oculus Rift Demo

Post by Suvi »

Nice! Works much better now. I can feel the depth in this version :)
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Irrlicht + Oculus Rift Demo

Post by Brainsaw »

Lol ... seems that I had the eyes flipped in the original demo. And I was always wondering why that cool 3D effect of the other demos wasn't there ;)
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: Irrlicht + Oculus Rift Demo

Post by robmar »

Looks good, where's the irrlicht code for the goggle drawing?
Post Reply