C

Using Sub-Presentations

Introduction

Sub-Presentations is a feature which allows one presentation to be embedded in another.

The main benefit of doing this is that you can author different parts of a large presentation as separate smaller presentations. This can help control complexity in single .uip files, as well as allow different parts of a presentation to be authored separately and simultaneously.

Sub-presentations execute independently, albeit inside the same Runtime process as the initial presentation. The rendered frame from each sub-presentation is essentially used as a texture on a rectangle in the main presentation. This allows control over where and how each sub-presentation is composited into the final frame.

Using Sub-Presentations

There are two different ways to display a sub-presentation; on a separate layer or on an image element on an existing layer.

Sub-presentation on a Layer

  1. From the file menu, select Edit > Sub-presentations.
  2. Click the + icon.
  3. Set Type to Presentation.
  4. Click Browse, browse to the project folder of your desired project and select the .uip file.

  5. Enter desired name for the sub-presentation in the Name field. In case you have several sub-presentations in your project the names need to be unique.
  6. Select the layer you want to use for the sub-presentation in the timeline palette. Then, in the inspector palette, select the desired sub-presentation in the Sub-Presentation field. All sub-presentations added to the project will be listed here.

Sub-presentation on an Image Element

  1. Follow step 1 to 3 in the Sub-presentation on a layer section above.
  2. Add a basic object to your layer, preferably a rectangle.
  3. Add any image as a diffuse map for the material of the object by first selecting the material of the object in the timeline palette and then selecting Diffuse Map in the inspector palette.

  4. Select the diffuse map in the timeline palette and then select the desired sub-presentation in the Sub-Presentation field. All sub-presentations added in the .uia will be listed here.

Transparency

To display the sub-presentation background as transparent in the main presentation there are two settings in the sub-presentation that needs to be set.

  1. Layer property Layer Background needs to be set to Transparent.
  2. Scene property Set Background needs to be unchecked.

Available under certain Qt licenses.
Find out more.