VIRTUAL REALITY: CREATING VIRTUAL WORLDS THROUGH UNITY

by

TRON REVIVAL

Virtual reality is back! It firstly appeared in the 1990s, also driven by the cyberpunk fashion that, at that time, became famous among the general public thanks to W.Gibson’s novels or films, as “The Lawnmower Man” (1992), Strange Days (1995) and others. However, virtual reality disappeared very quickly and without great regrets. For a couple of years now, though, new headsets and renewed promises of revolutionary experiences has forcefully come back in the market. Will this be the right time?

The flop at the end of the millennium is very easily explained. It was clear, after several attempts, that, back then, the technology was not yet ready to create an acceptable and cheap experience at the same time. In order to give a plausible experience, the headset must show a complex universe, and that universe must rapidly respond to the interactions and movements of the cybernaut. The computers, at that time, simply could not do it. Moreover, the production of a helmet equipped with gyros, high resolution screens and easily wearable was not conceivable. The suggestions of books and films crumbled before the poverty of what the market offered. The Virtual Boy project, console produced by Nintendo, is representative, as up to date it represents one of the biggest failures in the Japanese company’s history.

virtual reality applications

Over the last two years the theme has come back in the spotlight, thanks to the technological evolution that, albeit with some limit, allows interesting solutions under 1000 euros, but especially thanks to the interest of some market leaders like Sony or HTC. They have presented their solutions for the customer market, that can finally provide a fairly convincing experience.

At the moment, it is still unclear whether the virtual reality will eventually be successful. The price, however, is still not affordable for everyone. Moreover, these devices will have to deliver quality content that can convince the general public, in order to achieve success. Device technology is not as important as the quality and quantity of experience that this device can offer. This has given rise to the need to create tools that enable software developers to make virtual representations in a simple and standardized way, reducing production costs without affecting the quality of the final product.

UNITY ENGINE

Virtual reality relies entirely on the science of three-dimensional representation. In order to give the impression of spatiality, the headset must reproduce two slightly different three-dimensional images, that are sent to one eye respectively. This process must be repeated at least sixty times per second to create a credible experience. In addition, the device must react to the head (and body) movements to consistently update the eye view.

virtual reality solutions

Figura 3: the headseat shows two images, one per eye, which are slightly different.

Compared with what was happening more than twenty years ago, today’s video cards on our computers have powerful features for three-dimensional representation. The development of this technology has had an exponential explosion thanks to the video game market that now uses 3D as the standard for rendering game environments.

Along with the hardware development, the videogame world has also led to the emergence of several software solutions that help and greatly simplify content development. It is not surprising, then, that the same tools are now the standard for creating worlds for virtual reality. In fact, several video game producers are experimenting VR within their titles.

There are several products on the market (which are called motors), some of them are paid, others are free. The most notable ones are Unreal Engine, Cry Engine, Unity, Source, and each one of them has now introduced compatibility with the virtual reality and the headsetss that are now available on the market.

In this article we will briefly illustrate the Unity motor, which has become, over time, the reference to all “indie” productions (small development groups without a big publisher behind it) due to its really small price. Unity, in fact, is totally free, even if it is used for commercial purposes until the titles created create earnings equal to or more than one hundred thousand dollars.

Unity is a multi-platform development environment: content can be created using a PC with Windows or Mac, but can be installed on any device available on the market: computers, tablets (Android or iOS), consoles, etc.

To download the development environment just clic this link and then select the “Personal” version.

virtual reality solutions

The installation procedure is very simple even though it is particularly long. Once finished, you will need to start the program and the following home page will appear.

virtual reality solutions

From this point, just press “NEW”, give a name to the project you want to create, leaving the “3D” option on, and press on “Create project”.

Virtual reality solutions

Once it is done, you will finally see the work environment you can create everything you want from.

Virtual reality solutions

The development on Unity takes place both in visual view, using its user interface, and/or by programming, using either the C# or Javascript language. In order to create sophisticated content, you must use both approaches, and in any case, basic knowledge of object programming is required. Fortunately, Unity published for the developers, a complete (and free) documentation, as well as a series of very simple and clear tutorials that can help every beginner to take the first steps.

Personally, I strongly suggest you try at least two of them:

  1. Roll-a-ball tutorial: an introduction to the very simple environment that is useful to gain confidence with the tool. It is, although, also showing its strengths as the physical engine.
  2. Space Shooter tutorial: An interesting project that will allow you to make a real video game and deepen some of the crucial aspects of Unity. At the end of this tutorial, you’ll be able to begin creating your own content.

And of course, to explore the typical aspects of virtual reality, it’s imperative to read this tutorial.

WHAT ELSE DO YOU NEED FOR VIRTUAL REALITY?

While being a complete and mature suite, you will need at least two other tools to create quality content:

  1. a three-dimensional modeler, to create the geometry of your world,
  2. a two-dimensional editor for geometry texture.

Unity provides a set of pre-packaged simple objects (cubes, spheres, cylinders and others) that are clearly not enough to create a credible universe. Two great tools that can be used, and completely free of charge, are:

  1. Blender: for 3D modeling
  2. Gimp: for image editing

Blender use is not really simple and would require only a series of insights to unleash and exploit its entire potential. Fortunately there are also an infinite number of videos, courses, and totally free documentation for it. Alternatively, Unity offers a shop where you can buy a whole range of articles created by artists and developers, including 3d models, textures and more. Some of them are even available free of charge.

And of course, you need a virtual reality headset 😉 …

Latest articles

AI, MACHINE LEARNING, IOT. MY DAY AT AWS SUMMIT 2023

AI, MACHINE LEARNING, IOT. MY DAY AT AWS SUMMIT 2023

On Thursday, June 22, I was at the Milan Convention Center at the annual event organized by Amazon Web Services to promote its evolving Cloud services: AWS SUMMIT. Amidst so much IoT, Servitization, Cloud Computing above the clouds (in space!), and Supercomputing, one...

TECHNOLOGY AND SUSTAINABILITY: A CONVERSATION WITH ERIC EZECHIELI

TECHNOLOGY AND SUSTAINABILITY: A CONVERSATION WITH ERIC EZECHIELI

Sustainability cannot simply be a word that is tossed around in our daily conversations without meaningful action behind it. Technology has a critical role to play in helping companies achieve their sustainability goals. Recently, we had a lengthy conversation with...

HOSPITALITY 4.0: UP TO SPEED WITH THE DIGITAL TRANSITION

HOSPITALITY 4.0: UP TO SPEED WITH THE DIGITAL TRANSITION

The Hospitality industry is constantly changing and is a crucial component of the global economy. However, the pandemic has presented numerous difficulties for the industry, such as making reservations and sanitizing environments, which have required industry...