天天看點

《An Introduction to Ray Tracing》—— 2.4 Ray/Box Intersection

總結《An Introduction to Ray Tracing》全文:點這裡http://blog.csdn.net/libing_zeng/article/details/72603619

首先,考慮簡單box,即每條邊都和坐标軸平行的box:

問題三十三:怎麼用ray tracing畫特殊長方體(box)

當時,覺得奇怪,為什麼書上隻介紹了這類特殊長方體的畫法呢?那麼其他非特殊長方體怎麼辦呢?當時,根本沒有仿射變換(Affine Transformation)的概念。是以,一直糾結怎麼畫非特殊長方體,不過總算倒騰出來了,原理和仿射變換差不多。

問題三十四:怎麼用ray tracing畫任意長方體(generalized box)

總結《An Introduction to Ray Tracing》全文:點這裡http://blog.csdn.net/libing_zeng/article/details/72603619

繼續閱讀