For the last three options, you should first choose a Projection to be adjusted at the top-right corner.

Warping

The Warp tab allows you to set up geometry correction for your projections. Areas where geometry correction is required include:

Advanced off-axis correction where projector placement is awkward and needs an advanced mapping over the keystone function in a projector

Non-planar screens such a curved screens and hemispherical domes

Projecting one image from one projector onto more than one surface

Unusual projection applications onto custom designed screens

Interface

You can switch between the control points using arrow keys and move them with the Ctrl key pressed. Adjustable screen size parameters enable you to control each point of your projection with a pixel accuracy. You can also increase and decrease Multiplier to be used when moving points with arrow keys via A and Z keys respectively.

Notice

Points are always moved in screen space coordinates regardless of image orientation (whether it is flipped or not), this means if you press left arrow - the point always goes left.

Allows you to choose a projection in the drop-down list to set up its parameters: warping, edge blending and color correction.

Screen Size

Allows you to choose screen size in pixels (width x height). These parameters determine the size of the pixel for control point displacement with arrow keys on the keyboard.

Multiplier

Indicates the displacement amount to be used when moving points with arrow keys. The resulting displacement amount equals to pixel size, calculated for the Screen Size specified, multiplied by this value. Use A to increase value, or Z - to decrease it.

Resolution

Warping is performed by defining a grid. A 2 x 2 grid is used by default. You can set the number of control points for the grid along horizontal and vertical axes.

Points

Visual editor enables you to set up warping for the selected projection using control points and yellow handles. These handles are displayed for each selected control point depending on its type.

Notice

The maximum grid size is 32 x 32.

Drag control points and their yellow handles to warp the projection and adjust it for the required configuration.

You can see an example of warped grid and a corresponding projection image below.

Warped grid

Warped image

You can fine-tune projection warping by adjusting the parameters of each control point by selecting it and changing parameters via the following panel next to grid resolution settings

The following parameters are available

Point - horizontal and vertical indices of the selected control point.

Position - coordinates of the selected control point along X and Y axes.

Coordinates for control points

Type - warping type for the selected control point:

- automatic linear interpolation (no control handles available)

- symmetric control handles for smooth curves

- asymmetric control handles (you can control each handle independently)

- automatic smooth curve (no control handles available)

Canvas

Here you can configure the canvas for the selected projection: set rotation angle and enable vertical and horizontal flipping.

Render

The Debug option allows you to temporarily set individual colors for different projections. This helps to visualize overlapping regions for different projections and facilitates the setup process.

The Show Grid option enables visualization of warping grid on the screen which significantly facilitates the process of debugging configuration of a multi-projector setup.

Color Correction

The Color tab allows you to correct color intensity, as well as to adjust color balance for the selected projection.

Scale

Per-channel color multiplier. It allows to control the intensity of:

Red

Green

Blue

RGB at once

Scale for the red channel = 2

Bias

allows you to adjust the color balance per channel (as well as for all channels at once):

Positive values (up to 1) are added to the color values on the screen.

Negative values (starting from -1) are subtracted from color values on the screen.

Bias for the red channel = -0.1

Edge Blenging and Masking

The Blend & Mask tab allows you to configure blending along the edges and according to masks, you can also use masks to cut out certain areas for the selected projection.

Mask

This group allows you to set up masks to be used for blending regions or to cut out certain areas (e.g. top and bottom areas for a curved screen projection).

The list of masks for the current projection is displayed on the left. You can add new masks and remove existing ones using the corresponding buttons.

Visual editor enables you to create and modify masks.

To add new points to the mask selected in the list, you should click Creation Mode button. Then you can add new points by clicking within the grid area, new points will be placed at the mouse cursor. To insert a new point into an existing mask, select the point next to which a new point is to be added, and click to insert a new one. You can drag an existing point to move it. To remove a point, simply right-click it.

You can also adjust your masks precisely by specifying the coordinates of each point. Select a point on the grid (its color will turn to white) and enter the coordinates in the corresponding Position fields below.

You can change the type of the selected control point using the following icons:

- automatic linear interpolation (no control handles available)

- symmetric control handles for smooth curves

- asymmetric control handles (you can control each handle independently)

- automatic smooth curve (no control handles available)

As you select a mask in the list, its parameters are displayed on the panel next to it:

Enabled - enables or disables displaying the selected mask. Can be used for convenience when configuring overlapping regions, when there are a lot of masks.

Name - mask name.

Color - color to be used for the selected mask. This option can be used to distinguish between masks when configuring overlapping regions and perform color correction.

Smooth - smoothing of mask edges. Determines the number of additional points to be inserted between the control points.

Border Size controls the width of the blended area along the edges of the mask polygon (analogous to Size parameter for the border):

0 - there is no blending.

1 - a half of the screen is blended.

Outer Alpha - opacity of the mask border area along the edges:

0 - the mask is fully transparent.

1 - the mask is fully opaque.

Inner Alpha - opacity of the mask polygon:

0 - the mask is fully transparent.

1 - the mask is fully opaque.

Power controls how fast the screen is blended across the area specified by Size (analogous to Power parameter for the border).

0 - there is no blending.

The higher the value, the larger the black area is.

Border

Controls soft edge blending for each side of the projection (left, right, top or bottom one). Set a non-zero Power value to start setting it up.

Gamma - gamma correction value.

Offset - viewport clipping offset. The clipped part is rendered in black.

0 - the whole viewport is shown.

1 - a half of the viewport is cut out.

Offset = 0.1

Offset = 1

Size controls the size of the blended area:

0 - there is no blending.

1 - a half of the screen is blended.

Power controls how fast the screen is blended across the area specified by Size.

0 - there is no blending.

The higher the value, the larger the black area is.

Power = 1

Power = 5

Multiple Projections' Viewing Settings

If more than two projections are created with AppProjection, the following viewing settings can be tweaked in the System menu -> Plugins.

FOV

The field of view for all projections. (Camera tab -> Field of view option is not applicable in this case).

Fov = 60

Fov = 80

Angle

Allows to adjust the viewing angle between projections. That is, when surfaces to project the images onto are turned at some angle to each other, this angle can be entered as Angle value and the projection will be automatically recalculated to show the right image.

Saving and Loading Presets

After projection configuration is set up, it can be saved to an preset file (*.proj) to be loaded at any time (e.g. to set up another projection):

Save button to save a preset file

Load button to load a preset file

Notice

A *.proj file that you save will only contain settings for the currently selected projection.

Customizing AppProjection

AppProjection can be customized to support custom viewing frustums (symmetric or asymmetric ones) for each projection.

AppProjection Viewports

AppProjection has one primary viewport, while all others are rendered as auxiliary ones. By default, the primary display is the Unigine engine viewport used for one-monitor configuration. It uses matrices of the Player used by the engine to view the scene. Other displays are arbitrary cameras with any perspective and facing whatever direction needed. Each display has its own model-view and projection matrices. Both the primary projection and auxiliary ones can be enabled or disabled, if necessary.

The primary viewport can be set to any projection (for supported configurations it is already set).

Each viewport has its own model-view and projection matrices.

By default, only a primary one has a graphical user interface (render system GUI, editor widgets, wireframe, or the profiler). However, separate GUIs can be drawn on all projections.

All viewports have their own viewport and reflection mask to selectively render nodes and reflections from them.

Default Configurations

For default configurations, the primary viewport is set to the following projection:

For 2 projections, the 1st viewport.

For 3 projections, the 2nd viewport.

For 4 projections, the 2nd viewport.

For 5 projections, the 3rd viewport.

How to Customize Projections

Rendering of AppProjection viewports is controlled by wall.h script (found in <UnigineSDK>/data/core/scripts/system/ folder). There are two possible setups depending on how the primary projection is rendered. It can be drawn by:

The default engine renderer (the same as when a usual one-monitor application is rendered).

The AppProjection renderer itself (which is safer if you are going to use asymmetric frustum for the center projection and modify its model-view matrix).

Notice

Only one of two renderers should be enabled at the same time.

The following example demonstrates how to tweak cameras configuration and choose the renderer for the main projection.

1. Using default engine renderer

The first variant is to render the main (primary) projection by the default engine renderer.