How to make a VR game? Part 2
This is the continuation of my post “How to make interactive application?”
Now I’ll fully concentrate on giving you technical advice and explain how to make a VR game. I’ll base myself on our lastest production created to promote a heath care product during a scientific summit.
After wearing Oculus Rift headset, the user travels inside a human body. Starting from the esophagus, he’s following the medecine molecules down to the lungs. Traveling inside the body we can discover how this drug affects the body, we can observe its absorption and action. This is how works our virtual experience for Oculus Rift.
We start our work from collecting information we talk about in „How to create interactive application?” We now prepare the scenario. The scenario is an important element which helps us to organise work.
When the script is ready and you have prepared all information you need, you are ready to get to know how to make a virtual reality game. It is usualy simply starting from creating 3D models…
We prepare those 3D models based on materials the client provided us: pictures, photos, movies, etc…
If several members of the team are modeling elements on the same project – we make sure to keep art direction consistent and optimize the amount of polygons on models. Our favorite tool for modeling is Blender, a software similar to 3ds max or Cinema 4D.
After modeling, the next step is to design textures, which must be matcvhed to polygons UV maps. We made textures with bump and specular effects, and we export all models to Unity. The next step of producing a virtual reality game is to test elements positions. We are checking their good looking and positions, and moving them – to show them correctly. If everything works great, we are adding textures and appropriate shaders.
The most important part while producing a virtual game for Oculus Rift is adding inside the Unity environment a virtual camera (Unity Engine Integration — OSX plugin, on Windows you just have to select VR support in player settings). When adding the camera to the scene, you have to watch out for collisions. We carefully setup the camera path, keeping in mind the camera has a full free rotation.
When we are happy with the compositions, positions and movements, our next step is to introduce animated objects. We do them with Blender. When done, we’re adding them to our Unity scene. Now more testing. When everything works fine it’s time to add audio to the project. In this case, all animations had to be synced with a voice over, like a game cinematic.
When audio is setup, it’s time to light the whole scene, add visual effects and color correction. I hope you learned a bit more about how to make a VR game. My advice: you’ll never spend to much time testing, never! Don’t forget to make test on multiple machines and keep an eye on the framerate.
Piece of cake, no?! Or ‘pikuś’, as we say in Poland.