大三05計(jì)算機(jī)圖形學(xué)_第1頁
大三05計(jì)算機(jī)圖形學(xué)_第2頁
大三05計(jì)算機(jī)圖形學(xué)_第3頁
大三05計(jì)算機(jī)圖形學(xué)_第4頁
大三05計(jì)算機(jī)圖形學(xué)_第5頁
免費(fèi)預(yù)覽已結(jié)束,剩余25頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Radisoity1Angel: Interactive Computer Graphics 5E Addison-Wesley 2009原著Ed AngelProfessor of Computer Science, Electrical and Computer Engineering, and Media ArtsUniversity of New Mexico編輯 武漢大學(xué)計(jì)算機(jī)學(xué)院圖形學(xué)課程組2Angel: Interactive Computer Graphics 5E Addison-Wesley 2009IntroductionRay tracing is best with

2、many highly specular sufacesNot characteristic of real scenesRendering equation describes general shading problemRadiosity solves rendering equation for perfectly diffuse surfaces3Angel: Interactive Computer Graphics 5E Addison-Wesley 2009TerminologyEnergy light (incident, transmitted)Must be conser

3、vedEnergy flux = luminous flux = power = energy/unit timeMeasured in lumensDepends on wavelength so we can integrate over spectrum using luminous efficiency curve of sensorEnergy density () = energy flux/unit area4Angel: Interactive Computer Graphics 5E Addison-Wesley 2009TerminologyIntensity bright

4、ness Brightness is perceptual= flux/area-solid angle = power/unit projected area per solid angleMeasured in candela = I dA d5Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Rendering Eqn (Kajiya)Consider a point on a surface NIout(out)Iin(in)6Angel: Interactive Computer Graphics 5E Addiso

5、n-Wesley 2009Rendering EquationOutgoing light is from two sourcesEmissionReflection of ing lightMust integrate over all ing lightIntegrate over hemisphereMust account for foreshortening of ing light7Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Rendering EquationIout(out) = E(out) + 2Rb

6、d(out, in )Iin(in) cos d bidirectional reflection coefficientangle between normal and inemissionNote that angle is really two angles in 3D and wavelength is fixed8Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Rendering EquationRendering equation is an energy balanceEnergy in = energy ou

7、tIntegrate over hemisphereFredholm integral equationCannot be solved analytically in generalVarious approximations of Rbd give standard rendering modelsShould also add an occlusion term in front of right side to account for other objects blocking light from reaching surface9Angel: Interactive Comput

8、er Graphics 5E Addison-Wesley 2009Another versionConsider light at a point p arriving from pi(p, p) = (p, p)(p,p)+ (p, p, p)i(p, p)dpocclusion = 0 or 1/d2emission from p to plight reflected at p from all points p towards p10Angel: Interactive Computer Graphics 5E Addison-Wesley 2009RadiosityConsider

9、 objects to be broken up into flat patches (which may correspond to the polygons in the model)Assume that patches are perfectly diffuse reflectorsRadiosity = flux = energy/unit area/ unit time leaving patch11Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Notationn patches numbered 1 to n

10、bi = radiosity of patch Iai = area patch Itotal intensity leaving patch i = bi aiei ai = emitted intensity from patch Ii = reflectivity of patch Ifij = form factor = fraction of energy leaving patch j that reaches patch i12Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Radiosity Equation

11、energy balancebiai = eiai + i fjibjajreciprocityfijai = fjiaj radiosity equationbi = ei + i fijbj13Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Matrix Formb = bie = eiR = rijrij = i if i j rii = 0 F = fij14Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Matrix Formb = e - RF

12、bformal solutionb = I-RF-1eNot useful since n is usually very largeAlternative: use observation that F is sparseWe will consider determination of form factors later15Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Solving the Radiosity EquationFor sparse matrices, iterative methods usuall

13、yrequire only O(n) operations per iterationJacobis method bk+1 = e - RFbkGauss-Seidel: use immediate updates16Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Series Approximation1/(1-x) = 1 + x + x2+ b = I-RF-1e = e + RFe + (RF)2e + I-RF-1 = I + RF +(RF)2+17Angel: Interactive Computer Gra

14、phics 5E Addison-Wesley 2009Rendered Image18Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Patches19Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Computing Form FactorsConsider two flat patches20Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Using Differential Pa

15、tchesforeshortening21Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Form Factor Integralfij = (1/ai) ai ai (oij cos i cos j / r2 )dai dajocclusionforeshortening of patch iforeshortening of patch j22Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Solving the IntergralThere are

16、very few cases where the integral has a (simple) closed form solutionOcclusion further complicates solutionAlternative is to use numerical methodsTwo step process similar to texture mapping HemisphereHemicube23Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Form Factor Examples 124Angel:

17、Interactive Computer Graphics 5E Addison-Wesley 2009Form Factor Examples 225Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Form Factor Examples 326Angel: Interactive Computer Graphics 5E Addison-Wesley 2009HemisphereUse illuminating hemisphereCenter hemisphere on patch with normal pointi

18、ng upMust shift hemisphere for each point on patch27Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Hemisphere28Angel: Interactive Computer Graphics 5E Addison-Wesley 2009HemicubeEasier to use a hemicube instead of a hemisphereRule each side into “pixels”Easier to project on pixels which give delta form factors that can be added up to give desired from factorTo get a delta form factor we need only cast a ray through each pixel29Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Hemicube30Angel: Interactive Computer Gra

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論