SONY

menu
Search button in the site

Open the search area of the siteく

Create your simple HDRP app "Hello cube!"

Let's try to develop your Spatial Reality Display(SR Display) app in Unity(HDRP) !

  1. Setup your SR Display, if not, see: Setup SR DisplaySetup SR Display Runtime
  2. Set up your Unity project installed SRDisplay XR UnityPlugin, if not, see: Set up for Unity(HDRP)

  1. Open a new scene from File > New Scene and remove Main Camera (prepared by default) from the scene

  2. Put SRDisplayXRManager Prefab in your scene Hierarchy

    1. You can find SRDisplayXRManager Prefab in Packages / SRDisplay XR UnityPlugin / Runtime / Prefabs

Then, you can see a blue wireframe GIZMO box and a cyan wireframe GIZMO plane.

Tips

The blue GIZMO box describes the View Space in SR Display and the cyan GIZMO plane describes the actual SR Display screen plane. The default scale of these GIZMOs is the same as the actual SR Display, if Unity scale 1 means 1 meter.

Tips

The default scale in Unity is so big for SR Display that you may miss the GIZMO box and plane. You may need to zoom to the world origin in Scene View to find the GIZMO box and plane. To quickly zoom in, select the SRDisplayXRBox in the Hierarchy view and hold down the SHIFT key and press the ‘F’ key.

  1. You can use SRDisplayXRBox Prefab that shows the floor and walls(transparent) of SR Display.

  2. You can place any objects

Tips

The scale of the SR Display is small when using the default Unity scaling.

You may need to adjust your objects size or use View Space Scaling to fit within the SR Display camera view.

Caution

Objects should be inside of the SR Display View Space. If objects stick out of the View Space, adjust the size and position of objects so that it does not stick out.

Spatial Clipping feature is not available in the current SRDisplay XR Plugin for HDRP.

  1. Configure Project Settings from Edit > Project Settings...

    1. Set Don't Sync in VSync Count in all Quality Levels (See: Minimize the latency for good user experience in Tips and Constraints)

    Tips

    Motion Blur affects the quality of the 3D display and should be turned off.

  2. Open Build Settings dialog from File > Build Settings and double-check your configuration settings.

    1. Add your scene to Scenes In Build in Build Settings

    2. Make sure that Architecture is x86_64

  3. Click Build in Build Settings and choose the folder you want to save the app, then you can get the app file(.exe).

  4. Unity will create an executable file in that folder. Click on that file and it will launch the content on the SR Display.