frontline.io 3D Studio - VR Scene Setup

frontline.io 3D Studio - VR Scene Setup

Introduction

Virtual Reality (VR) is a fantastic technology that immerses users in a computer-generated environment. To prepare your scene for VR, you need to set up the camera position and environment to ensure that the user has a comfortable and immersive experience. In this guide, we will walk you through the steps to prepare your scene for VR.

Please follow the instruction in the correct order:

  1. Positioning the VR Main Location
  2. Setting up the VR Floor
  3. Testing the VR Mode

Positioning the VR Main Location

1. Open your scene and create a startup position for the VR headset. This position should be in front of the model you want to see, at an average distance from it, and at the same height as your eyes (usually between 1.4-1.5 meters).



2. Duplicate the "Main location" under UI Data, rename it "VR Main location," and drag it to the "Devices" game object in the hierarchy and in the inspector to Main location - VR position.

  1. Then position it as explained above.



Notes

Note: Camera rotation transform needs to be on the X and Z in 0 positions. only the Y needs to be affected as we want the camera to face the model.


Setting up the VR Floor

  1. In the scene, you can find the "Environment" game object under RootMain.
  2. Turn on the floor to make it visible when you enter VR mode.
  3. Duplicate the Floor game object, rename it "VR Floor," and enable Mesh renderer and Mesh collider in the inspector.

  4. Drag the VR Floor under the Floor in the hierarchy.

  5. Remove the tick from Mesh Renderer in the Floor game object and add a new component by clicking on Add Component.

  6. Search for Teleport Target (Script) and add it.

  7. In UIData, find "ON VR Activate/Deactivate" in the XR Events and drag the VR Floor there.

  8. Set the ON as a Game.Object.SetActive and make it by default On by clicking on the little box.

NotesNote: If your model is not zeroed in the middle of the scene (X, Y, Z on 0) please move manually the floor to the bottom of the model, then you need to set up the camera and the floor.



Testing the VR Mode

  1. Build a PC build to test your VR mode.
  2. Connect your headset while the app is open.
  3. Test the scene to ensure that the camera and environment are set up correctly.

Notes

Note: The VR setup is a back-and-forth process, as we want to achieve the best result regarding the eye's height, So it's okay to try a couple of times till you get the best result.

Conclusion

In conclusion, preparing your scene for VR is easy and requires setting up the camera position and environment. Following these simple steps, you can prepare your scene for VR and test it to ensure everything is set up correctly. With VR, you can create immersive experiences that transport your users to another world, and by setting up your scene correctly, you can make sure that they have the best experience possible.



    • Related Articles

    • frontline.io 3D Studio - Wire Creation Tool

      Introduction When working with CAD models, you may have noticed that they often lack of cable structures, making it difficult to accurately simulate cable movement and interactions. This is where wires come in handy. By creating wires within the ...
    • Download frontline.io 3D Studio

      Introduction For advanced content creators, we have the 3D Studio. It's a package for Unity 3D software that allows you to create more complex content. Pre-Requisite Download Unity Application Download frontline.io 3D Studio (frontline.io SDK) To get ...
    • Importing frontline.io 3D Studio

      To be able to work with frontline.io 3D Studio in Unity: 1. With Unity open, go to top menu Assets > Import Package > Custom Package 2. Choose your frontline.io 3D Studio Package (If you don't have it, please contact your frontlline.io contact) 3. ...
    • frontline 3D Studio - Adding HotSpots

      Introduction Hot Spots allow users to quickly and easily navigate and view specific parts of a model. By moving through multiple Hot Spots, users can explore different areas of the model with ease. How to Create a Hot Spot Create a New Game Object: ...
    • Login to the frontline.io 3D Studio

      To be able to work with the frontline.io 3D Studio, you will need to be logged in to frontline.io: 1. In the top menu, go to LLS > frontline Login 2. Fill your Username and Password that you use for frontline.io, and click: login 3. Select your ...