Jump to content
  • Advertisement
Sign in to follow this  
wanzi

Activate PCF for NVIDIA cards

This topic is 4984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
I'm not sure if it's the best PCF in the world, but yeah, in NVidia GL_LINEAR implements PCF of some sort.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!