User Tools

Site Tools


vr_unity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vr_unity [2024/06/29 13:18]
akanksha
vr_unity [2024/06/29 15:23] (current)
neil
Line 1: Line 1:
 Steps for VR Steps for VR
  
-  * 1. Install Unity from https://​unity3d.com/​get-unity/​download +  * Install Unity from https://​unity3d.com/​get-unity/​download 
-  * 2. Install editor (v 2021.3.) > Install +  * Install editor (v 2021.3.) > Install 
-  * 3. Add ‘Android Support + Open JDK + Android SDK and NDK Tools’ > Continue +  * Add ‘Android Support + Open JDK + Android SDK and NDK Tools’ > Continue 
-  * 4. Agree> Install +  * Agree> Install 
-  * 5. New Project > 3D (URP)+  * New Project > 3D (URP)
  
 Setting up environment Setting up environment
-  ​1. Top right layout > Tall + 
-  * 2. Create scene, ‘Main scene’ +  ​* Top right layout > Tall 
-  * 3. Create > 3D object > Plane +  * Create scene, ‘Main scene’ 
-  * 4. Right click in project window +  * Create > 3D object > Plane 
-  * 5. Create > material  ​+  * Right click in project window 
 +  * Create > material  ​
  
 Enable VR environment using oculus integration Enable VR environment using oculus integration
-  *  + 
-  * 1. Install oculus integration package here +  * Install oculus integration package here https://​assetstore.unity.com/​packages ​([[https://​assetstore.unity.com/​packages/​tools/​integration/​oculus-integration-deprecated-82022|alternative link]]) 
-  * https://​assetstore.unity.com/​packages... +  * Edit> project settings>​ XR Plugin management 
-  * 2. Edit> project settings>​ XR Plugin management +  * Select ‘Oculus’ in windows and android 
-  * 3. Select ‘Oculus’ in windows and android + 
-  ​* ​+
 Fun part – Hand tracking Fun part – Hand tracking
-1. Delete ‘main camera’ + 
-2. Create > 3D object> cube +  * Delete ‘main camera’ 
-3. Search in project ‘OculusInteractionSampleRig’ +  ​* ​Create > 3D object> cube 
-4. Drag ‘OculusInteractionSampleRig’ to scene +  ​* ​Search in project ‘OculusInteractionSampleRig’ 
-5. Select ‘OVRCameraRig’ +  ​* ​Drag ‘OculusInteractionSampleRig’ to scene 
-6. Change Tracking Origin Type to ‘Floor Level’ and Tracking support to ‘Hands only’ +  ​* ​Select ‘OVRCameraRig’ 
-7. Look for ‘Left/​Right HandAnchor’ under ‘OVRCameraRig’+  ​* ​Change Tracking Origin Type to ‘Floor Level’ and Tracking support to ‘Hands only’ 
 +  ​* ​Look for ‘Left/​Right HandAnchor’ under ‘OVRCameraRig’
  
 Grabbing Object Interactor Grabbing Object Interactor
-  *  + 
-  * 1. Add ‘HandGrabInteractor’ to both ‘HandInteractor’ under InputOVR +  * Add ‘HandGrabInteractor’ to both ‘HandInteractor’ under InputOVR 
-  * 2. Select ‘R/L Hand’ drag  ‘OVRGrabber’ to add elements in interactor +  * Select ‘R/L Hand’ drag  ‘OVRGrabber’ to add elements in interactor 
-  * 3. Check Parent Held Object or you will see some jumpiness when holding and object and moving your hands. +  * Check Parent Held Object or you will see some jumpiness when holding and object and moving your hands. 
-  * 4. Add sphere collider to grab volume +  * Add sphere collider to grab volume 
-  ​* ​+
 Interactable Interactable
  
-1. Add ‘rigidbody’ to the cube under add components for a cube. +  * Add ‘rigidbody’ to the cube under add components for a cube. 
-2. Add ‘OVRGrabbable’+  ​* ​Add ‘OVRGrabbable’ 
  
 +https://​developer.android.com/​tools/​releases/​platform-tools
  
  
vr_unity.1719663534.txt.gz · Last modified: 2024/06/29 13:18 by akanksha