Three.js GLB纹理模糊不清。

huangapple go评论69阅读模式
英文:

Three.js GLB texture is blur not clear

问题

我正在尝试在我的项目中导入一个GLB模型。但是纹理模糊,有人可以帮忙吗?

您可以在这里找到代码。

我在以下查看器中看到了模型,纹理要清晰得多。
https://gltf-viewer.donmccurdy.com/

我还尝试添加了getMaxAnisotropy(),但也没有任何变化。

英文:

I am trying to import a GLB model in my project. But the texture is blur can someone help here.

You can find the code here.

I have seen the model in the following viewer and the texture is much clear.
https://gltf-viewer.donmccurdy.com/

I have also tried adding the getMaxAnisotropy() but it's also not making any difference.

答案1

得分: 1

明白。

基本上问题出在renderer.setSize( 640, 480 );上。

只需将其更改为renderer.setSize( window.innerWidth, window.innerHeight );就解决了问题。

英文:

Got it.

Basically the problem was with the renderer.setSize( 640, 480 );

Just changed it to renderer.setSize( window.innerWidth, window.innerHeight ); and it solved the problem.

huangapple
  • 本文由 发表于 2023年6月5日 21:15:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/76406794.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定