The HoloPlay Capture component is the main method to capture scenes for the Looking Glass. It is intended to replace Unity's normal camera for Looking Glass applications. Due to the unique properties of a Looking Glass system, there are key differences between the HoloPlay Capture component and Unity's standard camera.
The HoloPlay Capture object's main interface is the Holoplay.cs script. This script exposes variables and options to control how your scene is captured. Most variables, like Target Display, Target LKG Name, Target LKG Index, and quilt preset are determined automatically based on the device you have plugged in.
A scene with a HoloPlay Capture object present. The Green border shows the extent that will be captured, and the pink rectangle represents the focal plane.
The HoloPlay Capture object works by capturing your scene from at least 45 different perspectives. These captures are then stitched together into a special format to be displayed on the Looking Glass.
The settings exposed by the HoloPlay Capture object allow you to have control over how your scene is framed, using values described below. It also provides a helpful gizmo to visually represent how your scene is captured. The Green border represents how much of your scene will be visible in the HoloPlay Capture volume, it is controlled by the Near Clip Factor & Far Clip Factor variables.
The purple lines represent the focal plane, which is the area of your scene that will be most in focus. This position is not adjustable via a variable, and instead changes when you physically move the HoloPlay Capture object in your scene. No matter what variables you adjust on the HoloPlay Capture, the focal plane will always remain constant.
For framing your scene, the important variables are under the Camera Data & Advanced Camera Data sections.
The camera data section is hidden by default, the main variable you'll care about here is the FOV, which is set to 14 by default.
The Field of View setting works similarly to Unity's normal camera.
The minimum value for field of view is 5, with a maximum field of view of 90. Here's an example of adjusting the field of view and the result that this achieves in the Looking Glass. This value does not change with is in focus or the position of the focal plane.
The Size setting works similarly to how scale works for normal 3D objects. Modifying the scale property will change how large the HoloPlay Capture component is. Larger numbers will make the HoloPlay Capture larger, and thus make the scene appear smaller on the Looking Glass. This value does not change with is in focus or the position of the focal plane.
The Near Clip Factor and Far Clip Factor values control what is captured by the HoloPlay Capture object. Adjusting the near clip value will control how close objects can be to the camera.
Objects that are in front of the near clipping plane will not be shown.
Similarly, objects that are beyond the far clip plane will also not be shown.