Closed julienduroure closed 3 years ago
This is probably supposed to be LinearMipmapNearest (do linear filtering with the nearest mipmap), not NearestMipmapLinear (do nearest filtering with the two closest mipmaps, then average them).
Changed line 79 as suggested by scurest and it's better now. But something is still missing/wrong please see attatched picture. "2.91.0_mod" is exportet from Blender with line 79 changed to "LinearMipmapNearest".
Try LinearMipmapLinear.
"79 return TextureFilter.LinearMipmapLinear" did the job :)
To explain what happens: Linear has been (incorrectly) exported as NearestMipmapLinear since at least 2.81, but before 2.91 the sampler would be omitted for textures that are Linear/Repeat in Blender. When the sampler is omitted, the viewer picks the filtering on its own. This was changed to fix #307 (texture was Linear in Blender, but sampler was omitted, and a viewer could pick nearest filter); the sampler is now never omitted. That means the viewer is no longer picking the filter to use itself, it's using the one specified in the .gltf file.
@f3lix-s Ah, thanks.
Here is what it looks like in Blender
So yeah, LinearMipmapLinear looks like it's closest, let's do that.
Thank you for your solution and explanations! I am quite new in coding and new in Blender as well. Coming from Cinema 4D with the aim for three.js ...
And this was my first reported bug ever, what an exiting day ;)
@f3lix-s Nice work finding this :)
I opened #1286.
See https://developer.blender.org/T83426
Broken: version: 2.91.0 Worked: 2.90.1