This is a demo to interact with Oculus Go and Unity technologies, throughout the immersion in a farm in which you can shoot to bottles.
For this first approach and interaction with technologies and devices of Mixed Reality, I decided to use the Oculus Go (VR), to make a small demo in the Unity development environment and using the C # programming language.
This demo consists of shooting and throwing bottles that are distributed on a farm, in a random manner and with different organization patterns.
The controller of the Oculus Go is used to handle the weapon and in it, the PrimaryIndexTrigger, or front trigger, to be able to shoot the bullets with which they want to throw the bottles. On the other hand, with the VR glasses the environment of the farm is shown to the user, trying to achieve a better immersion both with the different graphic elements (houses, grass, birds, bottles, guns, buckets, etc.), as well as with sounds of ambience and interaction (shooting, bottle breaking)
- Install Unity, you can pay or use the Personal version (https://store.unity.com/download?ref=personal)
- Install the Android SDK, or the Android IDE (which includes the SDK). In this URL you can do it https://developer.android.com/studio
- Using the Android IDE we need install the tools, like ndk, adb, etc. For this, you need follow this pictues that explain the configuration and instalation:
_
Too see the routes of SDK, JDK and JRE
- Found "Environment variables" with Windows search.
- This will open the following window, in which you must to click in "Environment variables".
- Create the variables like is showed in the next picture (the route can change with your system username,in my case is Vivian, but please verify this)
- Open Unity > Edit > Preferences > External tools, and insert the same route of the Environment variables:
- Open your git bash console in the directory of your Unity Projects (see the route in the IDE)
- Clone the project using your Git bash console, in this way:
git clone https://github.com/VivianGomez/BottlesShooter-
- Whith the project BoottlesShooter downloaded, please click on File > Open Project, and open the folder of the project
- Conect the Oculus Go to your PC using the USB cable
- Click on File > Build and Run, and verify that you have the following configuration
Note: If you do not have able the Android Plattaform, you must dowload it from Unity page or the assistant of Unity show to you a download button in the same window of Build and Run.
14 Activate the VR configuration at the same window:
Note: If you need more explanation about the VR and Oculus configuration, use this official guide
- When you have the same configuration of the picture, you can click on Build and run, and wait that the app be executed on your conected device.