Fitting maps are optional grayscale images that you can add to a WrapLayer on a layered accessory to control how it fits different character bodies. Without fitting maps, a layered accessory stretches to match the body underneath it, like a rubber shell. With fitting maps, you can choose which parts of the accessory follow the body and which parts keep their authored shape and proportions.




Fitting maps are additive. Existing layered accessories keep working without changes, and you don't need to migrate them. A layer without fitting maps keeps the standard fit, so one avatar can mix layers that use fitting maps with layers that don't.
Fitting methods
Fitting maps blend between two fitting methods:
- RBF, also called legacy RBF, is the standard fitting method for layered accessories. It stretches the accessory to match the body underneath.
- ShapeFit is the newer fitting algorithm. It reads the fitting maps on an accessory and fits the accessory to the target body while it keeps the shape that the fitting maps define.
The standard fit stretches every part of an accessory to match the body, which causes two common problems:
- Structure collapse - Stiff parts, such as hat brims, collars, and shoe soles, melt into the shape of the body instead of holding their form.
- Proportions change - An accessory that looks right on one body loses its intended proportions on another, so you end up designing for a body type instead of a style.
Fitting maps solve these problems by letting you mark the areas that hold their shape. For example, on a cap, the bill can stay rigid while the crown conforms to the head.
Fitting map values
Each fitting map is a single-channel 8-bit image in UV space, up to 1024 pixels on each side. Studio reads only the red channel. Each vertex on the accessory reads the pixel nearest its UV coordinate.
The value at a vertex controls how its fit behaves:
- 0 (black) keeps the vertex on the standard fit, which uses RBF.
- 255 (white) limits the fit of the vertex to the transforms that the map allows, which uses ShapeFit.
- Values in between blend the two. Higher values follow the white behavior more closely.
For example, to keep the bill of a cap rigid while the crown conforms to the head, paint the bill white and the crown darker.


Fitting map types
Each fitting map is a different WrapLayer property that determines how the accessory should move. At full strength (255), each map allows only the transforms listed in the following table.
| Property | Transforms allowed at full strength | Typical use |
|---|---|---|
| RotateUniformScaleContent | Translation, rotation, and uniform scale | Hats, pauldrons, and backpacks. These accessories scale evenly with the body and rotate with the body part they attach to. |
| UniformScaleContent | Translation and uniform scale | Shoes, pins, and tails. These accessories keep their orientation. A shoe sole stays aligned to the ground, pins stay aligned to the front, and tails stay aligned to the back. |
| NonUniformScaleContent | Translation and scale along the avatar root's X, Y, and Z axes, with no rotation | Dresses, skirts, and long coats. A skirt scales its length and width independently based on the legs, and it doesn't tilt as the legs move. |
If more than one fitting map is nonzero at the same vertex, the map with the highest value at that vertex applies, at its own value. For example, if a vertex is 200 on WrapLayer.RotateUniformScaleContent and 50 on WrapLayer.UniformScaleContent, the rotate map applies at 200 and the uniform map has no effect at that vertex.
If two or more maps are exactly tied, Studio uses this priority order:
TargetShaping
WrapLayer.TargetShaping is a number from 0 (default) to 1. It affects only layers that use fitting maps.
- 0 holds the inner cage of the layer firmly to the body or the layered accessory underneath it.
- 1 removes that hold, so the accessory keeps its original shape and is less affected by the body shape.
- Values in between blend the two.
Create fitting maps
A fitting map is a black-and-white mask, so you can use any app that paints grayscale images to create fitting maps, such as Substance Painter, Photoshop, Maya, or Blender. To create a fitting map in one of these tools:
- Paint white on the areas that should keep their shape, black on the areas that should follow the body, and gray on the areas that should blend the two.
- Export the map as an 8-bit grayscale image that's no larger than 1024 pixels on either side.


Fitting map template
Roblox provides an Advanced R15 template that utilizes a mannequin body and advanced R15 rig to fit layered accessories with fitting maps.


As you use this template, consider the following:
- Use the layered accessory naming conventions.
- Match each layered accessory's asset name with post fix UniformScaleMap, RotateUniformScaleMap, and NonUniformScaleMap. The scale type chosen depends on the asset type, such as AssetName_UniformScaleMap.
- When you are ready to export your creation, export only the layered accessory and joints with fitting maps. When you later import the .fbx file, your fitting map automatically loads under the WrapLayer object's properties.
Creation best practices
Fitting maps work best on layered accessories that don't need to deform to extreme shapes and proportions and that don't interact closely with the body. Layered accessories that fit closely to the shape of the character body either shouldn't use fitting maps at all, or should use them very subtly and only where they don't interact directly with the underlying body.
It's important to identify where layered accessories should follow the character's body and where they should keep their original shape. The value differs according to the body types you are creating layered accessories for. The larger the difference that a layered accessories needs to accommodate, the less the garment should blend back to the original asset shape.
To demonstrate this principle, the following image examples subtly blend the black value into gray where the trench coat should drape away from the body. The buttons are whiter to maintain its original shape, and since they're close to the trench coat, it will follow the underlying value.


You can assign a fully white value to layered accessories that you want to stay rigid and keep their original shape. The following bow accessory uses a fully white value for this reason. If an accessory should keep some of the underlying body shape, you can use a value close to white, but not completely white.


Layered accessories that need to conform to the body while still keeping their structure and original shape benefit from blending to a darker value where it should fit over the body, and to a lighter gray where it should remain malleable while keeping its original shape. For example, the following backpack blends the straps to the overall backpack, and the paultrons blend the armored bird head from a lighter gray to a mid gray so it keeps its shape and still deforms over the shoulders it's worn on.




Similarly with skirts, it's important to blend from black where the waist should fit and deform to the waist size it's worn on to white where the skirt resists the wrap deformer. This keeps the skirt's original shape and drape.


Layered accessories with combined elements can be tricky, and they sometimes work better as separate assets. For example, because the following shoulder armor floats away from the underlying mesh, the artist painted them a darker value so they don't intersect the body.


To review any of these examples, download the following reference files.
Import fitting maps
After you create your fitting map in a third-party tool, you can import it into Studio and connect it to your layered accessory. To import a fitting map:
Import the image into Studio as a separate texture, then copy the asset ID of the texture.
In the WrapLayer properties, paste the asset ID into the matching fitting map property.


Fallbacks and limits
- If a fitting map fails to load, is larger than 1024 pixels on either side, or is unreadable, Studio uses the standard fit for that layer.
- Editing the pixels of an EditableImage fitting map doesn't refit the accessory until the next change to the layer.