Skip to main content

Patchwork 3D Enterprise 2025.1 X8

Diffuse

Light does not pass through a diffuse layer. Light is either absorbed, or returned to the eye of the observer. The Diffuse tab groups the settings related to this diffuse layer.

Diffuse Color

The color of the diffuse layer is influenced by several settings: the color Filter, the lighting environment conditions, the ambient color, and the illumination color, among others.

The color Filter setting corresponds to the color perceived when the material is lit by white light. As the material reacts like a filter, it reflects part of the light it receives. The perceived color of an object is thus greatly influenced by the lighting environment. If we consider that white light is made up in equal parts of green, red and blue (empirical computer model), then a black body absorbs all these components, a white body reflects them without alteration, a red body absorbs the green and blue, etc.

Influence of the lighting environment conditions on the color of a material.
Influence of the lighting environment conditions on the color of a material.
Influence of the lighting environment conditions on the color of a material.

Influence of the lighting environment conditions on the color of a material.

The creation of a new material should thus imperatively be performed in a neutral light environment, for example, the default environment in the Matter module.

The parameter Intensity allows you to amplify or attenuate by a multiplicative factor the effect of the light environment on the material.

The Ambient color parameter allows you to add a constant color. It is common practice to add a light gray to lighten a material. However, we would advise you to limit the amount of ambient light since a material of relatively dull appearance originates from a relatively dull environment.

The effect of an ambient color on the appearance of a yellow material. Gray ambient color.
The effect of an ambient color on the appearance of a yellow material. Red ambient color.

The effect of an ambient color on the appearance of a yellow material. Left: gray ambient color. Right: red ambient color.

The effect of an illumination color on the appearance of a yellow material. The same samples from the preceding figure are shown here with a blue illumination.
image664.png

The effect of an illumination color on the appearance of a yellow material. Left: ambient gray color + blue illumination color. Right: ambient color red + illumination color blue.

Color Map

Some materials have a pattern or motif that is created by repeating or not an image across the surfaces to which the material is assigned. The Color Map settings are used to assign, resize, and position the first instance of such an image.

Color maps are image or video textures. To use a texture as a color map, drag it from the sidebar texture library and drop it in the color map zone. To be shown, the color map must also be enabled by ticking the checkbox next to the color map zone.

The texture dimensions are used by default for an image texture.

For a video texture, the longest edge of the format is scaled to one meter by default. The format's aspect ratio is respected. Any texture used as a color map will repeat.

You will find in the accordion menu named Mapping the following parameters Allow repeat in U and Allow repeat in V that allow you to choose to repeat the texture in U and/or V. By checking the Mirrored checkbox you can reflect the texture in U and/or V.

Reducing moiré on high-frequency textures

Notice

New Features in Patchwork 3D 2025.1 X8

Available in: Matter > Material Library image641.png > material > Diffuse > Color Map > Resolution offset

Principle

The Resolution Offset parameter adjusts texture sampling to attenuate moiré artifacts on dense patterns (houndstooth, tweed, technical weaves), without degrading the perceived detail.

When to use it?

To be used for:

  • showing in real-time materials with dense patterns that tend to generate moiré when rotating/zooming.

  • filtering textures of a material to stabilize the pattern according to the angle of view.

  • analyzing materials before they are validated.

Symptom

Action on Resolution offset

Expected behaviour

Moire is visible during camera movements (rotation/zoom).

Increase the value slightly.

Stable pattern, attenuated interference.

Texture perceived as too soft after adjustment.

Reduce the value and reevaluate at several distances.

Stability/sharpness compromise restored.

Persistent artifacts with sharp angles.

Refine the value and check for anisotropic/antialiasing filtering.

Additional reduction in directional flicker.

Adjusting the Resolution offset for Diffuse
  1. Starting from the Material Library image641.png, double-click on the material that needs adjustment to reduce the moiré effect. The Materials editor opens.

  2. In the Diffuse tab, locate the accordion menu Color Map and click on the None button to open the Texture Library Textures.png.

  3. Starting from the Texture Library Textures.png, drag and drop the desired texture onto the None button.

  4. Accordion menus Color Map, and Mapping unfold. In the latter, select the desired value for the Resolution offset parameter.

  5. Increase the Resolution offset gradually until the pattern is stabilized, without superfluous blur.

  6. Validate on several angles and distances to highlight a possible Moiré (before and after comparison if necessary).

Média

Use case for reducing the moiré effect on the upholstery of the seat of a chair using the Resolution Offset parameter.

Transparency of the Diffuse Layer

The transparency of a standard material of the Diffuse or Diffuse and Reflection classes can be adjusted directly fromthe Materials Editor using the Opacity modulator:

The "Transparency" accordion menu lets you use a texture for controlling the transparency of the material. The alpha layer contained in the images (PNG format) is used to define the transparency of the texture.

The Transparency accordion menu lets you use a texture for controlling the transparency of the material. The alpha layer contained in the images (PNG format) is used to define the transparency of the texture.

If the texture used as image alpha does not have an alpha channel (JPG image), it is the alpha or the luminosity of the image color map that is used as the alpha channel. In this case, check Use color map transparency. The darkest colors correspond to the most transparent areas:

By checking the "Mirrored" checkbox you can reflect the texture in U and/or V.

In the accordion menu you will find Projection :

  • Notice

  • The Allow repeat on U and Allow repeat on V parameters allow you to repeat the texture on U and/or V.

    By checking the Mirrored checkbox you can reflect the texture in U and/or V.

Filter According to View Angle

Some materials have a color that changes according to the angle of observation. This effect is implemented using a gradient ramp. Click on the Gradient image134.png Editor button from the accordion menu called Advanced in order to modify the gradient that is used.