You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move around an ArcGIS World using Virtual Reality to move and fly through different cities
4
4

5
5
6
-
## How it works
7
-
8
-
1. Check the box for **Mesh Colliers Enabled** on the `ArcGIS Map View` component if you want the camera to be able interact with buildings and the ground. This will have a negative impact on performance so you may want to disable this on less powerful devices.
9
-
2. Drag and Drop the VR Origin Prefab into the scene.
10
-
3. Drag and drop the XR Interaction Manager Prefab into the scene.
11
-
4. Draga an drop the Locomotion System Prefab into the scene.
12
-
5. Parent the XR Origin prefab to the ArcGISMap game object.
13
-
6. Expand the XR Origin fully and select the Main Camera Game Object.
14
-
7. In the Inspector, click add component and search "ArcGIS Camera Component" and add it to the Main Camera Game Object.
15
-
8. Press play and enjoy exploring.
6
+
## How to use the sample
16
7
17
-
## How to Use
18
8
This sample runs off of the OpenXR framework and supports the following headsets/devices:
19
-
1. Oculus Rift S
20
-
2. Oculus Rift
21
-
3. Oculus Quest
22
-
4. Oculus Quest 2
23
-
5. HTC Vive
24
-
6. HTC Vive Pro
25
-
6. HTC Vive Cosmos
26
-
7. Valve Index
9
+
- Meta Rift S
10
+
- Meta Rift
11
+
- Meta Quest
12
+
- Meta Quest 2
13
+
- HTC Vive
14
+
- HTC Vive Pro
15
+
- HTC Vive Cosmos
16
+
- Valve Index
17
+
18
+
### Deployment
19
+
20
+
For deploying, please refer to this [document](https://developers.arcgis.com/unity/deployment/)
21
+
In order for the sample to run on Meta Headsets, the device must be placed in **Developer Mode**. Please refer to this [document](https://developer.Meta.com/documentation/native/android/mobile-device-setup/) for how to perform such an action. This must be done for running the sample in the Unity Engine, making a build to run on Windows, or making a build directly to the headset (Meta Quest, Meta Quest 2, and Meta Quest Pro)
22
+
23
+
1. Ensure your headset is properly connected to your computer. For Meta Headsets, make sure the Meta Desktop App is open and your headset says **connected** in the **devices** section. For Steam VR headsets, ensure Steam is open and Steam VR is running.
24
+
2. Place the headset on your head. The sample should automatically use the headset to control the camera's position and rotation in the world.
25
+
3. To move, use the joystick on the left controller, pushing the joystick will move you in that direction. The joystick on the right controller can be used to 'snap turn' 45 degrees, making it so you can turn around quickly. Additionally, pushing the right joystick up or down will allow the player to fly up or down in the world.
26
+
27
+
Please ensure that the project is using URP if you are using any of the Meta Headsets listed above. HDRP may be used for any of the other headsets, but not Meta. It will cause errors in the project.
28
+
29
+
## How it works
30
+
31
+
This sample provides three Prefabs for users to add to any scene making setup easy!
32
+
- XR Origin: This Prefab holds all the components for tracking the VR headset and controllers, as well as the camera that renders components in the scene.
33
+
- XR Interaction Manager: This Prefab receives the input from the headset and controllers and allows the user to move their hands using the controllers as well as to control the rotation by moving their head with the headset on. Without this Prefab in the scene, the sample **will not work**.
34
+
- Locomotion System: This Prefab controls the movement in the sample, such as walking and flying around.
27
35
28
-
In order to use this sample, connect your headset to your computer and ensure it is detected properly. Upon loading the sample, place the headset on your head. It should automatically use the headset to control the cameras height and rotation as well as position in the world. To move, use the joystick on the right controller, pushing the joystick will move you in that direction. The joystick on the left controller can be used to 'snap turn' 45 degrees, making it so you can turn around quickly.
36
+
1. Create a map and check the box for **Mesh Colliers Enabled** on the **ArcGIS Map** component if you want the camera to be able to interact with buildings and the ground. This will have a negative impact on performance so you may want to disable this on less powerful devices.
37
+
2. Drag and Drop the **XR Origin** Prefab into the scene.
38
+
3. Drag and drop the **XR Interaction Manager** Prefab into the scene.
39
+
4. Drag and drop the **Locomotion System** Prefab into the scene.
40
+
5. Parent the **XR Origin** Prefab to the game object that has the **ArcGISMap** component on it.
41
+
6. Expand the **XR Origin** game object fully and select the Main Camera game object.
42
+
7. In the **Inspector** window, click on **Add Component** and search "ArcGIS Camera" component and add it to the Main Camera game object.
29
43
30
44
## About the data
31
45
@@ -35,4 +49,4 @@ Elevation data is loaded from the [Terrain 3D elevation layer](https://www.arcgi
0 commit comments