Example Scenes

There are multiple examples in the Assets/LookingGlass/Examples folder that can help you get started with the Looking Glass Unity Plugin.

Example 1 - Framing Content with Hologram Camera

This example showcases Dez Island, a 3D scene with two cute chinchillas chilling on a tropical island. It's a good example of how to position a Hologram Camera in a scene with content at varying levels of depth.

Example 2 - Post Processing

This example shows how to use the Looking Glass Post-Processing Volume to add depth of field. Enabling and disabling this component in the scene will show how depth of field can improve the look of objects that are far away from the focal plane. For more information, please see the Post Processing page.

Example 3 - 3D Cursor

This example shows how to use the 3D Cursor prefab. This will allow you to interact with the scene in 3D space in a natural way. This example also uses our orbit controls script to allow you to rotate the scene. For more information, please see the 3D Cursor page.

Example 4 - Hardware Buttons

This example shows hardware button inputs for our devices, demonstrating how to tie events to these inputs. It currently only supports Windows.

Example 5 - Dual Monitor Application & ExtendedUI

These examples show how to get started with dual monitor applications where having a non-full-screen window or MacOS support is required. These can be useful when you want to have a 2D UI on your normal monitor that can control a 3D scene on the Looking Glass. The first example shows the Looking Glass application, while the second shows the flat 2D UI that you can use to control the position of the cube. For more information on Dual Monitor applications see the Dual Monitor Applications page.

For Windows setups where a full-screen UI is acceptable, you can use standard Unity display management, though there is some complexity for due to the "Force Display Index" toggle. For two-monitor setups, we recommend unchecking Force Display Index as it greatly simplifies raycasting and UI events.

Example 6 - Recording Example Scene

This example will show how to use the QuiltCapture script to capture your scene as a quilt image or video. This will allow you to share it with others (via blocks.glass) and import it into Looking Glass Studio. For more information, see the QuiltCapture.cs reference.

Example 7 - Render Stacking

This example shows how to make use of the Hologram Camera Render Stack feature — a way to layer different kinds of content (2D camera views, 2D textures, pre-rendered quilts, and hologram camera views). You can also use this to optimize scene rendering by pre-rendering expensive background content ahead of time.

Example 8 - UI on the Looking Glass

This example shows how to show text on a Looking Glass holographic display, in particular setting up the canvas. In general, it's preferable to put text and other UI elements on a 2D display next to the Looking Glass, however in v3.2.0 of the plugin we improved text rendering on the device.

Example 9 - iOS Sample Scene

This example shows how to create a scene for iOS deployment. See our full user guide for more information.

URP Example Scene

This example is in Assets/LookingGlass/Examples/URP

It shows our beta support for URP rendering. Note that some features, like post-processing and the 3D cursor, are not currently supported.

Last updated

Was this helpful?