

I included a communication system to allow the DataStreamer app to send data to the game.
#Unity3d angry bots project code
Specifically I commented out all the code related to DeviceControllerManager and the DeviceImposter.
#Unity3d angry bots project Pc
Since OR is PC only, I had to modify the code a bit so it won’t silently crash on my device. The player has been removed and the camera replaced, after importing the Oculus Rift SDK, with a stereoscopic set of cameras that render the view with the perfect oval shape for the lenses and also track the head’s pose very fast.It is the Angry Bots demo game modified in two ways: The code running here is in the VRUnity folder and contains a Unit圓D project. I created a helmet out of foam during the Hackaton (that later was substituted by a more professional-looking black helmet) that holds a 7″ tabled ( Nexus 7) and 2 lenses to the user’s face. this way the user could walk towards his hip and not his head and even crouch on real time or even lay down in the ground.īecause, as mentioned in the previous point, not all phones have a RT-compliant gyroscope, I decided to put a toggle button to disable the hip-butt pose detection and use the head tracking instead in case the phone is not powerful enough to keep the pose updated without breaking the immersion. The important thing about this pedometer is that it not only listens to the strength of the steps but the rhythm so it is very resistant against noise, it could even run directly on the helmet! But instead I decided the user will put it in his back pocket, this way it can track the hip orientation and even the butt inclination…. The Movement:įor the movement I used a different phone running a pedometer, also bundled in the DataStreamer app, I created for my old Augmented Reality system. Galaxy S3 works wonderfully but still there are some scenarios where the user will have to hit the button every 5 minutes or so… until I code a proper solution (already found one but it has not been implemented yet, more in the last paragraph), and the 5V requested from the OTG makes the battery drain quite quicly (1h-2h). For that reason I included a huge Sync button in the middle of the screen so it is impossible to miss it while playing and will realing the head, hip and head poses. I tried my best to correct any drifting using a version of this code, that brings accelerometer and compass to the mix in order to create a rock-solid pose reading, but can still be problematic in medium/low-end phones. The pose-detection relays strongly on the gyroscope sensor and, nowadays, it is quite difficult to find information about how good a phone’s gyroscope is.


The app, inside DataStreamer folder, will listen to the Arduino output and also track the pose. Through an OTG cable, the board is connected to a Galaxy S3 attached to the Gun itself running a very particular app. I coded the Arduino board so I could actually track the on/off positions (only on first-call) for the trigger and the ammo clip modifying the original’s Makey Makey code.
#Unity3d angry bots project full
crouch, aim… a full VR experience and most importantly: in Real Time, without any cables and ultra-light, perfect for feeling deeply immersed.Īll code can be found in my Github, I will explain here the key parts of the project, which are summarised in the presentation I used or the Android Meetup and can be found here. The user experiences a 3D environment that allows him not only to look around using stereoscopic vision, but walk, jump. Ok, so what is this exactly? Basically it is a set of applications to detect the user’s movements to control and display a FPS version of the mentioned game. A true honour that motivated me onto polishing and showcasing the project for the Manchester’s Android Meetup months later with huge success 🙂 I won the “ Best Company Project” award from the jury, and also was the finalist (2nd) for the “ Best of All” competition. In 25 hours I managed to finish the weapon and modify an existing game named Angry Bots to be playable with all the freedom of a wireless system! After leaving my VR Gun project for a while I decided to go to HackManchester 2013 and give it the push it deserves by creating not just the Gun, but a full VR experience.
