Common map extraction options

Options available in the Extract Texture Maps window depend on the map types you select in the Maps to Generate list, and on the Map Type you specify in the Output options (Ptex or Texture).

This topic describes the options common to all map types. For options specific to each map, refer to the links below.

Name

Enter a name for the texture extraction settings to re-use the same operation later. The saved operation appears as an option the next time you select UVs & Maps > Extract Texture Maps.

Maps to Generate

Select the map types you want to generate. The Extract Texture Maps window displays options for each map type as you select from this list.

Extraction Options

Expand the following for options in each area of the Extract Texture Maps window.

Target Models

Displays the name of the model to receive the extracted map. The map produced will represent the difference between this model (low resolution) and the source model(s) (high resolution).

Note: Unless you are extracting maps in PTEX format, the target model must have UV co-ordinates.

The target model is usually the lowest subdivision level of a model with multiple subdivision levels. You can click the displayed subdivision level (next to the target model name) to select a different subdivision level from a drop-down list.

Use the Add All, Add Selected, and Remove buttons to change the model listed as the target.

Smooth Target Model

On by default. Uses a smoothed version of the target model (low resolution) for map extraction calculations. Turn off if you are extracting texture maps for games applications where a smoothed model is not used.

Smooth Target UVs

Smooths the positions of interior UVs of the target model during the texture extraction. Smooth Target UVs only smooths when the Smooth Target Model option is on.

This can be useful if your image rendering software (for example, Arnold for Maya or Arnold for 3ds Max) can smooth the UV texture coordinates on a mesh during rendering to improve the results.

Use Creases & Hard Edges

For target models with creasing or hard edge data (see Import and export objects with creasing and hard edges), lets you set how Mudbox handles the creasing information when extracting texture maps.

When on, Use Creases & Hard Edges affects the operation of other map extraction options. If you are smoothing your target mesh (Smooth Target Models is on), it ensures that the creases are maintained in the smoothed mesh. If you are using Ray Casting, it ensures that vertex normals are used to map the surface together (rather than face normals). If you are creating a normal map, it ensures that the local tangent space calculation takes the creases and edges into account, rather than interpolating smoothly over the model.

Source Models

Lists the model(s) to extract maps from. The source model (high resolution) typically contains the sculpted details to be extracted into the map(s). This model does not require UV texture coordinates.

You can click the displayed subdivision level (next to the source model name) to select a different subdivision level from a drop-down list. Use the Add All, Add Selected, and Remove buttons to change the model listed as the source

Smooth Source Model

On by default. Subdivides the source model and uses the smoothed version for map extraction calculations. This option is useful for most texture extraction applications.

Method options

Method

Determines how the source and target meshes are compared during texture extraction. Select from the following methods:

Ray Casting

Extracts a texture map by recording the distance (as a pixel value) between the source and target models based on sample rays cast along the surface normals of the target surface. The number of sample rays cast depends on the texture map resolution.

Use this method when extracting maps between arbitrary meshes (meshes with differing topologies), and ensure that you manually align the models as accurately as possible before extracting. Artifacts in the resulting texture map can sometimes occur (particularly with overhanging features) that require editing afterwards.

Subdivision

Extracts a texture map by recording the distance (as a pixel value) between one subdivision level and the corresponding point at a higher subdivision level on the same model. Use this method only when extracting texture maps between different subdivision levels on the same model.

The resulting texture map will contain fewer artifacts compared to the Ray Casting method, requires no setup or alignment between separate models, and performs the extraction more quickly. However, Subdivision does not capture the height differences as accurately as the Ray Casting method, particularly when vertices on the higher subdivision level have been translated off normal compared to the lower subdivision level, which can occur when using the Grab or Pinch tools.

Choose Samples

(For map extraction, available only when Method is set to Ray Casting.) Controls how the extraction process matches points on the target model to points on the source model, and determines which value to record if an extraction sample intersects the high-resolution model more than once.

For example, given a target mesh with a relatively smooth surface (shown in cross-section in blue):

And using a source mesh with a detailed, wavy surface (shown in cross-section in black):

The following sections illustrate the Choose Samples options available.

Furthest outside

Samples and finds points furthest out from the source model(s) up to the range specified by the Search Distance.

Furthest inside

Samples and finds points closest to the interior of the source model(s).

Closest or Closest to lowres mesh

Samples and finds points closest to the target model.

Search Distance

(For map extraction, available only when Method is set to Ray Casting.) Sets the maximum distance samples can travel from the target model surface in search of a corresponding point on the source model surface. Samples can travel on both sides of the target model based on the Choose Samples option.

The Search Distance is a physical measurement that determines how far Mudbox searches to find sculpted detail on the source model(s). It should be slightly larger than the distance between the maximum absolute displacement between the high resolution (source) mesh and the low resolution (target) mesh. Click Best Guess if you are unsure.

If set too small, some detail will be cut off or flattened in the resulting map. If set too large, the resulting map can have precision errors, leading to jagged edges in the map. You may need to experiment with the Search Distance value and generate several maps to find the best results. See also Troubleshoot texture extraction.

Tip: To determine the distance between the source and target meshes, you can estimate the distance using the vertical line on the Sculpt tool that indicates the brush strength as a starting point. This line represents the distance the center of the tool moves the vertices in the current Mudbox units (the default is centimeters).
Best Guess

Sets the Search Distance option based on the distances of the bounding boxes for the source and target model. This option provides a useful estimate for the Search Distance provided the two surfaces are not too far apart.

Test Both Sides

(For map extraction, available only when Method is set to Ray Casting.) Off by default. so that intersections are ignored when the ray intersects a surface that is facing in the opposite direction. When on, Mudbox records ray intersections with source faces that are backfacing. This improves extraction results when a number of intersecting meshes are used as the source model.

Note: The Image properties options display when you have Map Type set to Texture in the Output options. PTEX resolution options display when you set Map Type to Ptex.

Image properties

(Available only when you set Map Type to Texture.)

Generate one map for all targets

Use this option when extracting to multiple targets if you want one map generated (for each extraction type selected) that can be shared by all target models. This is useful for conserving the number of texture maps when multiple objects share one UV tile.

Important: When generating one map for multiple targets that share the same UV tile, ensure the models do not have overlapping UVs.
Generate one map for each target

Use this option when extracting to multiple targets if you want one map extracted for each individual target model. This is useful when the target models use different materials or when the UV texture coordinates occupy the same UV tile location and producing one shared map would not be possible.

Image Size

Specifies the height and width in pixels of the output map(s).

Note: A larger Image Size produces more detail in the map, but increases extraction time and file size.
Edge Bleed

Specifies the size of the border that is automatically extended outside the perimeter of a UV shell when painting on a model. Extending paint pixels beyond the perimeter edges reduces the appearance of seams on a painted model where separate UV shells meet.

There are two options Global (default) or Custom. The default Edge Bleed setting, Global uses the Edge Bleed value set in the Paint Preferences, while Custom lets you set an Edge Bleed value used only for Map Extraction. (See Texture extraction overview

Note: When Edge Bleed is set to Global (the default), modifying the Image Size value automatically updates the value in the Edge Bleed Pixel field, as it is determined by the Paint Preference and Image Size values. If you set the Edge Bleed value to Custom, changing the Image Size setting does not affect the Edge Bleed pixel input field; the Custom setting means this value is now absolute.
Antialiasing

When on, improves the quality of the final extracted image map by applying a filter comparison between pixels in the image. Higher values increase the amount of antialiasing that occurs and the time to extract the image map. For initial test extractions, use a small Image Size value and leave the Antialiasing property turned off until you produce a final image.

PTEX resolution options

(Available only when you set Map Type to Ptex.)

Set these options to determine the number of texels in your final map, and how they are distributed across the mesh.

Density

Default is 0.5.

Number of Texels

Lets you enter the desired number of texture samples (texels) for the extracted map. (Default is 100 000.)

Note: Not available if Texel Distribution is set to Use PTEX Setup.
Texel Distribution

Lets you control how texels are distributed over the surface. Select from the following options:

Uniform

Applies a similar amount of resolution to all faces, independently of the face attributes, and depending on the Number of Texels amount you enter.

Note: This method does not guarantee that all faces receive the same resolution, only that Mudbox tries to distribute resolution as uniformly as possible while matching the desired Number of Texels. Some faces may have one step higher resolution than others.
Based on Face Size

More resolution is added in areas with bigger faces in world space.

Based on UV Size

More resolution is added in areas with bigger faces in UV space.

Use PTEX Setup

(Only available when the target mesh is set up for PTEX painting - see Prepare a model for PTEX painting.) Applies the same texel distribution you defined during PTEX setup.

Output options

Map Type

Lets you specify whether to extract a Texture map or a Ptex file.

The other Output options available change depending on which type you select.

Available when Map Type is set to Texture:

Base File Name

Enter a name for the extracted map(s). To have Mudbox automatically append the target mesh name to your filename, use the wildcard characters %s.

Important: If you are extracting a map for multiple target meshes and Generate a map for each target is on, ensure that you use %s as part of your Base File Name. (Otherwise the map generated for each target will have the same name and overwrite the map output for the previous target.)

Click the browse icon to set save options (including file format) in the Save As window.

Note:

If the model contains UVs within multiple UV tile spaces, that is, outside the 0 to 1 range, Mudbox automatically creates separate maps that correlate to each UV tile and saves to the directory you specify. For example, <basefilename>_u1_v1.bmp, <basefilename>_u2_v2.bmp, and so on.

Bits per Channel
Lets you specify the color depth of the output map.
Note: To change the format of the output image file, click next to Base File Name to open the Save As options.
Preview as

(Different Preview as options display depending on the type of map you're extracting. Refer to the options for each specific map type.)

Available when Map Type is set to Ptex:

Include Mesh Data

When on (default), Mudbox also saves general data about the mesh (vertex positions, list of faces, and so on) in the output PTEX file. This can be useful if other tools in your pipeline can use this type of PTEX data, for example if you will use a PTEX viewer to inspect the output file. It is recommended that you keep this option on when extracting PTEX files.

File Name

Enter a name for the extracted Ptex file.

Click the browse icon to change the default save location in the Save As window.

Note:

If the model contains UVs within multiple UV tile spaces, that is, outside the 0 to 1 range, Mudbox automatically creates separate maps that correlate to each UV tile and saves to the directory you specify. For example, <basefilename>_u1_v1.bmp, <basefilename>_u2_v2.bmp, and so on.

Data Format

Depending on the type of map (or maps) you're generating, lets you specify the bit depth for the extracted Ptex file. (Options include 8 bit integer, 16 bit integer, 16 bit float, or 32 bit float.) The larger the bit depth you select, the higher the precision in the extracted files, and the larger the file size.

Other extraction options

The remaining options appear below the map-specific options.

Delete this operation

Quits the texture extraction operation without outputting a map or saving any settings.

Extract

Starts the texture extraction operation using the current settings.

Close

Quits the texture extraction operation without extracting a map.

Related topics

Texture extraction overview

Extract a normal or displacement map

Extract an ambient occlusion map

Troubleshoot texture extraction