Define world pattern

Purpose

To select the edges of surfaces to be joined to create a worldspace texture pattern for worldspace texture mapping.

How to Use

Select Define world pattern from the Surface Edit menu, or click this icon.

What is Worldspace Texture Mapping?

Worldspace texture mapping is a method of mapping textures onto an object's surface that attempts to minimize distortion to the texture.

Multiple surfaces can be connected to form a continuous surface. Worldspace texture mapping only works on surfaces that would unfold to a flat surface (surfaces that are topologically equivalent to a sheet of paper). Highly contorted surfaces would unfold poorly and completely closed surfaces would not unfold at all.

Due to the computational overhead, and the inherent sensitivity to the geometry used, worldspace texturing should only be used when it is genuinely required. Worldspace textures do not use the standard parametric coordinates of U, V, or the standard world space coordinates of X, Y, Z. Therefore if an object has been mapped using parametric texture mapping techniques, the texture is not placed in the same orientation if you switch to worldspace texture mapping.

To perform the mapping, triangle geometry is created for the surface. This geometry is then unfolded onto a plane to create a worldspace mapping between the plane and the geometry.

The unfolding process may take some time for complex objects or objects with a high level of subdivision and the process will time out if the object is too complex for a proper unfolding. If this happens, the resulting mapping may be poor. For this and other reasons, Worldspace Texture Mapping is usually unsuitable for animations.

Geometry Considerations

How to Use

  1. Create the surface or surface elements that are to be texture-mapped. The diagram that follows shows two surface patches. Typically, there is some distortion of a texture map as it stretches over the tight radius of the front surface element.

  2. Ensure that any surfaces with patches that will be joined together belong to a common group. To do this, pick the surface and select Edit Group. Note: Patches to be joined must be components of a common object.

  3. To join the surface patches, select Define world pattern. The system prompts:
    Select edge

  4. Click directly on the surface patch edge of one surface that is to be joined to the surface patch edge of another surface, as shown in the following diagram. Each time two edges are mated, the two surfaces to which they belong will flash.
When all applicable surface patch edges have been selected, click the Go icon in the lower right corner of the active window. If only one edge is found on a given mouse click, the next edge selected will be its mate.

Join works best when the edges of the two surfaces coincide exactly, although the edge of one surface will be stretched to meet the other if there is a gap. Edges do not need to match end to end-one edge may be offset from, or smaller than, the other. However, an edge can be joined to only one other edge. If edges are totally remote from each other, they cannot be joined properly.

The joining of mating surface patches is optional, and may be omitted if you do not need to have surface continuity across multiple patches.

  • Create a basic shader for the surface without any texture component and assign the shader to the surface.

  • Select the appropriate surface texture element to be applied to the shader in the Shader Lister and access the Surface Placement parameter set. Toggle the Worldspace option to ON. Note: Worldspace textures will not work for displacement mapping, and solid textures and environments are unsuitable for worldspace mapping.

  • Assign the shader to the surface.

  • Check the render subdivisions of the surface to make sure that they are set as they will be for the final render (they should be low for worldspace mapping to work well). The exact placement of the mapping is likely to change if you change the subdivision level.

  • Select Render Render- and select Raycast or Raytrace from the Rendering Options box to view the texture on your object.

    Additional Considerations

    Alternate Methods

    Before attempting worldspace mapping, you may want to try other methods:

    Special Considerations

    Worldspace texturing is sensitive to considerations that do not affect other methods of texturing.

    Invalidating actions include:





    aliasdocs@aw.sgi.com
    Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.