How to modify to mipmap bias more easily? Case Study

Unity引擎mipmap偏差值的默认值为“ -100”。
通常,推荐值为“ -0.5”。
但要自己设置艺术家。
如何更改设置?
研究如下。
您可以使用随附的Unity项目对其进行测试。

The default value for the Unity engine mipmap bias value is “-100″.

In general, the recommended value is “-0.5″.

But set up the artist yourself.

How can I change the settings?

Study below.

You can test it using the attached Unity project.

Select the texture and change the inspector from normal to debug.
如果更改为调试模式,则可以检查可通过Unity Script API访问的所有属性。
在众多属性中,mipmap与哪里相关?
很容易找到。
If you change to Debug mode, you can check all the properties that can be accessed with the Unity Script API.
Of these numerous properties, where are mipmap related?
It is easy to find.
如果向下折叠“纹理设置”,则将看到“ Mip Bias”设置。
The default is -100.
Let’s change this value to -1 and compare the screens.
  1. Trilinear sampling is recommended and there is no difference in anisotropic sampling over 4
  2. Use to Kaiser filter for mipmap sampler.
Default ( -100)
Changed mip bias to -1.

通过绘制可以很容易地了解到倾斜的作用。

比较mip-chain 12(更改为-1)和mip-chain 12(-100)。

您必须已经了解。
偏差值越接近0,则拖链链阶向相机拉的越多。
这意味着内存缓存会略有增加。
这也意味着要采样的像素数量增加了。
所有都是与性能相关的问题。
再次简单地说,以Mip链12为例,将Mip偏差更改为-1可提高距离的纹理质量,但这意味着应采样4个像素。默认的Mip链为-100,仅 采样一个像素。 这意味着您可以做到。
这意味着,当您靠近相机时,需要采样的像素数也会增加。
总之,仅在必须非常谨慎地使用此功能时,才应部分使用Artist或TA。

在下一课中,让我们研究如何克服远场模糊的mipmap现象而不改变mip偏差。

You must have already understood.
The closer the bias value is to 0, the more the mip chain step is pulled towards the camera.
This means that the memory cache is slightly increased.
It also means that the number of pixels to be sampled has increased.
All are performance related issues.
To put it simply again, taking mip chain 12 as an example, changing the mip bias to -1 increases the quality of the texture in the distance, but it means that 4 pixels should be sampled.The default mip chain is -100, only one pixel is sampled. It means you can do it.
This means that as you get closer to the camera, the number of pixels that need to be sampled also increases.
In conclusion, the artist or TA should be used very partially only when it is necessary to use this function very carefully.

In the next lesson, let’s study how to overcome the blurry mipmap phenomenon of far-field without modifying the mip bias.

카테고리:tutorials

Tagged as:

답글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Google photo

Google의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 /  변경 )

%s에 연결하는 중