Using Unity to Develop VR experiences -OVR camera

 https://learn.unity.com/tutorial/unit-3-using-unity-to-develop-vr-experiences?uv=2018.4&courseId=5d955b5dedbc2a319caab9a0#5d95596dedbc2a06804dd48e

https://learn.unity.com/tutorial/unit-3-using-unity-to-develop-vr-experiences?uv=2018.4&courseId=5d955b5dedbc2a319caab9a0#5d967d9cedbc2a2d9fcf75c0

  • VRTK - updated in Github https://github.com/xrsutd/Getting-Started-With-VRTK. Has to be added manually in code.
  • Create Unity project using 2018.4.28 LTS (for the purposes of the tutorial)
  • Download Oculus Integration from the Asset store
  • Package manager Oculus desktop
Navigate through explorer to the project packages file. Right click and open 'manifest' text file
  • Copy paste this under the first {add:
"scopedRegistries": [ 

"name": "npmjs", 

"url": "https://registry.npmjs.org/", 

"scopes": [ 

"io.extendreality" 

],

  • add the following entries to the dependencies section 

"io.extendreality.vrtk.prefabs": "1.1.3",

  • Save file. Unity then automatically updates

  • Download Git onto your computer https://git-scm.com/
  • VRTK Github prefabs https://github.com/ExtendRealityLtd/VRTK.Prefabs
  • Find assets folder in explorer (not Unity project window)
  • Right click and select 'Git Bash Here'
  • Copy paste this next to the flashing cursor 

git clone https://github.com/ExtendRealityLtd/VRTK.Tutorials.OculusIntegration.git

  • Import EscapeRoom_VS package....finally found this via a forum and hidden in clear view in course materials at the top of the tutorial! Frustrating!
  • Import
  • Save scene into scenes folder
  • Delete main camera in hierarchy
  • Go to Assets>Oculus>VR>Prefabs
  • Drag OVRCameraRig into hierarchy
  • In project window navigate to Packages>VRTK>Prefabs>CameraRig>TrackedAlias
  • Drag TrackedAlias into hierarchy (provides a way of attaching elements to a camera rig)
  • Select OVRCameraRig >add component>Linked Alias Association Collection
  • Open the OVRCameraRig prefab as well as the tracking space child object
  • Drag and drop the following assets into the appropriate inputs in the LinkedAliasAssociationCollection Script:  TrackingSpace>Play; Area CenterEyeAnchor>Headset; CenterEyeAnchor>Headset Camera; LeftHandAnchor>Left Controller: RightHandAnchor>Right Controller
  • TrackerAlias object in hierarchy >TrackedAliasFacade (inspector)>CameraRigs change from 0 set to 1 (same method as creating multiple slots for materials). Drag OVRCameraRig into slot 'element 1'

  • Open 'TrackedAlias' object in scene and the 'Alisases' child object

  • Add a cube (set SCALE to 0.02 on all axis) to the LeftControllerAlias and RightControllerAlias
  • Add a new material (Red to Left) (Blue to Right)
  • Project window navigate to Assets>Prefabs>drag environment 
  • Press play and test.
  • Video recording of game play below. Cubes move with my hands, without the use of controllers. My husband tried the the headset and tested the environment. Observations: 
Wanted to look at the books
Wanted to know what was in-front of the books
Wanted to try the keypad and to unlock the door







Comments

Popular posts from this blog

Dr Hannah Thompson, Royal Holloway University

Thematic Analysis_ Phase 3 - searching for themes - David Interview - iteration 1 - Coding Memo_051