Responsive image
博碩士論文 etd-0810114-165952 詳細資訊
Title page for etd-0810114-165952
論文名稱
Title
單一及群組光線混合追蹤之光線追蹤電路設計
Design of Ray Tracing Circuit with Hybrid Single and Packet Ray Traversal
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
60
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2014-08-27
繳交日期
Date of Submission
2014-09-11
關鍵字
Keywords
光線追蹤、群組光線、單一光線、混合追蹤
Ray-tracing, Packet ray, Single ray, Hybrid traversal
統計
Statistics
本論文已被瀏覽 5635 次,被下載 467
The thesis/dissertation has been browsed 5635 times, has been downloaded 467 times.
中文摘要
在三維圖學呈像中,光線追蹤技術比起傳統的呈像技術,呈像畫面可以更為逼真。在不久將來,光線追蹤很可能成為下一個世代電腦圖學的主要技術,可以慢慢地應用在嵌入式系統上。然而,光線追蹤的呈像計算量是非常高,使用純軟體來實現是非常困難的。
因此本文提出了一種專用於光線追蹤的硬體設計。所提出的光線追蹤電路,主要由走訪單元、三角形相交測試以及陰影光線產生器所構成,將場景中的所有物件進行分類,以樹結構表示,來減少光線追蹤在呈像時的相交測試數量。因此,樹的走訪是整個光線追蹤運算的關鍵之一。本論文中,將提出單一及混合光線走訪單元,群組光線的走訪可以減少走訪測試數量,但是對於群組內的光線,如果不具備較好的相干性(coherence),可能會導致光線與三角形相交測試數量增加。因此,本論文提出,主要光線和陰影光線使用群組光線,而其他次要光線則使用單一光線進行走訪。
本論文所提出的混合式光線走訪比單一光線走訪,節省了一半的時間;也比群組光線走訪方式節省超過40%的時間。如果場景中,產生出更多更複雜的次要光線,可以節省更多時間。本論文所提出的單一及群組光線混合追蹤之光線追蹤電路已經在SOPC(System-on-a-Programmable-Chip)平台上進行了驗證,硬體成本約720K個閘,並且在90nm製程下,可以運行至161MHz工作時脈。
Abstract
Ray-tracing can render more realistic images than the traditional depth-buffer based rendering approach such that many people expect it can be gradually applied to embedded applications in near future. However, the computational complexity of ray-tracing rendering is very high such that it can hardly be realized by pure
software implementation. Therefore, this thesis proposed a dedicated ray-tracing hardware design. The proposed ray-tracing circuit is mainly composed of a traversal unit, an intersection unit, and a shadow-ray generator. For ray-tracing rendering, the graphics objects are usually represented in a tree structure in order to reduce the overall number of intersection tests. Therefore, the tree-traversal operation becomes a critical part of the entire ray-tracing process. In this thesis, a new travel unit has been proposed which is based on hybrid single and packet ray traversal technique. Packet-ray traversal can be used to reduce the ray-box intersection tests, but for those packets whose rays do not have good coherence property, it may lead to the increase of the ray-triangle intersection tests. Therefore, in our thesis, the primary rays and shadow rays will be traversed in packets, while the other secondary rays will be traversed individually.Our results show that the proposed hybrid traversal can save more than half of cycles compared with single ray traversal. It can still save more than 40% of executions cycles compared with pure packet-ray traversal. The saving may increase when more secondary rays are generated in the scene. Our ray-tracing circuit has been verified in a SOPC (System-on-a-Programmable-Chip) platform. The overall gate count is 720 K, and can run up to 161 MHz under 90 nm technology.
目次 Table of Contents
論文審定書 i
摘要 ii
Abstract iii
CONTENTS iv
List of Figure vi
List of Function viii
Chapter 1 概論 1
1.1研究動機 1
1.2論文大綱 2
Chapter 2 研究背景與相關研究 3
2.1光線追蹤介紹 3
2.2 Bounding Volume Hierarchies(BVH)介紹 6
2.3光線群組追蹤介紹(Packet Ray) 9
2.4 BVH Traversal介紹 11
2.5 Ray-Triangle Intersection介紹 13
2.6 相關Ray Tracing硬體設計 14
Chapter 3 混合追蹤之光線追蹤電路設計 18
3.1單一及群組光線混合追蹤 18
3.2硬體架構 20
3.3排程單元(Scheduler) 25
3.3.1紀錄表 25
3.3.2光線執行順序 29
3.4處理單元 30
3.4.1光線走訪單元(Traversal Unit) 30
3.4.1.1 有限狀態機控制(Finite State Machine) 31
3.4.1.2 光線走訪處理單元(Traversal Compute Unit) 34
3.4.2三角形相交測試單元(Intersection Unit) 35
3.4.2.1 有限狀態機控制(Finite State Machine) 36
3.4.2.2 三角形相交測試處理單元(Intersection Compute Unit) 38
3.4.3陰影光線產生器(Shadow Ray Generator) 40
Chapter 4實驗結果與分析 42
4.1驗證環境 42
4.1.1RTL驗證 42
4.1.2FPGA驗證 42
4.2實驗結果 43
4.2.1RTL成果展示 43
4.2.2FPGA成果展示 44
4.2.3效能比較 45
Chapter 5結論與未來展望 46
參考文獻 48
參考文獻 References
[1] B. De Greve, “Reflections and refractions in ray tracing,” Nov. 2006.
[2] M. Shih, Y. Chiu, Y. Chen, and C. Chang, “Real-time ray tracing with CUDA,” in Proc. of the 9th International Conference on Algorithms and Architectures for Parallel Processing, pp. 327-337,June 2009.
[3] T. Aila, and S. Laine, “Understanding the efficiency of ray traversal on GPUs,” in Proc. of the Conference on High Performance Graphic, ACM, New York, NY, USA, pp. 145-149, 2009.
[4] M. Zlatuška, and V. Havran, “Ray tracing on a GPU with CUDA-comparative study of three algorithms,” WSCG’2010, pp. 69-75, 2010.
[5] M. Hapala, T. Davidovič, I. Wald, V. Havran, and P. Slusallek, “Efficient stack-less BVH traversal for ray tracing,” in Proc. of the 27th Spring Conference on Computer Graphics, ACM, New York, NY, USA, pp. 7-12, 2011.
[6] S. Wong, Y. Cheng, and S. Lii, “GPU ray tracing based on reduced bounding volume hierarchies,” in 2012 Ninth International Conference on Computer Graphics, Imaging and Visualization, pp.1-6, July 2012.
[7] J. Schmittler, I. Wald, and P. Slusallek, “SaarCOR: a hardware architecture for ray tracing,” in Proc. of the Conference on Graphics hardware, Eurographics Association, Aire-la-Ville, Switzerland, pp. 27-36, 2002.
[8] J. Schmittler, S. Woop, D. Wagner, W.J. Paul, and P. Slusallek. “Realtime ray tracing of dynamic scenes on an FPGA chip,” in Proc. of the ACM SIGGRAPH/EUROGRAPHICS Conference on Graphics hardware. ACM, New York, NY, USA, pp. 95-106, 2004.
[9] S. Woop, J. Schmittler, and P. Slusallek, “RPU: a programmable ray processing unit for realtime ray tracing,” in ACM SIGGRAPH 2005 Papers, ACM, New York, NY, USA, pp. 434-444, 2005.
[10] S. Woop, E. Brunvand, and P. Slusallek, “Estimating performance of a ray-tracing ASIC design,” IEEE Symposium on Interactive Ray Tracing 2006, Salt Lake City, UT, USA, pp.7-14, Sep. 2006.
[11] C. Chang, C. Lee, and S. Chien, “A 2.88mm2 50M-intersections/s ray-triangle intersection unit for interactive ray tracing,” A-SSCC '08. IEEE Asian Solid-State Circuits Conference 2008, Fukuoka, Japan, pp.181-184, Nov. 2008.
[12] J. Spjut, A. Kensler, D. Kopta, and E. Brunvand, “TRaX: a multicore hardware architecture for real-time ray tracing,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol.28, no.12, pp.1802-1815, Dec. 2009.
[13] H. Kim, Y. Kim, and L. Kim, “Reconfigurable mobile stream processor for ray tracing,” IEEE Custom Integrated Circuits Conference, pp.1-4, Sep. 2010.
[14] J. Nah, J. Park, C. Park, J. Kim, Y. Jung, W. Park, and T. Han. “T&I engine: traversal and intersection engine for hardware accelerated ray tracing,” in Proc. of the 2011 SIGGRAPH Asia Conference, ACM, New York, NY, USA, 2011.
[15] A.S. Nery, N. Nedjah, F.M.G. Franca, and L. Jozwiak, “A parallel ray tracing architecture suitable for application-specific hardware and GPGPU implementations,” 14th Euromicro Conference on Digital System Design, pp.511-518, Aug. 2011.
[16] W. Lee, Y. Shin, J. Lee, J. Kim, J. Nah, S. Jung, S. Lee, H. Park, and T. Han. “SGRT: a mobile GPU architecture for real-time ray tracing,” in Proc. of the 5th High-Performance Graphics Conference, ACM, New York, NY, USA, pp. 109-119, 2013.
[17] “Caustic professional” http://www.imgtec.com/caustic/
[18] “K-d Tree” http://en.wikipedia.org/wiki/K-d_tree
[19] “Bounding volume hierarchies” http://en.wikipedia.org/wiki/Bounding_volume_hierarchy
[20] S. Boulos, D. Edwards, J D. Lacewell, J. Kniss, J. Kautz, P. Shirley, and I. Wald. “Packet-based whitted and distribution ray tracing,” in Proc. of Graphics Interface, ACM, New York, NY, USA, pp. 177-184, 2007.
[21] J. Gunther, S. Popov, H.-P. Seidel, P. Slusallek, “Realtime ray tracing on GPU with BVH-based packet traversal,” IEEE Symposium on Interactive Ray Tracing, pp.113-118, Sep. 2007.
[22] A. Williams, S. Barrus, R.K. Morley, P. Shirley, “An efficient and robust ray–box intersection algorithm,” in Journal of Graphics Tools, pp.49-54, Jan. 2005.
[23] T. Möller, B.Trumbore, “Fast, minimum storage ray-triangle intersection,”in Journal of Graphics Tools, pp.21-28, Oct. 1997.
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:自定論文開放時間 user define
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus: 已公開 available


紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code