User Tools

Site Tools


vr_unity

Differences

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

Link to this comparison view

Next revision
Previous revision
vr_unity [2024/06/29 13:17]
akanksha created
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 
-https://​assetstore.unity.com/​packages... 
-2. Edit> project settings>​ XR Plugin management 
-3. Select ‘Oculus’ in windows and android 
  
 +  * Install oculus integration package here https://​assetstore.unity.com/​packages ([[https://​assetstore.unity.com/​packages/​tools/​integration/​oculus-integration-deprecated-82022|alternative link]])
 +  * Edit> project settings>​ XR Plugin management
 +  * Select ‘Oculus’ in windows and android
 + 
 Fun part – Hand tracking Fun part – Hand tracking
-1. Delete ‘main camera’ 
-2. Create > 3D object> cube 
-3. Search in project ‘OculusInteractionSampleRig’ 
-4. Drag ‘OculusInteractionSampleRig’ to scene 
-5. Select ‘OVRCameraRig’ 
-6. Change Tracking Origin Type to ‘Floor Level’ and Tracking support to ‘Hands only’ 
-7. Look for ‘Left/​Right HandAnchor’ under ‘OVRCameraRig’ 
  
-Grabbing Object +  * Delete ‘main camera’ 
-Interactor +  * Create > 3D object> cube 
-1. Add ‘HandGrabInteractor’ to both ‘HandInteractor’ under InputOVR +  * Search in project ‘OculusInteractionSampleRig’ 
-2. Select ‘R/L Hand’ drag  ‘OVRGrabber’ to add elements in interactor +  * Drag ‘OculusInteractionSampleRig’ to scene 
-3. Check Parent Held Object or you will see some jumpiness when holding and object and moving your hands. +  * Select ‘OVRCameraRig’ 
-4. Add sphere collider to grab volume+  * Change Tracking Origin Type to ‘Floor Level’ and Tracking support to ‘Hands only’ 
 +  * Look for ‘Left/​Right HandAnchor’ under ‘OVRCameraRig’ 
 + 
 +Grabbing Object Interactor 
 + 
 +  * Add ‘HandGrabInteractor’ to both ‘HandInteractor’ under InputOVR 
 +  ​* ​Select ‘R/L Hand’ drag  ‘OVRGrabber’ to add elements in interactor 
 +  ​* ​Check Parent Held Object or you will see some jumpiness when holding and object and moving your hands. 
 +  ​* ​Add sphere collider to grab volume 
 Interactable Interactable
-1. Add ‘rigidbody’ to the cube under add components for a cube. 
-2. Add ‘OVRGrabbable’ 
  
 +  * Add ‘rigidbody’ to the cube under add components for a cube.
 +  * Add ‘OVRGrabbable’
 +
 +
 +https://​developer.android.com/​tools/​releases/​platform-tools
  
  
vr_unity.1719663459.txt.gz · Last modified: 2024/06/29 13:17 by akanksha