KhronosGroup / glTF-Sample-Viewer

Physically-Based Rendering in glTF 2.0 using WebGL
Apache License 2.0
1.27k stars 234 forks source link

KTX Textures look blocky from some angles/distance #298

Closed rsahlin closed 3 years ago

rsahlin commented 3 years ago

From certain distance and/or angles a model with KTX textures look blocky. This is not due to compression artefacts since the model looks good in some other viewer for instance KTX textures are a mix of UASTC/ETC1S and are compressed using high quality.

Mid section looking blocky - perhaps no anisotropic filtering and issues with mip-levels and/or texture filtering?

image

The same model from a distance shows more blockiness - looks like filtering is not turned on and/or a mip-level problem.

image

KTX model used: https://github.com/KhronosGroup/glTF-Sample-Models/tree/stained-glass-lamp-ktx-highquality

UX3D-nopper commented 3 years ago

This should fix the problem: https://github.com/ux3d/glTF-Sample-Viewer/tree/fix/KTX2_mipmap Will review with my team tomorrow.

UX3D-becher commented 3 years ago

299 fixes this