计算机工程与应用
計算機工程與應用
계산궤공정여응용
COMPUTER ENGINEERING AND APPLICATIONS
2015年
15期
161-166
,共6页
赵作林%李兆民%杨刚%黄心渊
趙作林%李兆民%楊剛%黃心淵
조작림%리조민%양강%황심연
间接光照%全局光照%真实感绘制%概率模型%树木绘制
間接光照%全跼光照%真實感繪製%概率模型%樹木繪製
간접광조%전국광조%진실감회제%개솔모형%수목회제
indirect illumination%global illumination%realistic rendering%probabilistic model%tree rendering
太阳光照射到树冠上之后,会在叶片间进行相互的反射、折射,形成复杂的间接光照效果。在进行树木真实感绘制时,对这种间接光照的快速模拟是非常困难的。传统的光线跟踪、辐射度等算法均比较耗时,很难满足实时计算的要求。采用一种概率模型来快速估算树木叶片间的间接光照效果,实现了带间接光照效果的树木实时绘制。为树冠构建一个包围体,并假定该包围体中叶子的位置和法向基本符合均匀分布;为叶子的正反面分别定义反射系数和透射系数,并定义一个衰减函数来描述光线穿越叶子层后的衰减量;基于这种均匀概率分布的包围体模型,并利用叶片材质属性,就可以为每片叶子计算出叶子表面的出射光。对于中心在P处的叶子来说,可以快速计算出太阳光经过其邻近叶子到达该叶子表面的间接光照效果。为了进一步提高绘制效率,并未采用传统的包含大量面片的树木模型,而是采用了一种利用Billboards结构进行树木枝叶表达的简洁的树木三维模型。将上述概率模型与这种表达方式进行了有机结合,完成了带间接光照效果的树木实时真实感绘制。
太暘光照射到樹冠上之後,會在葉片間進行相互的反射、摺射,形成複雜的間接光照效果。在進行樹木真實感繪製時,對這種間接光照的快速模擬是非常睏難的。傳統的光線跟蹤、輻射度等算法均比較耗時,很難滿足實時計算的要求。採用一種概率模型來快速估算樹木葉片間的間接光照效果,實現瞭帶間接光照效果的樹木實時繪製。為樹冠構建一箇包圍體,併假定該包圍體中葉子的位置和法嚮基本符閤均勻分佈;為葉子的正反麵分彆定義反射繫數和透射繫數,併定義一箇衰減函數來描述光線穿越葉子層後的衰減量;基于這種均勻概率分佈的包圍體模型,併利用葉片材質屬性,就可以為每片葉子計算齣葉子錶麵的齣射光。對于中心在P處的葉子來說,可以快速計算齣太暘光經過其鄰近葉子到達該葉子錶麵的間接光照效果。為瞭進一步提高繪製效率,併未採用傳統的包含大量麵片的樹木模型,而是採用瞭一種利用Billboards結構進行樹木枝葉錶達的簡潔的樹木三維模型。將上述概率模型與這種錶達方式進行瞭有機結閤,完成瞭帶間接光照效果的樹木實時真實感繪製。
태양광조사도수관상지후,회재협편간진행상호적반사、절사,형성복잡적간접광조효과。재진행수목진실감회제시,대저충간접광조적쾌속모의시비상곤난적。전통적광선근종、복사도등산법균비교모시,흔난만족실시계산적요구。채용일충개솔모형래쾌속고산수목협편간적간접광조효과,실현료대간접광조효과적수목실시회제。위수관구건일개포위체,병가정해포위체중협자적위치화법향기본부합균균분포;위협자적정반면분별정의반사계수화투사계수,병정의일개쇠감함수래묘술광선천월협자층후적쇠감량;기우저충균균개솔분포적포위체모형,병이용협편재질속성,취가이위매편협자계산출협자표면적출사광。대우중심재P처적협자래설,가이쾌속계산출태양광경과기린근협자도체해협자표면적간접광조효과。위료진일보제고회제효솔,병미채용전통적포함대량면편적수목모형,이시채용료일충이용Billboards결구진행수목지협표체적간길적수목삼유모형。장상술개솔모형여저충표체방식진행료유궤결합,완성료대간접광조효과적수목실시진실감회제。
After the sunlight shines on tree crowns, it will be reflecting and refracting among leaves and develops into indi-rect illumination effect. It is quite difficult to make fast simulation of such indirect illumination, when doing realistic ren-dering of trees. Traditional way of calculation, including light trace and radiancy, costs more time, which is hard to meet the demand of timing. This paper adopts a model of probability to quickly assess indirect illumination effect among leaves which enables to realistic rendering of indirect illumination effect. It establishes a bounding volume and assumes that the location and normal of the leaves in the bounding volume are generally in line with even distribution. It sets up reflection coefficient and transmission coefficient for the front and back of the leaf, as well as the attenuation function to describe the attenuation function of sunlight that travels through the leaf. Based on the bounding volume model with even distribution and the material properties of leaves, emergent light from the surface of each leaf will be calculated. As for the leaves with P center, indirect illumination effect caused by sunlight passing through neighboring leaves is able to be quickly calculated. In order to further improve rendering efficiency, it does not take traditional tree model with large amount of patches, but adopts a concise 3D tree model with trees and branches based on Billboards structure. It tactfully combines above-men-tioned probability model with such presentation to complete the realistic rendering with indirect illumination effect.