• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Asset - Graphics GMOculus - Oculus Rift support for GM:S

DukeSoft

Member
NOTE: This was made on the DK1. Not DK2. Not CV. This library is probably outdated, but I wanted to share it anyway.

Hi everybody!

How does that sound? Oculus support for Game-Maker? Sweet, doesn't it? What if I told you its open-source, and easy to integrate in existing games? Too sweet? Check it out!

Me and Indecom4000 have been working together in order to integrate Oculus Rift support for Game Maker.

A few issues we had;
1. The oculus DLL wasn't ready for GameMaker, so Indecom4000 wrote our own wrapper-DLL
2. The barrel-distortion that must be created to counter the pincushion-distortion on the oculus. This has been done in the way of a shader, also by Indecom4000.
3. The calculation of the eye-position. Was quite hard to accomplish, but i think we have it figured out right now.

Some information:
- Works on GM - Master Collection
- Uses Surfaces for 3D drawing
- Uses Shaders to adapt the surfaces
- Uses a custom DLL to communicate with the Oculus Rift (almost latencyless!)
- Has a neat codebase, shouldn't be too hard to integrate. An extension is on its way!
- Has a neat demo. I've probably spent too much time on that, but it looks sweet.
- Its open-source. The sourcecode is on GitHub. Please, if you made a neat addition to the code, send me a PullRequest and if its good we'll merge it into the project!
- If you don't want to add anything cool, solve an issue!

Links
Project Homepage
GitHub page
Issue list

EXE Download (v 0.21)
GMZ Download (v 0.21)
Topic on Oculus Developer Forum

Controls:
Look with mouse
Walk with WASD
"O" - switch to Oculus view
"P" - switch to regular view

Movie
Demo-movie

Screenshot



CHANGELOG:



V0.23

The oculus rendering is somewhat better, and i've added basic anaglyph support... Which doesn't work yet.



The rendering should first be fixed.



Here are the new issues:

https://github.com/R...culus/issues/23

https://github.com/R...culus/issues/22

https://github.com/R...culus/issues/21

https://github.com/R...culus/issues/20

https://github.com/R...culus/issues/19
 
D

Drewster

Guest
NOTE: This was made on the DK1. Not DK2. Not CV. This library is probably outdated, but I wanted to share it anyway.

Hi everybody!

How does that sound? Oculus support for Game-Maker? Sweet, doesn't it? What if I told you its open-source, and easy to integrate in existing games? Too sweet? Check it out!
I don't own the hardware, but that's really cool man!
 
G

grixm

Guest
There was a different, newer Oculus implementation by some guy on the old forums, it used the oculus SDK v0.6 so it supported the DK2 too, and it let the oculus runtime do all the camera splitting and fisheye warping, not a custom shader in GM. No offense of course, but that approach worked a lot better, more responsive and better visual quality than this extension, so at some point I switched from this to the other one for my program VRLSS: https://github.com/Grix/vrlss
Unfortunately the author seems to be gone with the wind, and he never released the source. I think with GM2 there is great potential to make a new, proper Oculus extension to rule them all, now that the game maker DX version is updated to 11 it should be much easier to link it to the Oculus SDK as well.
 
Top