💡Quilts

Overview

Quilts are an image standard that Looking Glass uses to produce 3D experiences. This standard is used to describe both still and moving images (pictures and videos). Here is an example quilt formatted for Looking Glass Portrait.

The main benefit of the quilt format is that it can work for both images and videos! Quilts allow for an efficient way to store frame by frame data as .mp4, .webm or other common media formats. They're also compact. for example, the above quilt was compressed to be under 1MB of data!

Quilts serve a few purposes:

  • to save and retrieve images displayed in a Looking Glass (similar to image & video screenshots for 2D monitors)

  • as a compositing step in Looking Glass render pipelines found in our developer tools

  • as a format to work against to manually produce light field photos / videos

Format

Each tile in the quilt is a conventional 2D image of a scene. The bottom-left tile of the quilt (view 0) is the leftmost view of the scene, and the top-right tile is the rightmost, like so:

Quilt Format

Quilt Settings by Device

Our different devices have the following quilt settings that are optimal for real-time rendering contexts:

Device
Columns
Rows
Resolution

Looking Glass Go

11
6

4092 x 4092

Looking Glass Portrait

8
6

3360 x 3360

Looking Glass 16" Light Field Display (Landscape)

7
7

5999 x 5999

Looking Glass 16" Light Field Display (Portrait)

11
6

5995 x 6000

Looking Glass 32" Light Field Display (Landscape)

7
7

8190 x 8190

Looking Glass 32" Light Field Display (Portrait)

11
6

8184 x 8184

Looking Glass 65" Light Field Display

8
9

8192 x 8192

This standard may be applied to any conventional image or video file type. The most common are jpg, png, gif, mp4, mov.

File Naming Conventions

Most Looking Glass integrations output Quilts with the following naming structure:

filename_qsColumnsxRowsaAspectRatio.mp4

A quilt designed for Looking Glass Portrait with 8 columns and 6 rows would look like this:

filename_qs8x6a0.75.mp4

This allows our software like Looking Glass Studio to automatically import the quilt with the proper number of columns & rows, along with setting the proper aspect ratio. The Looking Glass Portrait has an aspect ratio of 4:3, which equates to 0.75. Looking Glass 16" & 32" systems have a 16:9 aspect ratio, which equates to a value of 1.777.

Generating a Quilt from a Set of Images

Using FFmpeg

If you have a set of images rendered with view shearing, as in our tutorial on rendering light fields in Maya, they can be combined to create a quilt. View shearing is a complex topic if you're unfamiliar with 3D graphics, but you can see our documentation on how to apply view shearing here, here, and here, and a more general description on Wikipedia here.

If your views are correctly set up, you can generate a quilt from them using the following FFmpeg command:

ffmpeg -i input_%03d.png -filter_complex "vflip,tile=8x6,vflip" quilt_qs8x6a0.5625.png

Change the input file name to match your image set naming convention, and change the tile value and the quilt naming (qs and a) to match your actual content.

Note that FFmpeg will throw an error if the resulting quilt is greater than 16K by 16K — in that case, you'll need to resize your images.

The above command applies a filter that first flips the individual images vertically, then tiles them together from top left to bottom right, and then flips the resulting image vertically again. This double vertical flip is required because the tile command in FFmpeg goes from the top left to the bottom right, while quilts go from the bottom left to the top right.

Using Looking Gloves Web App

You can also view light field sets and export them as quilts from a web app made by Oscar Tong.

This tool can be used to generate quilts from light fields that have been generated with view shearing or with a linear rail capture method. Select all the images in your light field set and upload them to the tool. You'll can focus and crop the light field, but once you've done that, you'll can export a quilt file.

Legacy Device Quilt Settings

Device
Columns
Rows
Resolution

Looking Glass 16"

5
9

4095 x 4095

Looking Glass 32"

5
9

8190 x 8190

Looking Glass 8.9"

4
8

2048 x 2048

Last updated

Was this helpful?