logo
分类于: 计算机基础 职场办公

简介

Unity Virtual Reality Projects: Explore the world of virtual reality by building immersive and fun VR projects using Unity 3D

Unity Virtual Reality Projects: Explore the world of virtual reality by building immersive and fun VR projects using Unity 3D 0.0分

资源最后更新于 2020-11-20 02:29:23

作者:Jonathan Linowes

出版社:Packt Publishing

出版日期:2015-01

ISBN:9781783988556

文件格式: pdf

标签: 虚拟现实 VR 科技 设计 游戏 2016

简介· · · · · ·

Explore the world of Virtual Reality by building immersive and fun VR projects using Unity 3D

About This Book

Learn the basic principles of virtual reality applications and get to know how they differ from games and desktop apps

Build various types of VR experiences, including diorama, first-person characters, riding on rails, 360 degree projections, and social VR

A project-bas...

直接下载

想要: 点击会收藏到你的 我的收藏,可以在这里查看

已收: 表示已经收藏

Tips: 注册一个用户 可以通过用户中心得到电子书更新的通知哦

目录

Chapter 1: Virtually Everything for Everyone 1 What is virtual reality to you? 2 Types of head-mounted displays 4
Desktop VR 4
Mobile VR 5
The difference between virtual reality and augmented reality 5 Applications versus games 6 What this book covers 9
Who are you? 9
Types of VR experiences 10 Technical skills that are important to VR 11 Summary 12
Chapter 2: Objects and Scale 13 Getting started with Unity 14 Starting a new Unity project 14 The Unity editor 15 The default world space 16 Creating a simple diorama 17 Adding a cube 17 Adding a plane 18 Adding a sphere and some material 20
Changing the scene view Adding a photo
Coloring the ground plane
Measurement tools 25
Keeping a unit cube handy 26 Using a Grid Projector 26 Measuring the Ethan character 29
Importing from the Blender experiment 30 An introduction to Blender 31 A unit cube 34 A UV Texture image 35 Importing into Unity 38 A few observations 39 Summary 40
Chapter 3: VR Build and Run 41 VR device integration software 42 Unity's built-in VR support 42 The device-specific SDK 42 The OSVR project 43 WebVR 43 3D worlds 44 Creating the MeMyselfEye prefab 44 Build for the Oculus Rift 45 Build for Google Cardboard 46 The Android setup 47 The iOS setup 47 Installing the Cardboard Unity package 47 Adding the camera 48 The build settings 48 The Play Mode 49 Building and running in Android 49 Building and running in iOS 50 The device-independent clicker 50 How virtual reality really works 52 Stereoscopic 3D viewing 52 Head tracking 56 Summary 58
Chapter 4: Gaze-based Control 59 Ethan, the walker 60 Artificially intelligent Ethan 61 The Navmesh bakery 62 A random walker in the town 63 Interlude – a quick introduction to Unity programming 63
The RandomPosition script 66
"Zombie-ize" Ethan! 68
Go where I'm looking 69
The LookMoveTo script 70 Adding a feedback cursor 72 Observations 73
If looks could kill 74
The KillTarget script 74 Adding particle effects 77 Cleaning up 79
Summary 79 Chapter 5: World Space UI 81 A reusable default canvas 83 The visor HUD 87 The reticle cursor 89 The windshield HUD 91 The game element UI 93 The info bubble 96 An in-game dashboard with input events 99 Creating a dashboard with buttons 100 Linking the water hose to the buttons 103 Activating buttons from the script 104 Look to highlight a button 106 Looking and then clicking to select 108 Looking and staring to select 109 A responsive object UI with head gestures 111 Using the head position 111 Using head gestures 113 Summary 117 Chapter 6: First-person Character 119 Understanding the Unity characters 120
Unity components
The Camera component
The Rigidbody component
The Character Controller component
Unity Standard Assets ThirdPersonController AIThirdPersonController FirstPersonController RigidBodyFPSController
Making a first person 125
Move in the direction you're looking 126 Keep your feet on the ground 127 Don't pass through solid objects 127 Don't fall off the edge of the world 129 Stepping over small objects and handling uneven terrain 130 Start and stop moving 130 Using head gestures to start/stop 131
User calibrations 132
A character's height 132 Real-life height of a player 135 Recentering 136
Maintaining a sense of self 136
Head-body disconnect 136 Head and body... 137 ...And feet 138 The body avatar 140 Virtual David le nose 141 Audio cues 143
Locomotion, teleportation, and sensors 144 Managing VR motion sickness 146 Summary 148
Chapter 7: Physics and the Environment 149 Unity physics 150 Bouncy balls 152 Headshots 156 Trampoline and brick 160 A human trampoline 162
Like a brick 162
Like a character 163
Interlude – environment and things 167
Wispy Sky
The planet Earth
The corporate logo Blender
Unity
An elevator Jumping Summary
Chapter 8: Walk-throughs and Rendering 175 Building in Blender 176 Walls 176 Ceiling 181 Assemble the scene in Unity 184 The gallery room 184 The artwork rig 185 The exhibition plan 188 Adding photos to the gallery 190 An animated walk-through 193 Unity's animation system 193 Scripted animation 194 Optimizing for performance and comfort 196
Optimizing your implementation and content 198 Simplify your models 198 Using texture maps instead of complex meshes 198 Limiting the objects to be drawn 199 Lighting and shadow performance 199 Optimizing your scripts 200
Optimizing for the Unity rendering pipeline 200 Life's a batch 200 Multipass pixel filling 202 Other rendering tips 203
Optimizing for the target hardware and drivers 203
Unity Profiler
Summary
Chapter 9: Using All 360 Degrees
360-degree media
Crystal balls
Magic orbs
Panoramas
Infographics Equirectangular projections Globes
Photospheres
Field of view – FOV
Capturing a 360-degree media Summary
Chapter 10: Social VR Metaverse 229 Multiplayer networking 230 Networking services 230 The network architecture 231 Local versus server 232 The Unity networking system 234 Setting up a simple scene 235 Creating a scene environment 235 Creating an avatar head 236 Adding multiplayer networking 238 Network Manager and HUD 238 Network Identity and Transform 238 Running as a host 239 Adding spawn positions 239 Running two instances of the game 240 Associating avatar with the first-person character 241 Adding multiplayer virtual reality 243 The Oculus Rift players 243 The Google Cardboard players 245 Next steps 247 Building and sharing a custom VRChat room 248
Preparing and building the world
Host the world
Summary
Chapter 11: What's Next? Index