Texture Space Editor

The Texture Space Editor is an extension to the standard texture placement tools available with some versions of PowerAnimator and Studio. The Texture Space Editor allows you to manipulate texture vertices using transformation tools in the texture placement window.

Using the Texture Placement Window with polygonal data

The following is an example of how to use the Texture Placement window and the Texture Space Editor with a polygonal model.

How to Use

  1. Assign a new shader to the active polygon (Multi-lister Edit new shader).
  2. Double-click the shader icon to display the Shader editor.
  3. Click the Map... button next to the Color box to display the Texture Procedures window.
  4. For this example, select the Checker surface texture.
  5. The Multi-lister is updated to include a shader with a 2D mapping icon.

  6. Click the 2D mapping icon to open the Texture Placement window.

The Texture Placement window represents the surface and the texture map in relationship to the surface.

Click the buttons at the bottom of the window to display menus from which you can choose functions to manipulate the texture parameters.

Texture Space Editor buttons and menus

The buttons and menus located along the bottom of the window provide interactive access to all mapping parameters using the mouse, including the tools used with the Texture Space Editor.

Grid Buttons

These buttons are used to snap the texture vertices you want to manipulate to a grid.

Disp

When selected, this button indicates that you want to display the grid. The grid is displayed as a set of light grey lines. The number of X lines (representing U in parametric space) is controlled by the field above the Disp button.

The number of Y lines (representing V in parametric space) is controlled by the field above the Snap button.

Click in either of these fields to change the number of grid lines.

Snap

When selected, this button indicates that you want texture vertices transformations to snap to the nearest grid location.

Pick Buttons

The Pick buttons, Obj (Objects) and TVert (Texture Vertices) control whether selecting geometry in the 3D modeling window reloads the Texture Space Editor or selects texture vertices for modification using the Texture Space Editor tools.

The Obj and Tvert buttons are mutually exclusive; only one can be selected at a time.

Loading geometry into the Texture Space Editor

If any polysets, components, or polygons are selected when you first open the Texture Placement window, all polysets or fully selected polygons are loaded (if all of their vertices are selected) into the Texture Space Editor. This geometry is displayed as two-dimensional parametric space geometry.

At any point after the editor is opened, the loaded geometry can be changed, provided the Obj button is selected.

Only geometry loaded into the Texture Space Editor can be modified using the Texture Space Editor tools.

Tips on using the Obj button

Clicking the Obj button allows you to select polygonal geometry from the 3D modeling windows and load it into the Texture Placement window.

When the Obj button is selected, polygonal geometry can be selected at the vertex level by clicking and dragging in the modeling windows, like using the Pick CV tool. Only polygons that have all of their component vertices selected will be loaded into the Texture Placement window.

  1. If you have selected polygonal geometry prior to opening the window, the Obj button is selected by default, and all Texture Space Editor tools are enabled. If, however, you did not have polygonal geometry selected when the Texture Placement window was opened, the Obj button will not be selected, and all Texture Space Editor tools apart from the Obj button are disabled. Selecting polygonal geometry as above will enable the tools.
  2. If at any time while using the Texture Space Editor you select another continuous tool (such as Xform Move), all geometry is unloaded and the Obj button is deselected. If you select the Obj button again, you can reload all active geometry. This also exits the continuous tool.

Selecting texture vertices in the modeling windows

If the TVert button is selected instead of the Obj button, the polyset vertices you pick in the 3D modeling windows correspond to the loaded active texture vertices in the Texture Space Editor. You can now modify the selected texture vertices using the Texture Space Editor tools.

The selection behavior in the 3D modeling windows is like using Pick CV. For example:

  1. Selecting with the left mouse button toggles the selection status of vertices.
  2. Selecting with the middle mouse button deselects all previous selections allowing you to select new vertices.
  3. Selecting with the right mouse button deselects vertices.

Tip on using the Obj and TVert buttons

Single-click on an empty location of a modeling window using the middle mouse button to deselect all texture vertices in the Texture Space Editor (with the TVert button selected), or unload all geometry from the Texture Space Editor (with the Obj button selected).

Texture Space Editor Menus

The menu buttons located along the bottom of the window provide interactive access to all mapping parameters using the mouse.

Vertex menu

To transform the vertex interactively, select the vertex, then select one of the following menu items.

Move/Scale/Rotate

Click and drag the vertex to Move, Scale, and Rotate the vertex. Your transformations are updated in the Texture Placement window as well as in the modeling window.

Set vertex

If you select Set vertex, the following dialog box is displayed:

These sliders let you set the S and T values for the vertex. You can set specific values for texture coordinates.

Shortcut: Press the S key while the mouse pointer is over the texture placement window.

Set Pivot

Lets you click and drag to set the pivot position used during scale or rotate operations in the Texture Space window.

Shortcut: The pivot point can be centered in the selected texture vertices at any time by pressing the C key with the mouse pointer over the texture placement window.

Freeze Transform

The Freeze Transform function applies any Translate, Coverage, Rotate, Offset, or Repeat values set using either the Xform menu items, or the standard texture parameter editors to all vertices loaded in the Texture Space window.

The texture coordinate that results from the transformation is calculated and then assigned to the appropriate texture vertices in the Texture Space window. A system prompt also asks whether you want to reset the texture transform values before you confirm the operation. If you decide to reset, then the transformation values are set to their defaults.

Tip: This function is very useful when preparing texture coordinate data for export to systems that do not support advanced placement options such as Translate, Coverage, Rotate, Offset, and Repeat.

Undo

Click to undo a vertex transformations.

Shortcut: Press the U key with the mouse pointer over the texture placement window.

Move

Use the Move tool to move selected vertices in the texture placement window. Clicking and dragging will transform the texture coordinates in the requested direction.

  1. Clicking with the left mouse button allows freeform movement.
  2. Clicking with the middle button only allows movement in a single direction along equal S and T values.
  3. Clicking with the right mouse button constrains movement to the axis.

Rotate

Use the Rotate tool to rotate selected vertices in the texture placement window.The rotation is performed about the current pivot point.

Shortcut: The pivot can be centered in the selected texture vertices by pressing the C key.

  1. Clicking and dragging to the right rotates vertices counter clockwise.
  2. Clicking and dragging to the left rotates vertices clockwise.

Scale

Use the Scale tool to scale the selected vertices in the texture placement window. The scaling is performed about the current pivot point.

Shortcut: The pivot can be centered in the selected texture vertices by pressing the C key.

  1. Clicking and dragging to the right or up scales the vertices larger in S and T respectively.
  2. Clicking and dragging to the left or down scales the vertices smaller in S and T respectively.
  3. Clicking with the left mouse button performs a non proportional scale.
  4. Clicking with the middle button performs a proportional scale (equal S and T).
  5. Clicking with the right mouse button constrains the scaling to the axis.

Smear

Use the Smear tool to do a simple smearing operation on the selected texture vertices.

Click and drag, and:

  1. Vertices closest to the mouse pointer are moved further away.
  2. Vertices further away from the mouse pointer are moved closer.

Set Pivot

Use the Set Pivot tool to drag the rotational and scaling pivot to another location in the Texture Placement window.

Hot Key tools - flipping vertices

Two other tools are available only by using hot keys in the Texture Placement window:

Pressing the H key at any time scales the S value of the selected texture vertices by a factor of negative one around the center of the selected vertices (no matter where the current pivot point is). This is like flipping the vertices horizontally.

Selecting the V key at any time scales the T value of the selected texture vertices by a factor of negative one, around the center of the selected vertices (no matter where the current pivot point is). This is like flipping the vertices vertically.

Selecting texture vertices in the Texture Space Editor

Basic selection

In addition to using the 3D modeling windows and the TVert button to select texture vertices in the Texture Space Editor, you can Shift-select and drag a box around texture vertices in the Texture Placement window to make only those vertices active.

Tip: All tools in the Texture Space Editor can be used by clicking and dragging. For instance, you can select and modify a single texture vertex by clicking on it and dragging the mouse pointer.

Selecting using the keyboard

There are several keyboard methods that you can use to select vertices in the Texture Placement window:

  1. Selecting a polygon (by clicking in the middle of it) in the Texture Placement window while holding the Alt key makes all texture vertices associated with that polygon active.

This includes any texture vertices associated with polygons that share this vertex.

  1. Selecting a polygon in the texture placement window while holding both the
    Alt and Ctrl keys makes all texture vertices currently associated with that polygon active.

This only includes texture vertices for this particular polygon, and does not include any texture vertices associated with polygons that share this vertex.

Pressing the key (right arrow) with a single texture vertex selected displays a marker in one of the polygons that shares this vertex. Now when you use the transformation tools, only the texture vertex for that particular polygon is transformed. Pressing the key again cycles through all polygons that use this vertex.

Pressing the (up arrow) key removes the marker.

Transformation and Display controls

The following controls in the Texture Placement window are available with all versions of PowerAnimator and Studio. These controls change the placement of textures on objects by modifying the texture transformation values associated with the texture.

Xform

Lets you select Translation, Coverage, Rotate, Offset and Repeat functions.

Select any one of these menu items and click and drag with the mouse to alter the texture on the surface.

As the parametric values change in response to the mouse movement, they automatically update in the Texture Placement sliding scales. Values are increased when you drag from left to right, or bottom to top. Values are decreased when you drag from right to left or from top to bottom. The origin of the texture is in the lower left of the window; the U parametric direction is vertical and the V parametric direction is horizontal.

Translate

To alter the position of the texture on the surface, select Translate from the Xform menu, place the cursor in the 2D view window, then:

  1. Drag the mouse left or right across the window to effect the position of the texture in the V parametric direction.
  2. Drag up or down the window to effect the position in the U parametric direction.

Coverage

To reduce the coverage of the texture on the surface, select Coverage from the Xform menu, place the cursor in the 2D view window, then:

  1. Drag the mouse left or right across the window to effect the coverage in the V parametric direction.
  2. Drag up or down the window to effect the coverage in the U parametric direction.

Rotate

To rotate the texture on the surface, select Rotate from the Xform menu, place the cursor in the 2D view window, then:

  1. Drag the mouse left or right across the window to rotate in the V parametric direction.
  2. Drag up or down the window to rotate the texture in the U parametric direction.

When the texture is rotated, a white border that is used to represent the parametric surface becomes more evident. This border is rotated rather than the actual texture in the view window for visualization purposes.

Offset

To offset the texture's position on the surface, select Offset from the Xform menu, place the cursor in the 2D view window, then:

  1. Drag the mouse left or right across the window to offset the texture in the V parametric direction.
  2. Drag up or down the window to offset the texture in the U parametric direction.

Repeat

Select Repeat to repeat the texture pattern on the surface.

Reset

Select Reset to reset the last transformation.

Fit

Select Fit to automatically fit the texture to the surface.

Lookat

Select Lookat to zoom in on a particular areas of the texture in the Texture Placement window.

Display Mode

Line Only

The white outline of the parametric surface is displayed along with the red outline of the parametric texture unit, on blue grid lines.

Drag Line

The texture unit displays as a color or gray scale image against the shader color until you attempt to perform an Xform function on it. Once you interactively begin to manipulate the texture with an Xform function, the display switches into Line Only display. When the mouse button is released, the view is restored again.

Using Drag Line

The following shows a cloth texture applied to a shader and the associated 2D Placement window.

When you click, hold, and drag the mouse button, you can change the surface placement. The 2D Placement window is updated as well as the icons in the Multi-lister.

Picture/ High Res

The display remains in full picture mode at all times without toggling to a line display. The High Res. option ensures that the texture continuously updates in real-time as you manipulate it. However, real-time is more intensive on computational operation than any other mode and may react slowly depending on machine load.

Wrap menu

Lets you toggle wrap OFF in either the U or V parametric directions. If the coverage of the texture is less than 1.0, then Wrap determines what happens outside the coverage range.

  1. If Wrap is ON, the texture is repeated outside its coverage range, like tiles.
  2. If Wrap is OFF, the value of the mapped parameter is used from the shader's Control window.

Model View

Lets you select from three model view modes.

QK Render

All surfaces to which the shader currently displayed in the 2D view window is assigned are quick rendered.

Shaded Wire

The texture, if it is currently assigned to a surface, is displayed on the wire frame of the surface in 3D view. See 3D Mapping for complete details.

Wireframe

The surface is toggled out of 3D view mode back to a normal wire display.

Tip: For more information on texture mapping, see Interactive Label Mapping in the Windows Multi-lister section of the Alias Menu Book.





aliasdocs@aw.sgi.com

Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.