Manipulating Projections and Supports
 
 
 

The texture support is a 3D object that defines the transformation and other basic characteristics of a texture projection. You can adjust the projection by manipulating the support object, and you can also modify the extent of the projection within the support.

Note that not every type of projection is associated to a support object. These procedures do not apply in those cases.

Manipulating Texture Supports

The position of a texture on an object is affected by the transformation of the support object. When the support moves relative to the textured object, the texture shifts on the textured object. You can transform a support directly, or constrain it to any object's bounding box.

Transforming Texture Support Objects

You can transform or constrain a texture support object in the same way as any other 3D object. For example, you can scale and translate a label into position on a package.

When you create a projection on a single object, the texture support is a child of the textured object. This means that by default the texture support moves with the object when you transform the object, and as a result the texture itself does not shift on the object.

Of course, you can cut the support from the object's hierarchy if desired for a specific effect. You can even animate the transformations of the support independently of the object.

For more information about transformations and constraints in general, see Transformations [Working in 3D Space] and Animating with Constraints [Animation].

Constraining a Texture Support to a Bounding Box

  1. Select a texture support object.

  2. Choose Get Property Texture Projection Constrain Support to Bounding Box from the Render toolbar.

  3. Pick any other object in the scene.

    The support is scaled and translated to fit the picked object.

Offsetting the Projection from the Support

By default, a texture projection fills the entire support. You can:

  • Change the extent of the projection on the support by transforming it interactively in the 3D views.

  • Fit the projection to a selection of components.

If you want to edit the UV coordinates of a projection after modifying it in either of these ways, you should freeze the projection or its transformation first.

Transforming Projections on Supports in the 3D Views

You can use the Edit Projection tool (J key) to scale, rotate, and translate a projection on a support.

A

Selected texture support and unmodified projection (top) with the rendered result (bottom).

B

Modified texture projection (top) with the rendered result (bottom).

  1. Select a texture support object.

  2. Choose Modify Projection Edit Projection Tool from the Render toolbar or press J.

  3. If the support has more than one projection associated to it, right-click to cycle through them. Alternatively, you can select the desired support in an explorer.

  4. Click and drag on the projection manipulator as shown in the illustration below.

    A

    Right-click to cycle through the available projections. The projection that is being edited displays the full manipulator and other projections are shown as dotted lines.

    B

    The red arrow indicates the +U direction and the green arrow indicates the +V direction. Drag on an arrow's line to translate in the corresponding direction.

    C

    Click and drag an edge to scale about the opposite edge in the corresponding U or V direction.

    D

    Click and drag a corner to scale about the opposite corner in both U and V directions.

    E

    Click and drag anywhere in the middle to translate.

    F

    Middle-click and drag anywhere in the middle to rotate about the center (intersection of red and green arrows).

    The SRT values are stored in the Texture Projection Definition Property Editor [Properties Reference]. If you prefer, you can set the values directly in the property editor, and even animate them.

  5. When you have finished, exit the Edit Projection tool by pressing Esc or activating a different tool.

Fitting Texture Projections to Components

Rather than manually transforming a texture projection to fit over a specific area of an object, you can fit the texture projection to a selection of the object's components using the Fit Subcomponent UVs to Image tool. This tool automatically calculates and performs the necessary transformations to position the texture projection over the selected components. If necessary, you can then refine the projection's placement interactively in a 3D view or from the property editor, as described Transforming Projections on Supports in the 3D Views.

Textured Decal View

 

Rendered Result

 

The original coffee mug shown here is a little too plain. You decide to put a snazzy logo on the side.

 
 

Adding the logo texture to the object using a cylindrical projection produces the result shown here. Though interesting, it's not what you want.

 
 

Fitting the texture to a selection of polygons automatically transforms (scales, translates, and rotates) the projection to fit precisely over the selected polygons. Ah, just right!

 
  1. Display the texture projection's property editor.

    TipYou may want to click the lock button in the property editor's title bar. This ensures that the property editor stays open and remains focused on the texture projection in the following steps.
  2. Select the components to which you want to fit the texture projection.

  3. Then click Fit Subcomponent UVs to Image in the Texture Projection property editor.

    If you did not select any components in step 2, you are prompted to pick them now. By default, the picking session uses the polygon filter and the raycast tool. but you can change the filter and tool if desired.

    The texture projection is transformed to fit precisely over the selected components.

"Freezing" Texture Projection Transformations

Once you have transformed a texture projection or fit it to a selection of components, you can "freeze" the transformation. Freezing the transformations bakes the transformation into the explicit UV coordinates but keeps the relation with the texture support object. In this respect, it is different from freezing the projection directly, which removes the support and collapses all texturing operators.

Before editing UV coordinates in the texture editor, you should freeze the projection's transformations or else you might not get the results you expect. You can then continue to manipulate the projection on the support, but don't forget to freeze the transformations again before you edit the UV coordinates again. Alternatively if you are certain that you no longer need to modify the texture support or change other options, you can freeze the projection completely (see Freezing Texture Projections).

When you freeze the projection's transformations, three things happen:

  • The projection's UV coordinates are modified to match the projection's transformation.

  • The ClsSetValuesOp operator is created in the texture operator stack (see The Texture Operator Stack).

  • The texture projection's UVW transformation values are reset to their defaults (scaling = 1,1,1; rotation = 0,0,0; translation = 0,0,0).

  1. Display the Texture Projection Definition property editor.

  2. In the UVW transformation section, click Freeze.

    The transformation is "frozen" into the object's UV coordinates and the UVW transformations reset to their default values.

There are two ways to revert the freezing of a projection's UVW transformations: you can either undo the freeze if that's still possible, or remove it entirely by deleting the ClsSetValuesOp operator. But note that deleting the operator means that you need to redefine the transformations from scratch.

A

Shown above is a sphere with a spherical projection. The texture projection has been transformed to its current location.

B

A texture editor view of the sphere shown left. The sphere's UV coordinates do not change when the projection is transformed.

C

After freezing, the projection's UWV transformations are reset to their default values. In the texture editor, the sphere's UV coordinates are transformed to match the projection's frozen UVW transformations.