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
- The geometry to be used cannot be a closed surface.
- The geometry to be joined must share a parent DAG.
- If you want to map onto a closed object such as a bottle, a hairline gap at the back of the bottle will help in the unfolding process.
- Use the lowest level of subdivision possible.
- Try to imagine unfolding the object flat onto a table. If it will not flatten well, introduce seams and tucks into the model to help it unfold more easily.
Worldspace geometry has an environment variable related to the unfolding process. This variable is ALIAS_WORLDSPACE_TIMEOUT. The variable can be set to an integer value between 0 and 30 and represents the number of CPU minutes the entire unfolding process has to complete before a time-out is declared.
A value of 0 represents an unlimited TIMEOUT, which may result in an extremely long or (possibly) endless unfolding. Before using a time-out value of 0, try a 10 or 20 minute time-out value in QuickRender, to estimate the time that may be necessary for the unfolding. This will be a very rough estimate because the time increase is exponential.
How far the unfolding gets before a time-out depends on the computing power of the machine. Since the time-out is based on CPU time used by a process and its child processes, system load should not be a factor in the time-out. However, if additional load consists of spawned child processes, such as a rendering, running Paint or Scan, the child's CPU load is added to the parent's time.
The unfolding process consists of five stages, as follows:
- Unfolding Pattern.
- Relaxation Pass 1 (the fastest pass, it counts down from 52 by 2).
- Surface Refinement (counts down from the total number of triangles in the pattern by 100).
- Sorting triangle edges (the number displayed is the number of triangle edges in the pattern-this number does not count down.
- Relaxation Pass 2 (this is the slowest stage and the one that does the most work). Ensure that at least a couple of iterations in this stage get performed for some kind of reasonable results. The countdown for this stage is from 152.
To halt the operation during stage 5, press the Esc key. The unfolded pattern is displayed at the current stage of refinement.
How to Use
- 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.

- 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.
- To join the surface patches, select Define world pattern. The system prompts:
Select edge
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
- Faces cannot be joined.
- Individual patches on a surface need not be joined. Only patches on separate surface components need to be joined if continuity is required across the surfaces.
- Changing joins changes the placement of the texture on the surface.
- Deleting a surface component from a group used in worldspace texture mapping removes all existing joins in the entire group.
- If you have more than one texture on a shader, you can map one in worldspace, while mapping the other parametrically on the same surface.
- Performing a non-proportional scale of an object changes a worldspace mapping. If you perform an Xform
Non-p scale, force a rebuild of the pattern by picking a CV, selecting transform and clicking in the modeling window.
- Worldspace texture-mapped surfaces may not render correctly when animated, as the mapping is likely to be different for every frame.
QuickRendering also regenerates the pattern. To view the rebuilt pattern after a QuickRender, click in the window and the outline is updated. Transforming components, nonp scales, changing render subdivision, morphing, trimming, adding or deleting CVs, aligning, and detaching surfaces all invalidate.
In general, any operations that affect the basic geometry of surfaces will force saved geometry to be recalculated.
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:
- any change to the geometry itself (for example, metamorphosis),
- any change to the object's attributes (for example, changing to a new shader, increasing or decreasing the subdivision),
- any change to the relationship of items that participate in a common pattern (that is, if more than one patch is involved through shared edges, then any transformation or grouping operation below the common parent invalidates the whole pattern).
- Worldspace patterns can be composed of several patches. They do not, by definition, depend on the parameterization of the surfaces. To do this, they are formed at the last minute after the subdivision has taken place and after the objects have been transformed. Therefore, the patterns are sensitive to the actual subdivision that takes place, and to the transformations that are applied.
While the overall shape of a pattern is not expected to change greatly, the orientation of the pattern in the texture plane is not as stable. This is most noticeable when the subdivision changes. It is also noticeable when the relationship of the textured objects with the camera changes.
Therefore, unlike working with parametric or solid textures, don't perform texture placement and test images at lower or higher quality, switching to a final subdivision level for the finished product. The change in subdivision causes the worldspace textures to shift on the surface. Perform one final texture placement at the same quality (with respect to subdivision) as the final rendering.
- Only use worldspace mapping where you really need it and can actually see the difference.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.