日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

PRT(Precomputed Radiance Transfer)球谐光照(Spherical Harmonic Lighting)

發布時間:2023/11/27 生活经验 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PRT(Precomputed Radiance Transfer)球谐光照(Spherical Harmonic Lighting) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

??最近因為開始做PRT(Precomputed Radiance Transfer),看了一些資料。wikipedia上的解釋:
??????Precomputed Radiance Transfer (PRT) is a computer graphics technique used to render a scene in real time with complex light interactions being precomputed to save time. Radiosity methods can be used to determine the diffuse lighting of the scene, however PRT offers a method to dynamically change the lighting environment.In essence, PRT computes the illumination of a point as a linear combination of incident irradiance. An efficient method must be used to encode this data, such as Spherical harmonics.
??????When spherical harmonics is used to approximate the light transport function, only low frequency effect can be handled with a reasonable number of parameters. Ren Ng extended this work to handle higher frequency shadows by replacing spherical harmonics with non-linear wavelets.
?
??????那么,PRT技術到底是什么呢?PRT技術能夠實時重現面積光源下3D模型的全局光照效果。它通過對復雜的光線相互作用進行預計算來節省時間,提供了一種動態改變光照環境的方法。PRT本質上是通過入射光的線性組合來計算每個點的光照,用球面調和函數可以編碼這些數據。
??????PRT算法是采用球面光輻射傳輸映射方法在物體表面創建函數,把任意低頻入射光的傳輸表示成輻射度傳輸, 其中包括陰影和交互反射。對光輻射傳輸單獨進行預處理,在運行階段, 這些轉移函數應用到實際入射光中。光源和光輻射傳輸函數都用低頻球諧波函數描述。在繪制過程中, 由于全局光照計算所需的光輻射傳輸函數信息都已經在預處理中獲得, 而且該函數和光源分布函數都已經分解為正交函數序列, 因此最后的出射光強計算簡化為兩者的系數向量的點積, 這種方法繪制漫反射靜態場景速度較快, 同時繪制了陰影, 相互反射等全局光照效果。

????有很多的paper,主要參考的是siggraph2005的course《Precomputed Radiance Transfer:Theory and Practice》。
????比較經典的一篇paper:《Spherical Harmonic Lighting》見:http://www.research.scea.com/gdc2003/spherical-harmonic-lighting.html
????Effulgent的公開筆記:[高級光照]球諧光照(上),是對上面文章的前半部分的翻譯,是國內能找到的很有限的資料http://www.paulsprojects.net/opengl/sh/sh.html (Spherical Harmonic Lighting Demo及openGL源代碼)
????
????Spherical Harmonic Lighting Program (有openGL的完整源代碼,實現的效果也不錯,很有參考價值)
http://www.yasrt.org/shlighting/(Demo)
?
????一個日本人的網站,有對《Spherical Harmonic Lighting》這篇論文的實現代碼:http://www.mokehehe.com/assari/index.php?Spherical%20Harmonic%20Lighting%3BThe%20Gritty%20Details

總結

以上是生活随笔為你收集整理的PRT(Precomputed Radiance Transfer)球谐光照(Spherical Harmonic Lighting)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。