Sign in to follow this  
wanzi

Activate PCF for NVIDIA cards

Recommended Posts

I know NVIDIA cards can perform Percentage Closer Filtering on hardware, is it just as simple as applying GL_LINEAR to ARB_SHADOW texture? Is it all?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It's just bi-linear filtering of the four nearest shadowmap comparison results. It usually looks OK, but it's absolutely unrelated to PCF. PCF is something entirely different and involves taking multiple comparisons per texel (usually 16 or more in a 4x4 pattern).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Anonymous Poster
It's just bi-linear filtering of the four nearest shadowmap comparison results. It usually looks OK, but it's absolutely unrelated to PCF. PCF is something entirely different and involves taking multiple comparisons per texel (usually 16 or more in a 4x4 pattern).


How is it entirely different? Bilinear filtering takes into account multiple comparisons(4).

Share this post


Link to post
Share on other sites
The AP above was me, by the way. I just would like to add that I've heard about "bi-linear PCF" and "point-sampled PCF". I believe the second is what you talk about. However, multiple jittered samples using bilinear PCF look pretty good, and I think this is what is mostly used.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Nvidias bilinear method takes one sample per texel, and mixes the results together. PCF takes multiple samples per texel, and operates on subtexel level. You can think of PCF as a kind of multisampling for shadowmaps.

Compare it to a colour image antialias algorithm: NVidias method would be like using an un-antialiased image and removing the jaggies by simply blurring it. PCF would be like rendering the image at a much larger resolution, and sampling it down (supersampling).

Since PCF processes much more information per texel, its quality is generally a lot better than NVidias hack. But it also takes alot more performance if using many samples. Eventually the quality will be limited by the resolution of the shadowmap itself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this