国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

A Simple Ray-Tracer

2023-03-22 13:09 作者:RanMeraklis  | 我要投稿

Many thanks to my partner Ningyu Zhu for finishing the BVH acceleration structure (which saves the day when rendering the Stanford Dragon) and successfully debugging the showing for Cornell Box!

Helios Hunter: Ray-Tracer

1. Structure

  • RayThruPixel(cam%2C%20x%2C%20y)?generates a ray originated from the camera position, through the center of the (x%2C%20y)?pixel into the world

  • Intersect(ray%2C%20scene)?searches over all all geometries in the scene and returns the closest hit

  • FindColor(hit)?shades the light color seen by the in-coming ray

    • Ambient + Lambertian-diffuse + Blinn–Phong formula

    • Add the contribution of light only when the ray connecting the hit and the light source does not have any intersection with the scene (Numerical inaccuracy may cause intersection to be below surface, causing surface to incorrectly shadow itself. To avoid self-shadowing, the secondary ray is shot off slightly above the hitting point.)

    • Do recursive ray tracing

1.1 RayThruPixel


1.2 Ray-Scene Intersection

2. Classes

? ? ?

3. Results

The rendering results and timings are shown in the following images.

3.1 Scene 4 Table with Spheres

3.1.1 Ambient

3.1.2 Diffuse

3.1.3 Emission

3.1.4 Specular

3.2 Scene 5 Thousand Spheres

3.3 Scene 6 Cornell Box

3.4 Scene 7 Stanford Dragon

Specific explanation and implementation details may be covered in future blogs :D

(since currently I'm still struggling with the finals o(╥﹏╥)o


A Simple Ray-Tracer的評論 (共 條)

分享到微博請遵守國家法律
建瓯市| 礼泉县| 万源市| 星座| 鸡泽县| 泸州市| 庄浪县| 绥阳县| 永新县| 浮梁县| 边坝县| 宜黄县| 昭苏县| 正阳县| 农安县| 晋宁县| 丰县| 平邑县| 彰化市| 和平区| 沐川县| 孝义市| 金乡县| 方山县| 宁南县| 潞城市| 南丰县| 利津县| 开阳县| 承德县| 芦溪县| 桑植县| 柞水县| 巴林右旗| 鄂托克前旗| 枝江市| 璧山县| 蓬莱市| 十堰市| 昭觉县| 涞水县|