Edited wiki page through web user interface.

This commit is contained in:
castano 2007-11-22 01:07:17 +00:00
parent 3104782b13
commit 686c20ea8f

View File

@ -76,7 +76,7 @@ If the width, height or depth of the provided mipmap does not match the one expe
Again, since 3D textures are not supported, the depth argument should always be set to 1.
*TODO*: explain how the size of the mipmaps are computed, specially for non powers of two.
*TODO*: explain how the size of the mipmaps is computed, specially for non powers of two.
=== Mipmap Generation ===
@ -108,16 +108,15 @@ It's possible to specify what filter should be used using the `filter` argument.
`MipmapFilter_Kaiser` is a Kaiser windowed sinc filter. That's generally considered the best choice for downsampling filters, but in order to obtain best results it may be required to tweak some of the parameters of the filter, otherwise the resulting images could suffer from ringing artifacts or the result may not be as sharp as desired. The default values of the parameters are generally safe, but it's possible to tweak them using the following method:
{{{
void InputOptions::setKaiserParameters(int width, float sigma, ...);
void InputOptions::setKaiserParameters(int width, float alpha, float stretch);
}}}
The default values are:
{{{
inputOptions.setKaiserParameters(#, ...);
inputOptions.setKaiserParameters(10, 8.0f, 0.75f);
}}}
*TODO*: Add exact options for the Kaiser filter.
*TODO*: Explain how the options affect the results.
When evaluating the color of texels that are near the border, the Triangle and Kaiser filters usually sample outside of the texture. By default, NVTT assumes the texture wrapping mode is to mirror, because that generally looks good, but better results can be achieved by explicitly specifying the desired wrapping mode. That can be done with the following method: