Skip to content

Severe Moiré Pattern / Aliasing Artifacts When Downscaling High-Frequency Images #658

@vzsoft

Description

@vzsoft

Hi,

When displaying an image files, and I've encountered a significant visual issue when resizing images that contain high-frequency, repeating patterns (like a fingerprint or fine-lined textures).

Problem Description
When the image is rendered at a smaller size than its original resolution (downscaling), it produces severe Moiré patterns and aliasing artifacts. The fine lines of the original image merge into large, distracting, wavy bands, completely distorting the image.

This appears to be a classic texture minification problem.

Visual Example
Expected Behavior (Original Image at 1:1 or properly filtered): The image should show clear, distinct lines. (
Image
)

Actual Behavior (Downscaled Image): The image shows strong Moiré patterns and artifacts. (
Image
)

Possible Cause
This strongly suggests that Mipmaps are either not being generated for the image texture, or the texture sampler is not using an appropriate filter (like Trilinear or Anisotropic) when downscaling. The sampler seems to be using a simple Bilinear or Nearest Neighbor filter, which is insufficient for high-frequency textures and causes this aliasing.

Thank you for looking into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions