We all heard about virtual reality, how cool it is and what we can do with it and how it's becoming a major thing in the days to come. But what if, instead of playing with other persons projects you build your own ?
The goal of this course is to give you the knowledge needed to start building your virtual reality projects using simple assets ( Google's Cardboard and a gampead) with Unity 3D software so you can also be part of this new revolution.
I have been developing virtual reality experiences since 2014 and although I work as a CTO virtual reality is still one of my favorite hobbies and this course helps me to share with the rest of the world what I learned and help others improving their skills.
If you still have doubts about this course and if you are going to do what you want we can do this: from time to time I will ask students what virtual reality project they would like to develop and I will make lessons about it, and yes there's no extra charge for that because you are already enrolled, ready do jump in ?
New lessons on how to build a virtual museum tour where the user interacts with the game objects via head movement and lesson on how to create SQL database connection and query to your Unity projects.
Create a new Unity project, import environment the first person character package and the model.
Latest Google's VR cardboard Unity integration from https://developers.google.com/vr/unity/download
Android build module in the Unity project go to File -> Build -> Android and download the files needed to perform the build.
And the Android SDK https://developer.android.com/studio/index.html
If you are having issues downloading the Java SDK from the site download it from Android Studio directly.
If the screen isn't totally filled try to place your cellphone horizontally.
We are not using Unity Remote 4 because it's mainly focused on small tests for small projects and we won't have all the features such as gyroscope to keep the head tracking.
Nevertheless if this is update we can add this feature to our projects.
Most gamepads are plug and play in Unity 3D however you might want to configure some keys you can get more info about it at http://docs.unity3d.com/Manual/ConventionalGameInput.html if you still have problems leave a messago so I can help.
You can use a micro USB -> female USB adapter to connect your cellphone to a gamepad directly, you can check some pictures of my adapter on the article.
If you want to start or check the uploaded Unity packages you need to create a new Unity 3D project and inside that project go to Assets -> Import Package -> Custom Package select the file import it and open the scene.
Links for the models used in the project:
Take a quick look at the final project that we are going to build.
We need a really big terrain for this project (1500x1500) meters but take into account the device where you are going to play the project, bigger terrains require more device power.
Psst! click SHIFT when moving around with the camera, you will go faster.
Create an empty game object, place a plane and the specter image onto it.
Uncheck the 'play on awake' of the scream.
You can download a final version of the .APK and a version that you can also play on your PC and the final Unity Project assets.
We are going to use a scene from unity store since it takes a little to download and import I already did that for you, so you just need to import the start asset, nevertheless this is the link www.assetstore.unity3d.com/en/#!/content/49377utm_source=unity3d&utm_medium=blog&utm_campaign=courtyard .
We are going to apply some changes to the scene and then import the VR headset package, instead of creating from the VR framework project like we did on the previous projects.
Almost every virtual reality project uses the player’s head movement to interact with the digital world. Since the goal of this course is to approach the main of virtual reality interaction it was more than time to make some new lessons.
The user will be on a museum corridor scene where he can control the character movement by using the gamepad and interact with the paintings by looking at them.
As the player stares at a painting a icon will appear and will start loading, if the player keeps on looking: the new scene will open if he stops looking it won’t.
Since the player enter the paint scene he will be able to go directly to another painting by looking at the forward ou backward button, this way a gamepad is not mandatory for the project.
This project will also be more technologically advanced because we will code a script that fetches the arts info from a SQL database.
A user can interact with the gameobject by hovering it but we want to give the option to not opening the scene if he changes his mind.
Select the frame and on Event Trigger add an event Pointer Exit and choose Teleport.OnGazeExit
We will add the following to the teleport script:
Line 27: Coroutine routine = null;
Line 48: routine = StartCoroutine (checkLoad (objectToLoad));
Line 104: StopCoroutine (routine);
This simple lines will set a variable with our coroutine and when the user stops looking at the gameobject it will simply stop the routine, apply this to all interactive materials.
Also make sure that the arrows have the appropriate name of the scene.
The main goal with this ‘new’ lesson is to enrich this course because I don’t do courses just to make money, I do them so I can make more courses.For this to happen the main goal is your satisfaction and your feedback is really.important to help me make things better than I did yesterday.
Hope you enjoyed this new lesson and you are more than welcome to drop me a line. Happy coding !
Hey, my name is João Dessain Saraiva and I am developer from Portugal. I been coding since 2001 and playing video games since I was 8, started in a ZX Spectrum all the way to the last Xbox and even my master degree project in design and multimedia was an immersive ski video game that uses a Oculus Rift headset and a Leap device to control the movements of the character.
Udemy now gives me the chance to share some of my knowledge and expertise in Unity 3D, video games and Virtual Reality however I also intend to learn a lot more from the community and keep improving as I teach.