top of page

Generating Resolume Mapping Files with AI: Automating LED Display Slice Settings from Drawings

Writer: Dai Kashiwagi | CEO, XIV
Dai Kashiwagi | CEO, XIV
Nov 20
6 min read

The Advanced Output settings of Resolume Arena can be generated by giving a drawing to AI, because the settings themselves are a text file in XML.

Video: a recording of AI operating Resolume until a mapping of 13 layers and 20 slices is built (watch on the XIV official YouTube channel).

On LED display sites, lining up slices one by one for each cabinet or surface and typing in the coordinates takes time. The more surfaces there are, the more input mistakes occur. This part of the job, calculating coordinates and lining them up, is the work AI is best at.

This article sets out the procedure XIV verified with the material of an actual project, and the parts that must not be left to AI.

What was done in the video

  • The task: eight transparent LED surfaces (4 columns, 2 tiers) and a wall LED, with a single output of 3840 x 2160 px

  • Generating the mapping settings: a settings file (XML) for 20 slices was generated from a table of numbers summarizing the resolution and placement of each surface

  • Creating the layers: the composition was set to 3840 x 2160 and 13 layers were created (the eight transparent surfaces, one common to all the transparent surfaces, the wall left, center and right, and the whole wall)

  • Creating the visuals: waves, lines and rings were made for each surface with the generators built into Resolume. The only instruction was to use white and blue

  • Loading the preset: when the generated settings file is loaded, the 20 slices line up as in the drawing

Some things did not go well. In the recording the AI missed an operation along the way, and the output destination contained in the settings file did not match the PC used for the recording.

Why AI can make them

There are two reasons.

  • The settings are saved as XML. An Advanced Output preset is saved as an .xml file and can be copied to another PC and loaded (Resolume: Advanced Output). Because it is text, AI can read and write it

  • There is an entrance for operating it from outside. Arena 7.8 and later has a built-in REST API, and the parameters of a composition can be read and changed from outside (Resolume: REST API and Webserver)

The .avc file that stores a composition is also XML inside. Its structure is large, however, so it is safer to have the AI edit an existing file as a base than to write one from scratch.

What to give the AI

Two kinds of things are needed: a sample and the numbers.

What to give

Contents

Why it is needed

Sample XML

One preset saved with the same version of Resolume

The XML format is not officially documented and changes with the version

Output resolution

Example: 3840 x 2160 px

The size of the canvas on which the slices are placed

Resolution of each surface

Example: 768 x 192 px

The size of one slice

Placement of each surface

Top-left coordinates, or the order and spacing

Used to calculate the output position

Input range

Which part of the composition to cut out

Which part of the picture goes to that surface

Receiving range of the LED controller

The settings on the sending device

To match the output range of Resolume

The sample XML can be found by opening the save folder from the preset list of Advanced Output.

Procedure

  1. Back up the current composition and Advanced Output under another name.

  2. Give the AI the sample XML and the LED drawing or the list of resolutions.

  3. The AI calculates the input range and output range of each slice and writes out XML in the same format as the sample.

  4. Put the generated XML in the preset folder and load it from the preset list of Resolume.

  5. Show a numbered test image on one surface at a time and check position, left and right, top and bottom, and front and back.

  6. If there are no problems, save it under the name for production use.

Do not overwrite the existing settings directly: always load the file as a new preset. If it does not work, you only have to return to the original preset.

Example: eight transparent LED surfaces and a wall LED

This is an example of a configuration that gathers eight transparent LED surfaces and a wall LED into one 3840 x 2160 px output.

Slice

Output top-left X, Y

Output size

Transparent 1-1

0, 0

768 x 192

Transparent 1-2

0, 212

768 x 192

Transparent 2-1

788, 0

768 x 192

Transparent 2-2

788, 212

768 x 192

Transparent 3-1

1576, 0

768 x 192

Transparent 3-2

1576, 212

768 x 192

Transparent 4-1

2364, 0

768 x 192

Transparent 4-2

2364, 212

768 x 192

Wall (whole)

0, 504

2880 x 576

The transparent surfaces are lined up at a 788 px pitch horizontally (768 px plus a 20 px gap) and a 212 px pitch vertically (192 px plus a 20 px gap). Once the rule is fixed, the calculation is the same for 8 surfaces or for 80. The more surfaces a project has, the greater the benefit of leaving it to AI.

In this configuration each surface carries two stacked slices, one that outputs its own picture and one that outputs a picture common to all the surfaces, for a total of 20 slices. AI can generate such stacked slices in one go with consistent names and coordinates.

As a verification, the XML that the AI generated from this table of numbers alone was compared with the preset actually used on site. The result was a match on all 116,863 bytes: a settings file of about 2,650 lines for 20 slices was reproduced without a single character of difference.

The input source of a slice is saved as a value such as 3:8. Checked against the composition file, the number after the colon turned out to be the layer number counted from the bottom. Changing the order of the layers shifts the input of the mapping too, so manage the composition and the preset as a set.

This verification covers generating the file and loading it in Resolume Arena 7.29.0. Output to the actual LEDs is confirmed on site with test images, as described in the next section.

What can be left to AI and what people check

AI makes the file. People check that it matches the real thing.

Can be left to AI

People check on site

Calculating slice coordinates and generating them in bulk

Position offsets when output to the actual LEDs

Unifying slice names and numbering them

Front and back of a surface, left-right and top-bottom flips

Reading the values out of old settings files and listing them

Correspondence between output display numbers and the real units

Identifying the differences before and after a settings change

Correspondence between controller ports and wiring

Writing recovery procedures and checklists

The content of the visuals and the stacking order of the layers

Sites with a history of rewiring need particular care. Even if the numbers in the settings file are correct, the picture is flipped if the wiring has been changed. Treat old settings files as reference values and finalize with test images on site.

When the design is fixed, mapping is fast

Whether mapping can be automated with AI depends on whether the design documents of the LED are in place.

If the resolution and placement of each surface and the receiving range of the controller remain as drawings, a mapping file can be generated in a short time, and recovery years later is quick too. Conversely, on a site where no documents remain, each surface has to be measured again on site even with AI.

XIV is a manufacturer that handles LED displays from design to manufacturing and installation. Keeping a list of the resolution of each surface and a mapping diagram as documents makes it easier to leave the work to AI when the video system is rebuilt later. Our approach to design is described in What is LED display design? Shape, structure, light distribution and content.

For LED display design, and for systems that include video playout, contact XIV. Contact us

FAQ

Can AI operate Resolume directly?

Yes. With the REST API of Arena 7.8 and later, the parameters of a composition can be read and changed from outside. For mapping (Advanced Output), however, generating a settings file and loading it is the better method.

Can a mapping file be made from a drawing alone?

The drawing is enough for the numbers, but to match the XML format, prepare one preset saved with the same version of Resolume as a sample.

Can AI also make the composition (.avc)?

It can, but generating one from scratch is not recommended. Editing an existing .avc as a base, or setting it through the REST API and letting Resolume itself save it, is safer.

Can a file made by AI be used in production as it is?

No. Always load it as a new preset, show a test image on one surface at a time, and check position, flips and front and back on site before using it.

On what kind of site is the benefit greatest?

Sites with many surfaces or cabinets and a regular layout. It is also suited to deciphering old settings files and creating recovery documents.

Related reading

Note: this article is based on XIV's own verification and is not official information from Resolume. Resolume is a product of Resolume.

Comments


bottom of page
日本語