The texture is distorted when camera is far

1. A concise explanation of the problem you’re experiencing.

The texture in gltf 2.0 model looks different when camera is far away. The wood texture is distorted in the far view.

Thanks

Chris

Hi Chris,

The aliasing you’re seeing is a Moiré pattern - https://en.wikipedia.org/wiki/Moiré_pattern

One thing that might help is changing the minFilter property of the glTF sampler. Try seeing which of the following values looks best:

  • 9984 NEAREST_MIPMAP_NEAREST
  • 9985 LINEAR_MIPMAP_NEAREST
  • 9986 NEAREST_MIPMAP_LINEAR
  • 9987 LINEAR_MIPMAP_LINEAR
    Example sampler:
{
    "samplers": [
        {
            "magFilter": 9729,
            "minFilter": 9987,
            "wrapS": 10497,
            "wrapT": 10497
        }
    ]
}

Thanks Sean

I have tried the 4 values for minFilter,

But the Moiré pattern still exists.

The minFilter here is 9987, the left one is without samplers, the right is with samplers.

I don’t if I do it right.

Chris

在 2018年1月12日星期五 UTC+8上午8:33:15,Sean Lilley写道:

Ah too bad… unfortunately there’s not much else you can do to fix that.