Shape mapper

table 0-row-2 0-border-0px 1-border-0px 1-width-33.33% 2-border-0px 2-width-100.00% html-authored no-header

Shape mapper - Icon {width="200px"}

In: Texture generators > Patterns

Description

Projects an input image along a circle or polygon.

The projection deforms the image to follow the shape’s outline, and make it fit exactly a specified amount of times without gaps.

table 0-row-4 0-border-0px 1-border-0px 2-border-0px 3-border-0px 4-border-0px html-authored no-header

Inputs

Outputs

Parameters

Examples

Inputs

table 0-row-2 1-row-2
Input Grayscale The pattern which should be placed along the shape.

Outputs

table 0-row-2 1-row-2
Output Grayscale The result of the projection of the pattern along the shape, as a grayscale bitmap.

Parameters

table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2 7-row-2 8-row-2 9-row-2 10-row-2
Shape Integer

Sets the type of shape along which patterns should be placed:

  • Circle
  • Polygon
Pattern amount Integer The amount of patterns placed along the selected shape.
Link segments with pattern amount Boolean   Available when ‘Shape’ is set to ‘Polygon’ Use the Pattern amount as the number of Segments.   This prevents patterns from wrapping around corners, ensuring a straight and consistent aspect.
Segments Integer   Available when ‘Shape’ is set to ‘Polygon’ and ‘Link segements with pattern amount’ is set to ‘False’ The amount of segments for the polygon along which patterns are placed.   Segments are evenly sized, and all vertices are equidistant from the center, such that increasing the amount of segments makes the polygon converge towards a circle.
Radius Float A multiplier for the radius of the shape, where 1.0 is half the length of the image’s shortest side.
Width Float A multiplier for the width of the patterns along the shape, where 1.0 is half the length of the image’s shortest side.
Rotation Float The amount of rotation applied to the shape, in number of turns clockwise from the horizontal right.
Flip one on two Boolean Flip one every other shape vertically.
Filtering mode Integer

The method of filtering applied to the patterns placed along the shape:

  • Nearest: Applies the value from the closest projected pixel as-is, resulting in a crisper yet aliased look.
  • Bilinear: Applies a bilinear filter to interpolate the projected pixel with its neighbors, for a smoother yet blurrier look.
Non-square expansion Boolean In non-square images, keeps the generated shape square and expands the image generation to the image’s bounds.

Examples

table 0-row-2 0-border-0px 1-border-0px 2-border-0px html-authored no-header
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23