Skip to content

echo3Dco/Unity-echo3D-Demo-SonySRD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-echo3D-Demo-SonySRD

Import an external 3D asset into a Sony Spatial Reality Display (SRD) project in Unity from the echo3D cloud.

image

Setup

  • Built with Unity 2021.3.25f1 (Note: The echo3D Unity SDK requires 2020.3.25+).
  • Register for a FREE echo3D account.
  • Clone this repo to view the sample project. The echo3D SDK has already been installed.
  • Install the SRD Unity Plugin by following this link.

echo3D Configuration

  • Add the 'Skyscraper' model to the echo3D console.

  • Disable the Collection's API token / security key / secret key.

  • Open the sample project in Unity

  • Open the 'SRDisplaySimpleSample' scene under Assets

image

  • Select the 'echo3DHologram' object in the Hierarchy.

image

  • Note that 'Echo 3D Hologram (Script)' in the Inspector is disabled and that 'Editor Preview' checkbox is checked. It will be enabled on runtime once the API key is set in the Input Field and the 'Start' button is clicked.

image

  • In the echo3D console, double-click on the 'Skyscraper' card and go to 'Metadata'.
  • Add 'scale' with value 20.

SRD Configuration

  • Adjust the SRDisplay by setting the Uniform scale of the SRDisplay Manager to 100 using the SRD View Space Scale slider. Adjust UI elements as needed. If you intend to support both wallmount mode and standard mode, please toggle Is Wallmount Mode on the SRDisplay settings in the Inspector.
  • Creating a mouse pointer as regular 2D mouse pointers won’t work on the SRD as the SRD is in 3D Space. Please use the Pointer script provided in the SRD Plugin to create a 3D mouse pointer.

image

  • Assign the mouse pointer event in the SRD Graphic Raycaster script according to the image below. The SRD Graphic Raycaster script should replace the Graphic Raycaster script on the Canvas.

image

  • Adjust the Event System to help the SRD cameras detect controller input. In the Event System game object, replace the Standalone Input Module with the SRD Standalone Input Module from the SRD plugin. SRD Standalone Input Module extends Standalone Input Module.

image

  • Make sure the SRD canvas Render Mode is set to World Space.

image

  • Adjust UI view space to SRD to make sure 2D UI elements show up on the SRD. Adjust all UI elements to the SRD’s view space. Create a parent for the Canvas. Attach the SRD View Space Scale Follower to said parent.

image

Run

  • Connect your Sony SRD.

  • In the top menu under SpatialRealityDisplay, enable SRDisplay GameView (Full Screen).

  • Click 'Play' in Unity.

  • Set your API key on the Input Field.

  • Click 'Start'.

image

  • Watch the building appear.

  • That's it! 🎉"

No SRD?

image

  • Select the 'echo3DHologram' object in the Hierarchy.

image

  • Enable the Echo3DHologram gameobject.

image

  • Right-click the 'Echo 3D Hologram (Script)' in the Inspector and click 'Edit Script'.

image

  • Comment out line 78 in the Echo3DHologram.cs script to avoid loading the API key through the Input Field.

image

image

  • (Optional) Add a specific 'Asset ID' (can be copied from the console) to the Entries in the Inspector.

image

image

  • In the Unity taskbar, click Echo3D > Load Editor Holograms to watch the building appear.

image

image

Learn More

Refer to our documentation or YouTube channel to learn more. Refer to Sony's Spatial Reality Display Developer Guide docs to learn more.

Support

Feel free to reach out at support@echo3D.com or join our support channel on Slack.

Troubleshooting

Visit our troubleshooting guide here.

Screenshots

image image image

About

3D asset management for the Sony Spatial Reality Display

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published