NICE filtering

From Valve Developer Community
Revision as of 07:21, 11 January 2008 by Andreasen (talk | contribs) (Source is from Talk:VTF.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NICE is the default mipmap resize kernel used by Vtex. It is a 7x7 matrix similar to the Sine Cardinal kernel available in VTFLib. It is a good general purpose kernel that gives sharp results.

While there is no "best" kernel (which is one of the reasons VTFLib offers so many kernels) NICE filtering is better than simple box-filtering because it preserves high-frequency information: Textures mipmapped with it look less blurry than those mipmapped with box filtering.

An implementation of the NICE filter can be found inside the imageloader.cpp file in the Source SDK.

Further reading

  • Blinn, James F.: Jim Blinn's Corner: Dirty Pixels, Morgan Kaufmann Publishers, Inc., ISBN 1-55860-455-3