A_Glance_into_Virtual_Reality_Development_Using_Un
A_Glance_into_Virtual_Reality_Development_Using_Un
net/publication/328136036
CITATIONS READS
17 4,845
1 author:
Cosmina Cosmina
Bucharest University of Economic Studies
1 PUBLICATION 17 CITATIONS
SEE PROFILE
All content following this page was uploaded by Cosmina Cosmina on 15 February 2021.
Cosmina ISAR
The Bucharest University of Economic Studies, Romania
[email protected]
Coming from the 2D and 3D games that everybody is very familiar with, these days the world
has been taken by storm with the introduction of virtual reality technology. In this paper I cov-
ered the essence of this new empowering technology through things like: a short representative
definition and classification, the hardware requirements for stepping into the VR world, and
the most important aspect which is the applicability of this technology in the society that we
live in. Also, the main purpose of this paper was to identify which VR game engine a beginner
should be using for their first project. Through the research that has been done in this article,
I come to the conclusion that the most suitable game engine in this case is Unity. To further
prove my statement, I developed a small project that consists of a 3D VR maze which shows
how easy it is to learn and develop using Unity.
Keywords: Virtual reality, Unity, Game engine
1 Introduction
Nowadays, virtual reality is known as the
technology that allows for replacing the real
people can explore and interact, thus making
them feel like they are there, both physically
and mentally.
world by a synthetic one, inducing users the In other words, virtuality represents a world
feeling of being in another world [1]. The that is:
most representative type of application that Computer-generated – this part of the equa-
truly makes someone feel that way, is known tion represents a very important factor in
as a VR game. Thus, virtual reality and digital generating a 3D world, because only pow-
games are two area which share many similar erful enough computers can make the expe-
characteristics among which the most im- rience more immersive and believable;
portant are: both of them exploit the techno- Believable – for the VR experience to be
logical breakthroughs of several fields like induced, users really need to feel like they
electronics, computer power etc., and also, are in that generated world, so the illusion
they focus on creating the best possible realis- of virtual reality will fade to back;
tic 3D environments [2]. Interactive – to mimic the reality that we
My contribution on this paper is to help some- live in, users of virtual reality should be
one who has never developed a VR game able to interact with the elements that are
choose the best game engine and, at the same present in the computer-generated world,
time, because of the higher demand in this so the experience gets fulfilled;
technology, to widespread the interest in this Immersive – to assure a great connection
area. Furthermore, to prove the easiness of de- between believable and interaction, virtual
veloping in virtual reality I will describe, reality has to engage both body and mind
based on an example, the steps necessary for of users. Even though VR promises a very
making a simple VR game. realistic alternative to our real world, in the
current state it faces some limitations like:
2 Overview of virtual reality smell, fell and taste;
Virtual reality (VR), also known as virtuality Explorable – as we can explore the sur-
[3], is a technology that involves experiencing roundings in our world, the VR should give
various things through our computers, things us the same level of freedom. In other
that don’t actually exist. In other words, vir- words, the VR scene should embrace the
tual reality also represents a believable, inter- same level of complexity and detail as the
active 3D computer generated world in which real world.
DOI: 10.12948/issn14531305/22.3.2018.02
Informatica Economică, vol. 22, no. 3/2018 15
DOI: 10.12948/issn14531305/22.3.2018.02
16 Informatica Economică, vol. 22, no. 3/2018
through the use of augmented reality technol- different places to join in a more complex op-
ogy. The first project of this type was called eration and collaborate together to resolve the
“GROPE” and it was introduced in 1960s at case.
the University of North Carolina and it was
about exploring the interactions between pro- 5 Virtual reality in gaming
tein molecules and drugs [4]. In the past few years, because of the higher
demand for VR games, more and more com-
4.3 Games and entertainment panies started to invest in developing specific
When it comes to gaming and entertainment, gadgets for this technology. Right now, in the
VR has become more widespread than the VR game industry there are two main compet-
other categories mentioned above. At the itors Oculus Rift and HTC Vive. For a visual
same time, in these domains, virtual reality is representation of them see Figure 1 and Figure
rapidly evolving compared to the others, 2.
mainly because there is a higher demand and The Oculus Rift is a virtual reality headset de-
also because these types of applications are veloped and manufactured by Oculus VR
easier to develop. which is a division of Facebook Inc. It was re-
leased on March 28, 2016. This device has a
4.4 Medicine Pentile OLED display with the resolution of
Since 2009 with the introduction of daVinci 1080x1200 for each eye, a refresh rate of 90
surgical robot, VR has extended it’s uses to Hz and a field of view of 110 degrees. At the
medical world. This robot is basically a pair of same time, it has a pair of audio headphones
four arms that are controlled by a surgeon re- which are tuned to provide a 3D audio effect.
motely through special VR equipment. This Oculus Rift also has a positioning tracking
make it possible for other surgeons situated in system and two ergonomically designed con-
trollers [5].
The HTC Vive is also a VR headset developed Oculus Rift with the only different factor be-
by HTC and Valve Corporation and it was re- ing the ability to allow users to move in a
leased on April 5, 2016. It has almost the same larger area [6].
configuration of hardware accessories as the
DOI: 10.12948/issn14531305/22.3.2018.02
Informatica Economică, vol. 22, no. 3/2018 17
Using all this technology some major compa- ers. First of all, the main programming lan-
nies have already released a great collection of guage that Unity uses is C#, a language that is
VR games, among which: easy to learn, versatile, object oriented and
Oculus Rift: Eve: Valkyrie, Lone Echo, complex. When it comes to Unreal Engine or
Wilson’s Heart, The Unspoken, Feral CryEngine, the programming language that is
Rites, etc. used for developing on these platforms is C++
HTC Vive: Arizona Sunshine, Superhot, which is more sophisticated and harder to
Fallout 4, L.A. Noire, Project Cars, The learn being especially used by professional
Gallery, etc. developers who want a certain level of flexi-
bility.
6 VR games development Alongside having a friendly user interface that
To develop a VR ready game, a developer is easy to use and explore, Unity also provides
should take into consideration one of the fol- its users with high quality tutorials as well as
lowing game engines that fully support this a structured documentation which can be
type of technology: Unity, Unreal Engine, found easily on their website. In addition, for
CryEngine, AppGameKit VR, libGDX, Aper- a beginner, finding assets for their projects can
tusVR, Torque3D, Urho3d, CopperCube and represent a difficult task, but this game engine
Skyline. Three of the most popular VR game has an integrated Asset Store in which the
engines from the list above are Unity, Unreal community can share assets that they create.
Engine and CryEngine. Another advantage of using Unity over an-
For a complete beginner in VR gaming world other game engine is that it has the ability to
the most suitable game engine from the enu- compile the games for a large variety of plat-
meration above can definitely be Unity. Mov- form such as: Oculus Rift, HTC Vive, Gear
ing along this chapter we will discuss the ben- VR, Daydream, etc. In Figure 3 are presented
efits of using Unity game engine over the oth- all the platforms supported by Unity for vir-
tual reality.
7 A small glance into VR development in which the player is able to move forward,
Through this paper we will see how a small stop and turn left or right, are presented below.
VR game can be created with ease by using First things first, we will import the Google
the Unity game engine. The steps necessary VR for Unity plugins into a blank Unity pro-
for realizing a basic virtual reality 3D maze, ject. Then, we are going to delete the default
DOI: 10.12948/issn14531305/22.3.2018.02
18 Informatica Economică, vol. 22, no. 3/2018
camera object and replace it with GvrMain added a simple plane as our ground and a sky-
from the imported plugins. Moving along, we box which we took from the Asset Store (see
Figure 4 and Figure 5).
For creating the maze, we downloaded a maze by simply changing their dimensions accord-
template from the Internet, we applied it on ing to the template.
the plane (see Figure 6) and we started creat-
ing the walls (see Figure 7) using simple cubes
DOI: 10.12948/issn14531305/22.3.2018.02
Informatica Economică, vol. 22, no. 3/2018 19
Fig. 6. Unity scene view (plane, skybox and maze template applied)
Fig. 7. Unity scene view (plane, skybox and maze template applied with constructed 3D
walls)
At the same time, we downloaded a grass tex- walls and the plane (see Figure 8).
ture from the Internet and we added it to the
DOI: 10.12948/issn14531305/22.3.2018.02
20 Informatica Economică, vol. 22, no. 3/2018
Next up we added a “Rigidbody”, a Capsule store the staring position, so if the player fin-
Collider and a C# Script named Controller ishes the maze he will be positioned at the
(see Figure 10) to our GvrMain object, so we starting point (see Figure 9). Figure 11 shows
make it behave like a character. In the added the final result of the project.
script we made the character walk automati-
cally and stop if it looks down, and also, we
DOI: 10.12948/issn14531305/22.3.2018.02
Informatica Economică, vol. 22, no. 3/2018 21
Fig. 10. The components added to the character in the Inspector Panel
Fig. 11. Unity scene and game view of the final result
DOI: 10.12948/issn14531305/22.3.2018.02
22 Informatica Economică, vol. 22, no. 3/2018
Cosmina ISAR has graduated The Faculty of Cybernetics, Statistics and Eco-
nomic Informatics from The Bucharest University of Economic Studies in
2016. Currently she is studying for a Master degree in Economic Informatics
at The Bucharest University of Economic Studies. Her current research fo-
cuses on game development using the Unity game engine. Other fields of in-
terest include mobile devices, IoT and multimedia.
DOI: 10.12948/issn14531305/22.3.2018.02