[size=; font-size: 22pt,22pt]Vray3.0教程渲染中黑斑解决方法 R',rsGd`6j 在我们日常画图过程中,会碰到很多错误,这节课我们来研究下效果图产生黑斑的解决方法。图[size=font-size: 12pt,12pt]1中的线条模型部分,很清楚的看到黑斑,而且线条不清晰[size=font-size: 12pt,12pt] 。 VZmLS 4E o="M 图[size=font-size: 12pt,12pt]1 dvJM6W>^= 很多同学遇到这种情况一定会盲目的增加渲染参数,有些同学机器配置高,甚至将参数调节到极致,但问题还是依然存在。下面图[size=font-size: 12pt,12pt]2是壁纸测试时候的渲染参数。[size=font-size: 12pt,12pt] D2B%0sfl~ ;P%1j| 7 XXn67sF/ CD( :jM? xH"/1g /zVOK4BqN+ }.m< :hk5 .[ 图[size=; font-size: 12pt,12pt]2 .Una+Z 经过笔者多次测试得出结论,产生黑斑的决定性因素是:[size=font-size: 12pt,12pt] W^LY'ypT 1、场景内光照亮不足[size=font-size: 12pt,12pt] jc[Y}gd, 2、[size=font-size: 12pt,12pt]Irradiance map(发光贴图[size=font-size: 12pt,12pt])中的[size=font-size: 12pt,12pt] max rate(最大采样数量)、[size=font-size: 12pt,12pt]Subdivs(半球光线细分)这两个参数。场景如果光照亮不足那么提高这个参数是必须的。下图是两个对比图,图[size=font-size: 12pt,12pt]3中渲染参数[size=font-size: 12pt,12pt]MAX rate:[size=font-size: 12pt,12pt]-3、[size=font-size: 12pt,12pt]subdivs:[size=font-size: 12pt,12pt]30。图[size=font-size: 12pt,12pt] 4中渲染参数[size=font-size: 12pt,12pt]MAX rate:[size=font-size: 12pt,12pt]-1、[size=font-size: 12pt,12pt]subdivs:[size=font-size: 12pt,12pt]50。[size=font-size: 12pt,12pt] 9FYUo
mt p+rr
图3 KD7dye
?2{Gn-{ 图4 ?5|>@> 可以很明显看到效果的变化,所以可以确定这两个参数是影响黑斑的因素之一,但是问题还是没有得到解决,黑斑依然存在。[size=font-size: 12pt,12pt] (G4at2YLd [size=font-size: 12pt,12pt] 1&evG-#<: 3、第三个因素分别为几个常用的辅助参数,这些参数在大多数渲染中可以提高渲染质量,但是在这些细线条多,光线不足的场景就会影响效果了。笔者测试后总结影响的几个参数为:[size=font-size: 12pt,12pt] 6/Xk7B [size=font-size: 12pt,12pt]Irradiance map光照贴图下面的[size=font-size: 12pt,12pt]Check sample visibility(检查采样的可视性)[size=font-size: 12pt,12pt] 0s3%Kqi[ [size=font-size: 12pt,12pt]Light cache灯光缓存下面的[size=font-size: 12pt,12pt]Sample size(采样尺寸)[size=font-size: 12pt,12pt] )j(7]uX` [size=font-size: 12pt,12pt]Light cache灯光缓存下面的[size=font-size: 12pt,12pt]Adaptive tracing(自适应跟踪)。[size=font-size: 12pt,12pt] #9}D4i.`} 首先、这三个参数其中[size=font-size: 12pt,12pt]Sample size(采样尺寸)可以输入数值,一般情况下我们在渲染出图时候,建议调整为[size=font-size: 12pt,12pt]0.001-0.002之间,但是经过笔者测试,因为[size=font-size: 12pt,12pt]Light cache属于二级反弹,所以这个采样尺寸参数对于整体效果影响不大,所以可以保持默认参数[size=font-size: 12pt,12pt]0.01-0.02之间。[size=font-size: 12pt,12pt] _j/<{vS y 其他两个参数就是在渲染中取消即可。比如[size=font-size: 12pt,12pt]Check sample visibility)检查采样的可视性),如果你在建模过程中注意细节,不要有漏光、重叠面的情况,那么没有必要开启这个参数。如图[size=font-size: 12pt,12pt]5中取消[size=font-size: 12pt,12pt]Check sample visibility(检查采样的可视性)、[size=font-size: 12pt,12pt]Adaptive tracing(自适应跟踪)的勾选,[size=font-size: 12pt,12pt]Light cache灯光缓存下面的[size=font-size: 12pt,12pt]Sample size(采样尺寸)设置为[size=font-size: 12pt,12pt]0.01。[size=font-size: 12pt,12pt] 8 \ +T8(m K'Tm_"[u wQH<gJE/: y'~U%,ki6 图5 OgQV;at zRl3KjET [font='Hiragino Sans GB W3', 'Hiragino Sans GB', Arial, Helvetica, simsun, u5b8bu4f53] 图4 }=UHbU.n~! 图[size=font-size: 12pt,12pt]5和图[size=font-size: 12pt,12pt]4的其他参数没有区别,只是调节了上面提到的三个参数,大家可以看到最终的效果图对比。[size=font-size: 12pt,12pt] V2?=4mb [size=font-size: 12pt,12pt] @+M
/& 同学们遇到这种情况只需注意这几个问题就可以了,如果有兴趣的同学可以逐一参数进行测试渲染。祝大家宣图愉快!!!! KRLQ #,9
|