大三05计算机图形学_第1页
大三05计算机图形学_第2页
大三05计算机图形学_第3页
大三05计算机图形学_第4页
大三05计算机图形学_第5页
免费预览已结束,剩余25页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Radisoity1Angel: Interactive Computer Graphics 5E Addison-Wesley 2009原著Ed AngelProfessor of Computer Science, Electrical and Computer Engineering, and Media ArtsUniversity of New Mexico编辑 武汉大学计算机学院图形学课程组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等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论