javascript - Texture on Sphere fuzzy after version upgrade -
after upgrading r67 r86, our footballs not sexy anymore. did have similar issues in past?
the code used render spheres nicely, messes texture (and lighting, can live that) in version r86.
the part creates spheres:
const material = new three.meshphongmaterial({ map: texture, transparent: false }); material.alphatest = 0.5; const geometry = new three.spheregeometry(radius, res, res); const mesh = new three.mesh(geometry, material);
in comment, suggested checking uvs. suggestion try different min/mag filter values (http://threejs.org/docs/#api/constants/textures) more correct image quality, texture mapping self.
what didn't notice texture spherical. standard linear filter mapped texture, well, linearly. weighting/averaging of linear filter caused mapping become compressed toward top (and bottom, though wasn't noticeable).
setting texture.minfilter = three.nearestfilter; ditched weighting/averaging of texture coordinates, instead mapping nearest pixel, perfect because of spherical texture.

Comments
Post a Comment