Studious
The online portfolio of Allan Weir
Swift / iOS Developer & Interaction Engineer
Greenpeace
iOS & Android VR Experience
Greenpeace Virtual Explorer is a cross platform VR experience developed to share with the world some of the amazing places under threat from mankind. I was the lead developer on the project and it is built primarily using Ionic/Cordova, making use of many plugins such as Local Notifications and a local SQLite database. To achieve the Google Cardboard compatible VR experience, native plugins for Cordova were developed integrating bespoke native development with Google's VR SDK, into the platforms build process.
Disciplines
- Swift
- Ionic / Cordova
- Google Cardboard VR
- REST API Integration
- SQLite
- Animation
Native Plugin / Google VR
Cordova is designed to be extensible and allow you to add native functionality when your requirements exceed what it naturally provides you. Google's VR SDK at the time was also a pre-compiled library so in order to make use of it on iOS some native functionality was required.
The plugin makes use of Cordova's messaging system between the JS and the native Swift layer to communicate both ways from user actions and events like a video ending.
Adding the plugin to be part of the workflow involved writing some hooks for Ionic to trigger certain events and customisation of the Xcode project. Getting the VR SDK into the app required a bash script to trigger a cocoapods install and lipo command to make a universal binary from the library.
Crafted Transitions
In order to compliment the design of the app I used JavaScript and CSS to create some smooth transitions between some of the core angular controllers in the app. Getting a smooth experience in a web view isn't always the easiest and I think with more time there could be room for improvement. Here are some of the finished transitions in the live app at the moment.