Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity Virtual Reality Projects

You're reading from   Unity Virtual Reality Projects Learn Virtual Reality by developing more than 10 engaging projects with Unity 2018

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788478809
Length 492 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jonathan Linowes Jonathan Linowes
Author Profile Icon Jonathan Linowes
Jonathan Linowes
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Virtually Everything for Everyone 2. Content, Objects, and Scale FREE CHAPTER 3. VR Build and Run 4. Gaze-Based Control 5. Handy Interactables 6. World Space UI 7. Locomotion and Comfort 8. Playing with Physics and Fire 9. Exploring Interactive Spaces 10. Using All 360 Degrees 11. Animation and VR Storytelling 12. Social VR Metaverse 13. Optimizing for Performance and Comfort 14. Other Books You May Enjoy

To get the most out of this book

Before we get started, there are a few things that you'll need. Grab a snack, a bottle of water, or a cup of coffee. Besides that, you'll need a PC (Windows or Mac) with Unity 2018 installed.

You don't need a super powerful computer rig. While Unity can be a beast that can render complex scenes, and VR manufacturers like Oculus have published recommended specifications for PC hardware, you can actually get by with less; even a laptop will do for the projects in this book.

To get Unity, go to https://store.unity.com, select Personal, and download the installer. The free Personal version is fine.

We also optionally use the Blender open source project for 3D modeling. This book isn't about Blender, but we'll use it if you want. To get Blender, go to https://www.blender.org/download/ and follow the instructions for your platform.

Access to a virtual reality head-mounted display (HMD) is strongly recommended in order to try out your builds and get first-hand experience of the projects developed in this book. Although not entirely required, you can use the emulation modes while working in Unity. Depending on your platform, you may need to install additional development tools. Chapter 3, VR Build and Run, goes into details of what you need for each device and platform, including SteamVr, Oculus Rift, Windows MR, GearVR, Oculus Go, Google Daydream, and others.

That should just about do it—a PC, the Unity software, a VR device, other tools described in Chapter 3, VR Build and Run, and we're good to go! Oh, some projects will be more complete if you download the associated assets from the Packt website, as follows.

Download the project assets and example code files

You can download the project assets and example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Unity-Virtual-Reality-Projects-Second-Edition. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."

A block of code is set as follows:

void Update () {
Transform camera = Camera.main.transform;
Ray ray;
RaycastHit hit;
GameObject hitObject;

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

 using UnityEngine;
using UnityEngine.Networking;
public class AvatarMultiplayer : NetworkBehaviour
{
public override void OnStartLocalPlayer()
{
GameObject camera = Camera.main.gameObject;
transform.parent = camera.transform;
transform.localPosition = Vector3.zero;
GetComponent<OvrAvatar>().enabled = false;
}
}

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select System info from the Administration panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image