Building Virtual Reality with Unity and Steam VR:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
London
Routledge
2017
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XXVI, 326 Seiten Illustrationen |
ISBN: | 9781138033511 9781138051249 |
Internformat
MARC
LEADER | 00000nam a22000001c 4500 | ||
---|---|---|---|
001 | BV044353802 | ||
003 | DE-604 | ||
005 | 20180111 | ||
007 | t | ||
008 | 170619s2017 a||| |||| 00||| eng d | ||
020 | |a 9781138033511 |c Paperback |9 978-1-138-03351-1 | ||
020 | |a 9781138051249 |c Hardback |9 978-1-138-05124-9 | ||
035 | |a (OCoLC)1019716904 | ||
035 | |a (DE-599)BVBBV044353802 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-M347 | ||
084 | |a ST 323 |0 (DE-625)143659: |2 rvk | ||
100 | 1 | |a Murray, Jeff W. |4 aut | |
245 | 1 | 0 | |a Building Virtual Reality with Unity and Steam VR |c Jeff W. Murray |
264 | 1 | |a London |b Routledge |c 2017 | |
300 | |a XXVI, 326 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a Computerspiel |0 (DE-588)4010457-6 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Virtuelle Realität |0 (DE-588)4399931-1 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Virtuelle Realität |0 (DE-588)4399931-1 |D s |
689 | 0 | 1 | |a Computerspiel |0 (DE-588)4010457-6 |D s |
689 | 0 | |8 1\p |5 DE-604 | |
856 | 4 | 2 | |m HEBIS Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029756508&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-029756508 | ||
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk |
Datensatz im Suchindex
_version_ | 1804177596296986624 |
---|---|
adam_text | Building Virtual Reality
with Unity and SteamVR
Jeff W Murray
CRC Press
Taylor amp; Francis Group
Boca Raton London New York
CRC Press is an imprint of the
Taylor amp; Francis Group, an informa business
AN A K PETERS BOOK
Contents
Acknowledgments, xix
Author, xxi
Introduction, xxiii
Prerequisites, xxv
Chapter 1 ■ A Brief Introduction to the Virtual World_1_
HOW LONG HAVE WE BEEN VIRTUAL? 1
BEFORE THE HEADSET 2
THE BIRTH OF THE HEAD-MOUNTED DISPLAY 3
THE ROAD TO CONSUMER VIRTUAL REALITY 5
HOME PC VR 6
CONSUMER VR REBIRTH 6
WHAT DOES NOT WORK ABOUT VR? 8
Latency 8
Juddering and Smearing 8
The Screen Door Effect 9
VR Sickness 10
What Sorts of Experiences Can We Expect? 10
Development Kit 1 10
Development Kit 2 12
Consumer VR: Rift CV1 and the HTC Vive 13
CAN I GO INSIDE THE COMPUTER, LIKE TRON? THE
COMPLICATIONS AND CHALLENGES VR IS FACING 13
vii
viii ■ Contents
Motion Tracking and Motion Capture for Input 14
Haptic Feedback 15
Eye Tracking 16
Space and Movement 16
Making Content Inside VR 17
DESIGNING AND DEVELOPING FOR VIRTUAL REALITY 18
Plan: Any Sort of Plan Will Do 18
Get Your Main Interactions in Place Early 19
Test on Real People 19
Look for Combination and Flow 20
Realism Is Not Always the Most Realistic 20
RECAP 20
Chapter 2 - Setting Up Your Hardware for the First Time 23
WHAT HARDWARE AND SOFTWARE ARE YOU GOING
TO NEED? 23
HTC VIVE Recommended Specifications 24
OSVR HDK Recommended Specifications 25
Rift Recommended Specifications 25
Compatibility Tools 26
The SteamVR Performance Test Tool 27
The Rift Compatibility Tool 27
OSVR Compatibility 28
Dealing with Compatibility Tool Results 28
Graphics Cards 29
USB Ports 29
INSTALLING SteamVR 29
Install the Steam Client 30
Set Up a Steam Account 30
Install SteamVR 30
GENERAL INSTALLATION HINTS AND TIPS (FOR ALL
DEVICES) 31
Contents ■ ix
Make Room for Your Motion Tracker(s) 31
Non Room-Scale VR with a Single Station/Motion Tracking
Camera 31
Room-Scale VR/Multiple Positional Tracking Cameras 31
Organize Your Environment to Clear Some Space! 31
Walls: Try to Avoid Them 32
What Is Interpupillary Distance and Why Should I Care? 32
Real IPD 33
Virtual IPD 33
INSTALLING YOUR VR HARDWARE 34
HTC Vive Installation Instructions 34
Potential Issues/Fixes 37
OSVR HDK Installation Instructions 38
Potential Issues/Fixes 41
Rift Installation 42
SETTING UP SteamVR 43
Party! SteamVR Is Set Up! 44
FINDING YOUR VR LEGS 44
SOME COMFORTABLE VR EXPERIENCE
RECOMMENDATIONS 45
HTC Vive 45
OSVR 46
Rift 46
STAYING AWARE FOR A HEALTHY VR EXPERIENCE 47
Knowing When to Stop (the Telltale Signs of Oncoming VR
Sickness) 47
Dry Eyes 48
Sweating 48
Aching 48
Nausea 49
Headache 49
Take Breaks 49
x ■ Contents
Eat, Drink, and Be Virtually Merry! 49
Do Not Break Your Back Making VR Things! Test Carefully 50
RECAP 51
Chapter 3 - Setting Up a Unity Project for SteamVR 53
DOWNLOAD UNITY AND MAKE A NEW PROJECT 53
UNITY EDITOR CRASH COURSE 54
Editor Views and Panels 54
Terminology and Common Use Things 57
CREATING A NEW UNITY PROJECT 60
DOWNLOADING SteamVR LIBRARIES FOR UNITY 60
A ROOM WITH A (VR) VIEW 66
Make a New Scene in Unity 66
Copy in the Models from the Example Files 66
Add a New GameObject 66
Add the Garden Model to the Scene 67
Add the House Model 69
Setting Up the VR Camera Rig 70
Digging into the SteamVR Camera Rig 71
Test the Scene 73
VR Environment Scale 73
Scale the Garden Model 74
SteamVR CAMERA POSITIONING AND REPOSITIONING 75
SAVE THE PROJECT AND KEEP BACKUPS! 77
RECAP 77
Chapter 4 - Adding Interaction 79
ADD THE INTERACTION FRAMEWORK TO YOUR PROJECT 80
ADDING A RETICLE FOR AIMING 80
Adding a UI Canvas 80
Making a Canvas Suitable for VR 81
ADD VR Eye Rayc aster AND RETICLE
COMPONENTS TO THE CAMERA 85
Contents ■ xi
Setting Up Inspector References 86
Stop the Reticle from Clipping 87
ADD A DOOR TO THE SCENE 88
MAKE THE DOOR INTERACTIVE 89
Create a Door Controller Script 90
Script Breakdown 92
ADD A BOX COLLIDER FOR THE DOOR HANDLE 97
SET UP REFERENCES ON THE DOORCONTROLLER
COMPONENT 99
SAVE YOUR WORK! 100
RECAP 100
Chapter 5 Building User Interface for Headset and
Game Controller 101
MAKING A MAIN MENU SCENE 101
Open the Example Project 102
Create a Canvas for the User Interface to Be Drawn On 102
Add a UI Movement Component to the Canvas 103
Building a Button 105
Add a UI Slider to Show Button Progress 106
Change Slider Background Color 108
Change Fill Color 108
Resize the Slider 108
Resize the Background Image 109
PROGRAMMING A C# BUTTON SCRIPT 111
Script Breakdown 112
ADD A REFERENCE FOR THE VR_BUTTON
COMPONENT TO USE 117
ADD A TEXT LABEL TO THE BUTTON TO SHOW
WHAT IT DOES 118
TEST THE BUTTON 121
ADD A SECOND BUTTON TO THE MENU SCENE 121
Duplicate the Button 121
xii ■ Contents
Change the Text Label 121
ADD BEHAVIORS TO THE BUTTONS 121
Add a Main Menu Controller GameObject to the Scene 121
Making a Main Menu Script 122
Script Breakdown 122
Add Event Functions to the Menu Buttons 123
ADD SCENES TO BUILD SETTINGS 124
TEST THE MENU 125
SAVE YOUR WORK! 127
VR User Interface Design Tips 127
RECAP 128
Chapter 6 - Moving around the Virtual World with the
SteamVR Teleportation System 129
SETTING UP THE SCENE FOR TELEPORTATION 130
Create Colliders for Teleport Ground Position Detection 130
Setting Up Layers 135
Set Up the Camera Rig and Add Components 135
WRITING A Ot SCRIPT TO PROVIDE INPUT TO THE
TELEPORTER 137
Script Breakdown 139
MODIFY THE SteamVR TELEPORTER CODE 144
Change DoClick() into a Public Function 144
Modify SteamVR Teleporter to Use a LayerMask 144
SET UP THE COMPONENTS ON THE CAMERA
GAMEOBJECT 147
Set Up ControllerTeleportlnputProvider 147
OPTIONAL EXTRAS 147
RECAP 148
Chapter 7 - Using the Headset for Aiming in a Game 149
ATTACHING A PROJECTILE FIRING SYSTEM TO THE
CAMERA 149
Contents ■ xiii
ADD A SCRIPT TO THE CAMERA TO GRAB PLAYER INPUT 151
Programming a SprayInputProvider es script 152
Script Breakdown 152
ADD A SCRIPT TO THE SPRAY CAN TO MAKE IT FIRE 153
Programming the SprayShooter es Script 154
Script Breakdown 155
SET UP COMPONENTS IN THE INSPECTOR 156
TRY OUT THE GAME 157
RECAP 157
Chapter 8 - Making the Most of Virtual Reality
with Audio 159
THE VIRTUAL REALITY SPACE AND BEYOND 159
COMMON TERMS 160
Ambient Sound 160
Listener 160
Binaural Audio 160
Mono Sound 161
3D Sound 161
Doppler Effect 161
Set the Scene with Ambient Sound 161
THE AUDIO SOURCE COMPONENT 162
ADD AMBIENT AUDIO TO THE SCENE 164
Bringing Life to the World with Audio 168
ADD SOUND TO THE INSECTS 168
Add the Audio Source Component to the Insect 169
ADD SOUND TO THE SPRAY 170
Add Music 170
ADD AN AUDIO SOURCE TO THE CAMERA 170
Whimsical and Fun 171
Fast Paced and Exciting 171
Unity Audio Mixers and Effects 171
xiv ■ Contents
CREATE AN AUDIO MIXER 172
The Audio Mixer Window 172
Mixers 172
Snapshots 172
Groups 173
Views 173
Setting Up Mixers in the Audio Mixer Window 173
ADDING MIXER GROUPS 174
SETTING AUDIO SOURCES TO USE THE AUDIO MIXER
GROUPS 175
TESTING AND MIXING AUDIO 176
Audio Ducking 177
Send and Receive 178
Audio Ducking Settings 178
Other Effects 179
SAVE THE PROJECT 180
RECAP 180
Chapter 9 - HTC Vive Motion Controllers 181
HOW WE INTERACT WITH THE VIRTUAL WORLD 181
HTC VIVE CONTROLLERS 181
Try Out the SteamVR Interaction System Example Scene 182
Tips for Designing Room-Scale VR Controls 182
PICKING UP AND DROPPING IN VR WITH THE VIVE
CONTROLLERS 184
Adding Vive Controllers to a Unity Scene 185
The PickUp cs Script 186
Script Breakdown 190
Adding Haptic Feedback 202
Modifying the PickUp Class to Include Feedback 206
USING THE SteamVR INTERACTION SYSTEM FOR USER
INTERFACE 208
Create a New Project and Import SteamVR 209
Contents ■ xv
Create a New Scene and Add a Player Prefab 209
Make a Simple UI Canvas and Button to Try Out 209
Try It Out in VR 212
USING VIVE CONTROLLERS FOR TELEPORTING AROUND
THE VIRTUAL WORLD 212
Create a New Project and Import SteamVR 212
Create a New Scene and Add a Player Prefab 212
Beam Yourself Up! 214
RECAP 214
Chapter 10 Using Hands for Input Systems 215
LEAP MOTION VR 215
The Leap Motion VR Mount Kit 216
Downloading Leap Motion Orion Drivers and Software 217
Connect the Headset and Try Out the Visualizer 217
Download Leap Motion Unity Packages 218
Setting Up the Unity Project for Interaction Engine and Leap
Motion 218
Hands-On in the Virtual World 219
Programming to React to Piano Key Presses 221
Script Breakdown 222
Potential Issues 226
NOITOM PERCEPTION NEURON MOCAP 227
Installation and Downloads 227
Install Axis Neuron 227
Set Up the Motion Capture Suit 228
Play with the Example Project 231
Set Up a Unity Project 231
Using a Full Body Perception Neuron Motion Capture Suit 235
Potential Issues 236
Error in Unity 236
View Obscured by Robot Head 237
RECAP 238
xvi ■ Contents
Chapter 11 - Handling the Camera Rig for Seated or Static
______________VR Experiences_________________________________239
DRIVING A SIMPLE VEHICLE IN VR 240
Open the Example Project 240
Setting Sitting or Standing Calibration in Code 241
Script Breakdown 243
Parenting the Camera to the Vehicle 247
WHAT IS THIRD PERSON AND IS VIRTUAL REALITY
REALLY THE RIGHT PLACE FOR THIRD-PERSON VIEWS? 247
EXTERNAL CAMERA FOR FOLLOWING THE VEHICLE 247
Open the Example Project 248
Set Up the Camera Rig 248
Add a Camera Script 248
Save 250
Preview the Scene 250
RECAP 250
Chapter 12 ■ Virtual Reality Sickness________________________253
WHAT IS VIRTUAL REALITY SICKNESS? 254
Personal Experience 254
VR Sickness Symptoms and Cues 255
Vection 255
Field of View 256
Inter-Pupillary Distance 256
Illness 257
Motion 257
Age 257
Frame Rate 257
Depth Perception 258
Rate of Linear or Rotational Acceleration 258
Positional Tracking Errors 258
Sitting versus Standing 258
Contents ■ xvii
CAN WE SOLVE IT? 259
RECAP 259
Chapter 13 - Hands-on, Practical Techniques for Reducing
VR Sickness in Unity 261
USING A Ul OVERLAY FOR FIELD OF VIEW REDUCTION 261
Open the Example Project 262
The FOV Mask 262
Programming the Dynamic Scaling Script 263
Script Breakdown 265
Try Out the Example 268
A THIRD-PERSON CAMERA SUITABLE FOR VR 269
Open and Try Out the Example File 270
Programming 271
Script Breakdown 272
The Third-Person VR Camera Rig 275
A FAKE NOSE? HOW DOES IT SMELL?! 277
RECAP 279
Chapter 14 ■ Polish and Optimization_____________________281
CUSTOMIZING THE SteamVR COMPOSITOR 281
Create a SteamVR Skybox for the Compositor 281
OPTIMIZING FOR VR 285
The Rendering Statistics Windows (Stats) 286
The Performance Profiler 287
Profiler Modes 287
What Do the Squiggles Tell You? 289
Profiler Types 289
Example Usage 290
Batching 292
Occlusion 294
Try Occlusion Out with the Example Unity Project 294
xviii ■ Contents
The Occlusion Panel 295
Adding Occlusion Areas 296
Bake the Occlusion Cells 296
Quick Code Tips 298
Prioritize Where in the Update Cycles Your Code Runs 299
Geometry and Modeling 300
Materials 301
Level-of-Detail (LOD) 302
RECAP 304
Chapter 15 - Further Possibilities and a Final Word 307
THE FUTURE 307
Wireless Headsets 307
Backpack Laptops 308
Warehouse-Scale Experiences 308
Eye Tracking 308
Light Field VR 309
SparseLightVR 309
Khronos VR 310
FINAL WORD 310
REFERENCES, 313
|
any_adam_object | 1 |
author | Murray, Jeff W. |
author_facet | Murray, Jeff W. |
author_role | aut |
author_sort | Murray, Jeff W. |
author_variant | j w m jw jwm |
building | Verbundindex |
bvnumber | BV044353802 |
classification_rvk | ST 323 |
ctrlnum | (OCoLC)1019716904 (DE-599)BVBBV044353802 |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01435nam a22003611c 4500</leader><controlfield tag="001">BV044353802</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20180111 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">170619s2017 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781138033511</subfield><subfield code="c">Paperback</subfield><subfield code="9">978-1-138-03351-1</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781138051249</subfield><subfield code="c">Hardback</subfield><subfield code="9">978-1-138-05124-9</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1019716904</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV044353802</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-M347</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 323</subfield><subfield code="0">(DE-625)143659:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Murray, Jeff W.</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Building Virtual Reality with Unity and Steam VR</subfield><subfield code="c">Jeff W. Murray</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">London</subfield><subfield code="b">Routledge</subfield><subfield code="c">2017</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXVI, 326 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Computerspiel</subfield><subfield code="0">(DE-588)4010457-6</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Virtuelle Realität</subfield><subfield code="0">(DE-588)4399931-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Virtuelle Realität</subfield><subfield code="0">(DE-588)4399931-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Computerspiel</subfield><subfield code="0">(DE-588)4010457-6</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HEBIS Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029756508&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029756508</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield></record></collection> |
id | DE-604.BV044353802 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:50:35Z |
institution | BVB |
isbn | 9781138033511 9781138051249 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029756508 |
oclc_num | 1019716904 |
open_access_boolean | |
owner | DE-M347 |
owner_facet | DE-M347 |
physical | XXVI, 326 Seiten Illustrationen |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | Routledge |
record_format | marc |
spelling | Murray, Jeff W. aut Building Virtual Reality with Unity and Steam VR Jeff W. Murray London Routledge 2017 XXVI, 326 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Computerspiel (DE-588)4010457-6 gnd rswk-swf Virtuelle Realität (DE-588)4399931-1 gnd rswk-swf Virtuelle Realität (DE-588)4399931-1 s Computerspiel (DE-588)4010457-6 s 1\p DE-604 HEBIS Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029756508&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis 1\p cgwrk 20201028 DE-101 https://d-nb.info/provenance/plan#cgwrk |
spellingShingle | Murray, Jeff W. Building Virtual Reality with Unity and Steam VR Computerspiel (DE-588)4010457-6 gnd Virtuelle Realität (DE-588)4399931-1 gnd |
subject_GND | (DE-588)4010457-6 (DE-588)4399931-1 |
title | Building Virtual Reality with Unity and Steam VR |
title_auth | Building Virtual Reality with Unity and Steam VR |
title_exact_search | Building Virtual Reality with Unity and Steam VR |
title_full | Building Virtual Reality with Unity and Steam VR Jeff W. Murray |
title_fullStr | Building Virtual Reality with Unity and Steam VR Jeff W. Murray |
title_full_unstemmed | Building Virtual Reality with Unity and Steam VR Jeff W. Murray |
title_short | Building Virtual Reality with Unity and Steam VR |
title_sort | building virtual reality with unity and steam vr |
topic | Computerspiel (DE-588)4010457-6 gnd Virtuelle Realität (DE-588)4399931-1 gnd |
topic_facet | Computerspiel Virtuelle Realität |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029756508&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT murrayjeffw buildingvirtualrealitywithunityandsteamvr |