Xwarp

Xwarp Editor

The Xwarp tool allows you to change one image into another image by combining two warps with a cross fade or dissolve. The Xwarp tool uses two images or sequences and warps between them. The display area shows two images and two pairs of control meshes -- a source and destination grid for each image. These grids are superimposed over both images; the top canvas shows the Before target image and the bottom shows the After target image. The source grids of the two canvases define the original position of pixels in the image. The destination grids define the new locations for pixels to create the intended image variations.

The active canvas has a red border around it. The setting of keyframes and other operations are performed only on the currently selected canvas. To make a canvas active, click in it.

Note:
Both the Before and After images should have the same resolution. If they do not, use the SizeDonor option of the Input Editor.

The default grid resolution is set to 5 rows by 5 columns. You can edit the grid resolution by selecting the Util -> New Mesh command or by adding individual rows or columns using the 'a' key whenever necessary (see Editing the Grid Resolution).

Tip:
It is recommended that you start with a low-resolution grid. You can then add rows and columns in critical areas of the image where a detailed grid is required. This avoids any unwanted pixel artifacts and speeds up processing.

Note:
The Xwarp tool's grid uses Bezier-type splines to provide optimum control. For more information on these types of splines, see Editing Function Curves.

Display Options

The display options allow you to view the Before and After images with the associated Source and Destination grids. You can also use them to graphically view the path of animated control points between the source and destination grids, and view the names of control points belonging to a group.
Use this optionTo display the
OutputWarped image.
Before & AfterBefore and After image areas. The Before image is positioned in the top image canvas and the After image is positioned in the bottom image canvas.
BeforeBefore (source) image area.
AfterAfter (destination) image area.
ImagesImages in the preview area.
Warped ImageResults of the warp.
SourceSource grids.
DestinationDestination grids.
Sub MeshFinely-divided grid (ten grid lines per main grid division)
PathsPath that describes where the control point starts and ends its animated translation.
GroupsGroup names assigned to control points.
AnimEffect Canvas.
TimeWarpTime Control editor.

Note:
Typically, you first select the Images and Source options to display the images and the source grid. Once you edit the source grid's control points, you deselect the Source option and select the Destination option to display and arrange the control points of the destination grid.

By default, the source and destination grids are displayed in red and blue, respectively. When a control point on the grid is selected, it becomes current and changes colour. A current point on the source and destination grids is displayed in yellow and cyan, respectively.

You have the option of changing grid colours at any point during your Xwarp session (see Changing the Grid Colours).

Filtered

The Filtered option displays a filtered display of the preview. It is also necessary for a better result in the final render.

Editing the Grids

You can edit the source and destination grids by changing the position of control points. You can translate selected control points interactively, and using the commands in the Move menu, you can Scale and Rotate control points or restrict their movement along the x and y axes. Before you can edit the position of one or more control points, you must first select the ones you want to affect.

To select control points on the source grid, use the following keyboard and mouse actions. For the destination grid, follow the same procedures as the Source grid, but use the middle-mouse button instead.
Selecting and Editing Single or Multiple Control Points
Type of actionControl pointDo this
SelectA single control point

 

 

Multiple control points

Click on the control point and handles appear.

 

Click and drag diagonally across a selection of control points

Toggle Select Any control pointCtrl-click will toggle the selected status of a control point (that is, a selected control point is deselected and vice-versa).
ModifyLeft and right slopes at the control point Select a control point and drag the left or right handle. Use the 'b' key to toggle between modifying the two slopes together or independently.
Display handlesAll control point handlesPress the Shift key to make all handles visible.
Reset handle to default positionSingle or multiple control pointsSelect the control point(s) and press the 'u' key to reset control point handles to default position.

Control Point Editing Options

The Move menu commands allow you to set options that affect how control points are edited. Each change is applied to the currently selected control point(s). Select single or multiple control points and then select a Move command.
Use this optionTo do this
LockXLock the grid points to translate only vertically.
LockY Lock the grid points to translate only horizontally.
Rotate Rotate the selected points clockwise or counter-clockwise about the centrepoint (see the next section).
Scale Scale the selected points toward or away from the centrepoint cross-hair marker (see the next section).
Limit Limit the movement of selected point to within the defined grid boundary.

Using the Centrepoint Crosshair Marker

The centrepoint crosshair marker appears when you select the Rotate and Scale options. By default, it is positioned at the centre of the grid. You can change the position of the crosshair marker by simply clicking and dragging it to a new location.

Editing the Grid Resolution

You can modify the grid's resolution either globally or locally. Specify a global grid change by choosing the Util -> New Mesh button, or specify a local grid change by using the 'a' or 'd' keys to add or delete grid lines individually.

In addition, the Util -> Mesh Colours command allows you to modify the grid's colours. Refer to Changing the Grid Colours for more information.

Note:
When you modify the grid's resolution, it affects both the Source and Destination grids.

Tip:
When the Partial Undo option is deselected in the Preferences dialogue box, you can use the Edit -> Undo command or the Delete button to revert to the last grid resolution setting. When Partial Undo is selected and you make a global change to the grid using the Util -> New Mesh command, you cannot revert back to the previous grid.

Global Grid Change

When you specify a global change, you create a new grid that replaces the default grid.

Select the Util -> New Mesh command. A dialogue box appears.

Set the grid resolution by entering new values in the New Rows (x axis) and New Cols (y axis) text boxes.

Warning
If you select the New Mesh command after you have already set control points, you will delete any existing animation values associated with the control points.

Local Grid Change

When you specify a local change, you are simply fine-tuning the resolution of the grid.

Press the 'a' or 'd' key, then click (or middle-click when working with the destination grid) to add or delete individual grid lines. When you have finished, press the key again.

To add a new row:

1. Press the 'a' key. The pointer changes to a + shape.

2. Line up the pointer along the existing column line (y axis) at the exact position where you want the new row to appear. Use the horizontal line of the pointer to help you imagine from where the row line would extend.

3. Click (or middle-click for the destination grid) and the new row appears.

4. Repeat the previous step to continue adding more rows as desired.

5. Press the 'a' key when you have finished.

To add a new column:

1. Press the 'a' key. The pointer changes to a + shape.

2. Line up the pointer along the existing row line (x axis) at the exact position where you want the new column to appear. Use the vertical line of the pointer to help you imagine from where the column line would extend.

3. Click (or middle-click for the destination grid) and the new column appears.

4. Repeat the previous step to continue adding more rows as desired.

5. Press the 'a' key when you have finished.

To delete an existing row or column:

1. Press the 'd' key. The pointer changes to an x shape.

2. To delete a column, position the pointer so that the existing line runs vertically through the pointer, then click (or middle-click for the destination grid).

3. To delete a row, position the pointer so that the existing line runs horizontally through the pointer, then click (or middle-click for the destination grid).

4. Repeat to delete more rows or columns as desired.

5. When you have finished, press the 'd' key again.

Changing the Grid Colours

1. Select the Util -> Mesh Colours command. A dialogue box appears.

2. Select the grid to which you want to apply the new colour.
Use this optionTo change
Before Src/After SrcThe colour of the source grid and control points.
Before Dst/After DstThe colour of the destination grid and control points.
NormalThe default colour of grids and control points.
HighlightThe highlight colour of selected control points.

3. Select a new colour using the Colour Selection display. You can change the colour by dragging the sliders in the colour scale bars or by typing values in their text boxes (see Colour).

Group Menu

The Group pull-down menu commands allow you to create a named group of points, add and delete control points from a group, and rename or delete a group. You can then edit groups as single entities.

Groups (but not the points contained in groups) can be selected using the Groups pop-up menu. The current group selected in the Groups pop-up menu is affected by commands on the Group pull-down menu. The Group pull-down menu contains the following commands:
Use this optionTo do this
New GroupCreate a new group (you will be prompted for a name).
Add Selection Add the currently selected points to the current group (Refer to Adding Control Points to a Group for more information).
Delete Selection Remove the currently selected points from the current group (Refer to Deleting Control Points from a Group for more information).
Remove Group Delete a group from the Groups pop-up menu.
Rename GroupRename the group.
Group Select Select an entire group by selecting one of its members.

Creating a New Group

1. Select multiple control points (see Selecting and Editing Single or Multiple Control Points).

2. Select the Group -> New Group command and a dialogue box appears.

3. Enter a name for the group in the text box and click the OK button. If you select the Groups display option in the editor, you will see the group name beside each control point.

Groups Pop-Up Menu

The Groups pop-up menu displays a list of the names of groups you have created. By default, no pop-up menu appears beside the Groups name. It becomes visible only when you create the first group name. To change the current group, click on the Groups pop-up menu and select the desired group name.

Adding Control Points to a Group

1. From the Groups pop-up menu, select the group name of the group to which you want to add control points. Make sure that the Groups display option is selected.

2. Select the control points you want to add to the group.

3. Select the Groups -> Add Selection command.

Deleting Control Points from a Group

1. Select the group name from the Groups pop-up menu. Make sure that the Groups display option is selected.

2. Select the control points that you want to delete from the group.

3. Select the Groups -> Del Selection command. The group name will disappear from the control point(s) you specified.

Manipulating an Entire Group

1. Select the Group -> Group Select command and then select a Move command.

2. Select any control point within the group. All control points belonging to the group will be automatically selected.

3. Drag to translate the entire group, or select an option from the Move menu to rotate or scale the group.

Note:
You can also manipulate multiple control points that are not assigned to a group. Refer to Selecting and Editing Single or Multiple Control Points for more information.

Deleting a Group

1. Select the group name to delete from the Groups pop-up menu.

2. Select the Group -> Remove Group command. The group name is automatically removed from the Groups pop-up menu.

Renaming a Group

1. Select the group name to rename from the Groups pop-up menu.

2. Select the Group -> Rename Group command. A dialogue box appears.

3. Enter a new name in the text box and click the OK button.

The new name automatically appears in the Groups pop-up menu. You can assign individual tween and fade values to animate control points in a group (see GrpTween).

Height Rendering

The Util -> Show Heights option lets you define the height of cardinal patches and overlap them using integers. The integer represents the height of the patch relative to the neighbouring patches. For example, by attributing a value of two to a face's nose and a value of one to its mouth, you could bring the nose over the mouth without stretching or blending the patches of the mouth. When this option is selected, a number (integer) is displayed in the middle of each patch on the destination grid.

Note:
When the Show Heights option is selected, the control points on the destination grid cannot be selected or edited.

To perform height rendering by overlapping patches, follow these steps:

1. Choose the Util -> Show Heights command. This command displays a number (integer) in the middle of each cardinal patch on the destination grid. By default, the patches are initialized at 0. At this point, you may want to modify the resolution of the grid (see Editing the Grid Resolution).

2. Middle-click to select the patches you want to edit. For multiple selection, middle-click and drag over the patches or hold down the Ctrl key and click the appropriate patches.

3. Press the '+' or '-' keys (either from the keyboard or numeric keypad) to change the height level. The height level allows you to raise or lower a section of the patch. Higher values are rendered first.

Tip:
If Num Lock is off, you can also use the up and down arrows on the numeric keypad. Note that the other arrow keys change the current frame as well as the height.

Note:
It is important to note that a value of -1 deactivates the height warping operation for the selected patch.

4. Edit the grid by positioning control points (see Editing the Grids).

Tip:
The Sub Mesh display option helps you to visualize the effect by showing the deformations with using a higher resolution grid.

5. To render the result, turn off the Show Heights command and select the Warped image option.

Key Options

This section describes how to set animation keyframes using the source and destination grids.

The Key options allow you to set keyframes. When the Src and Dst options are selected, you can set keyframes for all the control points located on these grids. When the Selected option is selected, you can set keyframes for the selected control points (see Selecting and Editing Single or Multiple Control Points).

For more information about keyframes and animation, refer to Creating Keyframe Animations.

Note:
The Previous/Next button applies to the currently activated control points. For example, if the Key -> Src option is selected, the Next button will take you to the next keyframe of the Source grid. Similarly, if the Key ->Dst option is selected, the Next button will take you to the next keyframe of that grid.

Copy Menu

The Copy menu commands allow you to copy selected or all control point positions and keyframes from the source or destination grids. Additionally, a buffer is available for temporarily storing alternate grids. These copy commands allow you to save the current state of either the Source or the Destination grid to the buffer for later use.

Note:
When the Copy -> Selected option is active, only the selected control points of the grid are copied. When this option is deselected, the entire grid is copied.

The Copy commands apply to the grids of the current canvas (Before or After). To make a canvas current, click on it. The current canvas has a red border.
Use this optionTo copy the
SelectedSelected control points of the grid.
All Anim

 

Keyframed animation associated with the control points of the grid.
Source From

 

Control points from one of the three options displayed in the submenu: Destination (destination grid of the current canvas), Other Source (source grid of the other canvas), Other Destination (destination grid of the other canvas).
Destination From

 

Control points from one of the three options displayed in the submenu: Source (source grid of the current canvas), Other Source (source grid of the other canvas), Other Destination (destination grid of the other canvas).
Source to pastebufferCurrent source grid to the paste buffer.
Destination to pastebufferCurrent destination grid to the paste buffer.
Paste to SourcePaste buffer grid onto the source grid
Paste to DestinationPaste buffer grid onto the destination grid.

Note:
Once the control points of the source grid have been positioned, select the Copy -> Destination From -> Destination From Source command. The destination grid will then match the source grid and you can reposition the destination grid to create the "warped" destination image.

Tween

The Tween option is used to globally set the automatic interpolation between the source and destination grids. Select the Tween option and enter values in the Tween text box.

When selected, the destination grids (for both Before and After) are interpolated between the source grid of Before and the source grid of After. Consequently, you cannot manipulate or copy control points from the destination grids. A value of 0 corresponds to a destination grid equal to the source grid of Before and a value of 1 corresponds to a destination grid equal to the source grid of After.

Typically, at the Start frame you would enter a Tween value of 0, and at the End frame you would enter a Tween value of 1. This way, Before starts off with its source and destination grids equal to the source grid of After. After shares the same destination grid which means that it starts off with a destination grid equal to the source grid of Before and ends up with a destination grid equal to its own source grid.

GrpTween

The GrpTween option is used to set tweening for groups by automatically interpolating between the source and destination grids. The control points associated with the current group are affected by the values set using the GrpTween option. The GrpTween values override the Tween values.

Fade Options

Fade

The Fade option controls the dissolve rate between the two image sequences. A value of 0 biases the dissolve toward the Before image, and a value of 1 biases the dissolve toward the After image.

GrpFade

The GrpFade option is used for groups to set the group dissolve rate between the Source and Destination grids. You can apply an animated dissolve to control points in the current group.

Util Menu

The commands on the Util menu provide a variety of useful functions. For more information about the New Mesh and Mesh Colours commands, see Editing the Grid Resolution. For more information about the Show Heights command, see Height Rendering.

Ease In/Ease Out

The Ease In and Ease Out options allow you to control the speed of the morph and blend. By default, the warp distorts and blends into the destination image evenly over the duration of the sequence. If you select the Ease In option, the warp will gradually accelerate before a set keyframe. When you select the Ease Out option, the warp will gradually decelerate after the set keyframe. These options contribute to a smoother warping and blending process.

Init Before to Black/Init After to Black

The Init Before to Black command initializes patches in the Before canvas to black before they are rendered. Similarly, Init After to Black initializes patches in the After canvas to black before they are rendered. This lets you see the progression of a rendering.

Linked

When the Linked option is on, panning and zooming in one canvas automatically pans and zooms in the other. When it is off, you can pan and zoom in the two canvases independently.

Display Options
Filtered
Editing the Grids
Control Point Editing Options
Using the Centrepoint Crosshair Marker
Editing the Grid Resolution
Global Grid Change
Local Grid Change
Changing the Grid Colours
Group Menu
Creating a New Group
Groups Pop-Up Menu
Adding Control Points to a Group
Deleting Control Points from a Group
Manipulating an Entire Group
Deleting a Group
Renaming a Group
Height Rendering
Key Options
Copy Menu
Tween
GrpTween
Fade Options
Fade
GrpFade
Util Menu
Ease In/Ease Out
Init Before to Black/Init After to Black
Linked

SOFTIMAGE Eddie 3.5 - 10 JAN 1997