计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (1): 185-187.DOI: 10.3778/j.issn.1002-8331.2011.01.052

• 图形、图像、模式识别 • 上一篇    下一篇

改进的百分比靠近软阴影技术的研究与实现

晏福兴,王毅刚   

  1. 杭州电子科技大学 图形图像研究所,杭州 310037
  • 收稿日期:2009-08-03 修回日期:2009-11-18 出版日期:2011-01-01 发布日期:2011-01-01
  • 通讯作者: 晏福兴

Research and implement of improved percentage-closer soft shadows

YAN Fuxing,WANG Yigang   

  1. Institute of Graphics and Image,Hangzhou Dianzi University,Hangzhou 310037,China
  • Received:2009-08-03 Revised:2009-11-18 Online:2011-01-01 Published:2011-01-01
  • Contact: YAN Fuxing

摘要: 百分比靠近软阴影算法可以生成视觉上逼真的软阴影,它是基于PCF内核的,随着PCF内核的增大,生成的软阴影逼真度越高,该算法的关键是通过变化滤波内核的大小来获得高质量的软阴影。在算法的遮挡物查找和滤波阶段,使用泊松圆盘采样来处理由于不适当地增加采样数目而产生的带状走样。同时在PCF内核中使用深度梯度来得到可变的深度偏移值,进而处理自阴影问题,改进了百分比靠近软阴影算法,从而生成更准确,更逼真的软阴影。

Abstract: The Percentage-Closer Soft Shadows(PCSS) technique can generate perceptually accurate soft shadows.PCSS is based on the observation that as the size of the PCF kernel increases,the resulting shadows become softer.The challenge is to vary the filter size intelligently to achieve the correct degree of softness.Using Poisson disk sampling to do the blocker search and the PCF filtering,banding can be reduced without unduly increasing the number of samples.Using a variable depth bias in the direction of the local depth gradient inside the PCF kernel can handle the self-shadowing.So the improved PCSS technique can generate more perceptually accurate soft shadows.

中图分类号: