香港大学计算机图形学课件Chapter11Ray Tracing
In real life, a light ray shoots out from a source, hits a surface, then is reflected, and finally entered our eyes In ray tracing, a light ray is traced backwards. Starting from the eye, we trace a ray through a pixel of the screen into the scene. Then determine the surface that the ray is reflected, and the direction of the original ray, etc. * Chapter 11 Ray Tracing Ray tracing is a rendering method that traces rays of light and their interactions with the objects in a scene Characteristics generates shadows generates mirror images removes hidden surfaces is slow in execution Main reference: /education/materials/HyperGraph/raytrace/rtrace0.htm Ray-tracing is widely used to produce high quality photo-realistic images. Light Source Screen Eye The following is a simplified example of ray tracing in 2D. Assume that there is one light source and the ambient intensity is 0 (The background is completely dark.) The primary ray (cyan) does not hit anything. Set the pixel value to 0. Case 1 The primary ray (yellow) hits a plane. A shadow ray (magenta) is cast from the point hit to the light. The ray does not hit any in-between object. That is, the point is not blocked from the light. The shading of the point due to the light is computed, say L1. Case 2 A secondary ray (green) that is a perfect reflection of the primary is cast. It does not intersect with anything. The shading contributed from reflection is then set to 0. Set the pixel value to L1. Case 2, Continued The primary ray (yellow) hits the round object. A shadow ray (right magenta) is cast. It finds out that the light source is not blocked. L1 is computed accordingly. A secondary ray (short green) reflected from the primary is traced. It hits a plane. Case 3 Another shadow ray (left magenta) is cast. It finds out that the light source is not blocked. L2 is computed accordingly. A tertiary ray (long green) reflected from the secondary is traced. It does not hit anything
您可能关注的文档
最近下载
- 内科住培基地工作汇报.pptx VIP
- 3.2.2 光合作用 课件生物学七年级下册(共30张PPT).pptx VIP
- 年产8000吨塑料颗粒项目环评环境影响报告表(新版环评).pdf VIP
- 山西省太原市2025-2026学年上学期期末八年级物理试卷及答案(含答案).pdf VIP
- 人教版高中物理选择性必修第三册期末复习全册知识点考点提纲.docx
- 2025年山东化工职业学院单招语文考试题库及答案解析.docx VIP
- 国外油藏描述及方案编制的启示.pptx VIP
- 精神科暴力行为防范与处理.pptx
- 2025年山东化工职业学院单招数学考试模拟试题及答案解析.docx VIP
- 2025-2026学年新教材高中生物期末综合检测卷新人教版必修1 .pdf VIP
原创力文档

文档评论(0)