This is a beginner-level question about minFilter. I’ve read the docs for the minFilters options [texture constants]((three.js docs)) and I’ve looked carefully at the linked Carravagio example:
texture filtering example.
I can see a clear difference for MagFilter, but I can’t see any detectable difference for minFilter. I even created an example, based on the checkerboard floor of the above example, using an 8x8 black and white texture and a tilted 10x10 plane. Here are two screenshots, one with minFilter = nearest and the other with minFilter = linear, and I can’t see any difference between the two. What should I be looking for? What kind of properties does the texture and scene need to see an effect of minFilter? Thanks for any hints.
Scott Anderson
1 Like
The min filter comes into effect when the texture pattern is comparable or smaller than pixel size. Without this filter you will get pixel noise. Try with your example, but use very large plane, so that black and white squares in the distance are very small.
Here is a snapshot without filtering (see the pixels in the far distance, especially while changing the camera):
Here is the same scene with filtering:
Note that min filtering is not panacea. It tends to blur the pattern into some average color. AF (anisotropic filtering) gives better result by preserving distant details.
6 Likes
Thank you! I made the plane much larger, but more importantly (I think), I repeated the pattern 50 times, so that the checks are very small. Now I can see a change in the farther checks. Have I understood this correctly?
1 Like
Yeah, something like that – although I have never witnessed such drastic difference (the Moiré effect is somewhat expected, it is one of the texture evils)
3 Likes