Improve the accuracy of Shadow Map

Started by
1 comment, last by akira32 16 years, 2 months ago
I want to improve the accuracy of Shadow Map by the statement of sampler. How do I declare the values of "MinFilter" , "MagFilter" and "MipFilter"?(for best accuracy of approximation) Is the anisotropic filtering used to improve the accuracy of the approximation? And How to define the statements of the "anisotropic filtering" in sampler? texture ShadowMap0; sampler ShadowMapSamp0 = sampler_state { Texture = <ShadowMap0>; MinFilter = LINEAR; MagFilter = LINEAR; MipFilter = NONE; AddressU = Clamp; AddressV = Clamp; };
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32
Advertisement
Accuracy depends on the number of bits per pixel.
It's better to use POINT filtering as some older hw won't like linear filtering.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
I saw the paper of Adpative Shadow Maps.
It says that anisotropic filtering is used to improve the accuracy of the approximation. I doubt it.
akira32 編程之家 Yahoohttp://tw.myblog.yahoo.com/akira32-akira32

This topic is closed to new replies.

Advertisement