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.
The following is an example of how to use the Texture Placement window and the Texture Space Editor with a polygonal model.
The Multi-lister is updated to include a shader with a 2D mapping icon.
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.
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.
These buttons are used to snap the texture vertices you want to manipulate to a grid.
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.
When selected, this button indicates that you want texture vertices transformations to snap to the nearest grid location.
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.
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.
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.
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:
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).
The menu buttons located along the bottom of the window provide interactive access to all mapping parameters using the mouse.
To transform the vertex interactively, select the vertex, then select one of the following menu items.
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.
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.
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.
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.
Click to undo a vertex transformations.
Shortcut: Press the U key with the mouse pointer over the texture placement window.
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.
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.
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.
Use the Smear tool to do a simple smearing operation on the selected texture vertices.
Use the Set Pivot tool to drag the rotational and scaling pivot to another location in the Texture Placement window.
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.
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.
There are several keyboard methods that you can use to select vertices in the Texture Placement window:
This includes any texture vertices associated with polygons that share this vertex.
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.
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.
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.
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:
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:
To rotate the texture on the surface, select Rotate from the Xform menu, place the cursor in the 2D view window, then:
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.
To offset the texture's position on the surface, select Offset from the Xform menu, place the cursor in the 2D view window, then:
Select Repeat to repeat the texture pattern on the surface.
Select Reset to reset the last transformation.
Select Fit to automatically fit the texture to the surface.
Select Lookat to zoom in on a particular areas of the texture in the Texture Placement window.
The white outline of the parametric surface is displayed along with the red outline of the parametric texture unit, on blue grid lines.
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.
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.
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.
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.
Lets you select from three model view modes.
All surfaces to which the shader currently displayed in the 2D view window is assigned are quick rendered.
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.
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.
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.