Unity APP
Xvisio SDK Documentation Home Page

Basic VR Scenario


1. Basic VR Scenario

APK:vr.unity
This APK shows the VR scene developed based on VR glasses. User can interact with 3D objects in the APK through gesture recognition function in the VR scene of a room. The anchored objects such as cheese, tea cups, and Christmas trees can be grabing, draging, zooming or rotating. At the same time, user can also walk around to achieve the effect of 3D scene roaming.
image

2. Development Tutorial

Take below as an example.
Step 1:
Create an Unity empty project and enable all the cameras. Drag "XvXRManager" in "XvXR/Prefabs" to the project (note that all the transform and rotation are 0.). Now the 6dof module has been merged into AR glass.
image

Step 2:
Drag "MixedRealityToolkit, XvXRInput" in "XvXR/Prefabs" to the project. Now the gesture function has been merged into the project.
image

Step 3:
Drag "Cheese" in "XvXR/Prefabs" to the project. Now there will be a cheese model with gesture interaction function. Adjust the position of the cheese model so that the camera can see the cheese in the scene.
image

Step 4:
Create a new Gameobject. Drag "cheese" into this "Gameobject". Select "XvXRManager/Head/XvXRCamera/LeftCamera". Find option "XvisioRenderParent" in "XvXREye" of "LeftCamera", and drag the new Gameobject into this option. Please refer to MRTK Official Gesture Development Tutorial for code information of "Cheese"
image

Step 5:
Create a completed room model and drag it into the scene. Set the room model to an expected position and rotation. Now the VR sence is completed.
image

Step 6:
Packing APK and install it into VR glass. Run the apk:
image


Unity APP
Xvisio SDK Documentation Home Page