GMCardboard - Cardboard VR in GMS2
A downloadable GameMaker Extension
GMCardboard - Cardboard VR in GameMaker! Cover icon is bad and temporary (hopefully)
What does it do?
- Enables Stereoscopic Cardboard VR on Android with as few as 3 function calls
- Provides access to all important pose information to make pose detection and 3D audio easy to integrate
- QR code scanning! Woo!
- Handles all the complicated bits internally so you can just do the fun bits!
- Full documention on my documentation website
- The demo project also includes a very basic implementation of gesture detection, for example nodding and shaking your head!
What doesn't it do?
The extension alone won't help you make a 3D game in any way other than providing a 3D VR camera. Optimisation of rendering, effects and other things are still entirely up to you. You'll need to be very aware that most things will be rendered twice and take that into account.
Also Android devices can't usually cope with as many polys as a desktop can.
Check the "Tips" page on the documentation for some help
Also this quick setup video:
Why Cardboard?Because I'm poor and it's the only VR I can afford lol (2-4€ is way easier to get than 500-1000€, lemme tell ya). Equally, it's a much more accessible VR platform, even if it's not necessarily as good as the expensive ones.
Demo Project
The demo project is a simple project showing off some basic things you can do with Cardboard and GameMaker. The source for this project will be released alongside the extension. It shows some of the following:
- Basic implementation of the stereoscopic rendering in a 3D world
- Gesture detection (e.g., nodding and head shakes)
- Lookat Checking (are you looking at something?)
- Input methods - touch, stare and shout!
- 3D audio using the viewers' orientation
- Recentering and Switching viewers
The code (e.g, scripts, shaders, obvious code stuff) for this will be free to use for whatever, though the assets (including sounds, textures and models) are just for the example (I'm keeping the rights to those). You can do better than I did with those anyway, I just needed something to demo the features.
If this extension reaches 1000$ gross (that's before fees!) I will make this project free and open source for everyone. I think that would be really cool, I just need to recoup costs first. I'll also make a tutorial on building C++ Android extensions with AAR libs for GameMaker since it's kinda weird but not too difficult if you know the steps
The future?
iOS may be supported in future if I can get my grubby mitts on an iPhone device.
Heck, maybe if stuff goes REALLY well, I'll look into bundling support for other VR platforms and let you use the same extension for all VR. That could be cool.
Purchase
In order to download this GameMaker Extension you must purchase it at or above the minimum price of $50 USD. You will get access to the following files: