Google Cardboard integration for jMonkeyEngine 3
How do I use this thing!?
Before using it, you need to add Android support to your project through the SDK:
http://wiki.jmonkeyengine.org/doku.php/jme3:android?s[]=android
You also need to follow the instructions for how to develop for Google Cardboard:
https://developers.google.com/cardboard/android/download
Then, the project specific things:
- Add jme-cardboard.jar to your project.
- Turn on Android deployment for your project (Properties/Application/Android
- In the generated MainActivity.java (Important Files/Android Main Activity) have it extend CardboardHarness instead of AndroidHarness.
- Change the appClass in the same to your project's application file.
- Enjoy?
For an example, look at test/CardboardStarTravel
If you wish to build the sources yourself, it needs access to an android.jar file.
Disclaimer: This has been developed against jMonkeyEngine 3.1. Support in 3.0 is not verified.