Skip to content

Commit 1e8d28d

Browse files
committed
Rename images book 3
1 parent b39a382 commit 1e8d28d

14 files changed

+23
-19
lines changed

books/RayTracingTheRestOfYourLife.html

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
798798
<div class='together'>
799799
At 500×500 my code produces this image in 10min on 1 core of my Macbook:
800800

801-
![Cornell box, refactored](../images/img.cornell-refactor1.jpg class=pixel)
801+
![Image 1: Cornell box, refactored](../images/img-3.01-cornell-refactor1.jpg class=pixel)
802802

803803
Reducing that noise is our goal. We’ll do that by constructing a PDF that sends more rays to the
804804
light.
@@ -941,7 +941,8 @@
941941
<div class='together'>
942942
And again I _should_ get the same picture except with different variance, but I don’t!
943943

944-
![Cornell box, with different sampling strategy](../images/img.cornell-refactor2.jpg class=pixel)
944+
![Image 2: Cornell box, with different sampling strategy
945+
](../images/img-3.02-cornell-refactor2.jpg class=pixel)
945946

946947
</div>
947948

@@ -1309,8 +1310,8 @@
13091310
<div class='together'>
13101311
Which produces:
13111312

1312-
![Cornell box, with orthonormal basis scatter function
1313-
](../images/img.cornell-ortho.jpg class=pixel)
1313+
![Image 3: Cornell box, with orthonormal basis scatter function
1314+
](../images/img-3.03-cornell-ortho.jpg class=pixel)
13141315

13151316
Is that right? We still don’t know for sure. Tracking down bugs is hard in the absence of reliable
13161317
reference solutions. Let’s table that for now and get rid of some of that noise.
@@ -1415,8 +1416,8 @@
14151416
<div class='together'>
14161417
With 10 samples per pixel this yields:
14171418

1418-
![Cornell box, sampling only the light, 10 samples per pixel
1419-
](../images/img.cornell-samplight.jpg class=pixel)
1419+
![Image 4: Cornell box, sampling only the light, 10 samples per pixel
1420+
](../images/img-3.04-cornell-sample-light.jpg class=pixel)
14201421

14211422
</div>
14221423

@@ -1447,8 +1448,8 @@
14471448
<div class='together'>
14481449
We also need to flip the light so its normals point in the -y direction. This gives us:
14491450

1450-
![Cornell box, light emitted only in the downward direction
1451-
](../images/img.cornell-lightdown.jpg class=pixel)
1451+
![Image 5: Cornell box, light emitted only in the downward direction
1452+
](../images/img-3.05-cornell-lightdown.jpg class=pixel)
14521453

14531454
</div>
14541455

@@ -1597,7 +1598,8 @@
15971598
This yields an apparently matching result so all we’ve done so far is refactor where `pdf` is
15981599
computed:
15991600

1600-
![Cornell box with a cosine density _pdf_](../images/img.cornell-cospdf.jpg class=pixel)
1601+
![Image 6: Cornell box with a cosine density _pdf_
1602+
](../images/img-3.06-cornell-cos-pdf.jpg class=pixel)
16011603

16021604
</div>
16031605

@@ -1725,8 +1727,8 @@
17251727
<div class='together'>
17261728
At 10 samples per pixel we get:
17271729

1728-
![Cornell box, sampling a hittable light, 10 samples per pixel
1729-
](../images/img.cornell-samphit.jpg class=pixel)
1730+
![Image 7: Cornell box, sampling a hittable light, 10 samples per pixel
1731+
](../images/img-3.07-hittable-light.jpg class=pixel)
17301732

17311733
</div>
17321734

@@ -1817,8 +1819,8 @@
18171819
<div class='together'>
18181820
1000 samples per pixel yields:
18191821

1820-
![Cornell box, mixture density of cosine and light sampling
1821-
](../images/img.cornell-coslight.jpg class=pixel)
1822+
![Image 8: Cornell box, mixture density of cosine and light sampling
1823+
](../images/img-3.08-cosine-and-light.jpg class=pixel)
18221824

18231825
</div>
18241826

@@ -2149,7 +2151,8 @@
21492151
The resulting image has a noisy reflection on the ceiling because the directions toward the box are
21502152
not sampled with more density.
21512153

2152-
![Cornell box with arbitrary PDF functions](../images/img.cornell-flexpdf.jpg class=pixel)
2154+
![Image 9: Cornell box with arbitrary PDF functions
2155+
](../images/img-3.09-arbitrary-pdf.jpg class=pixel)
21532156

21542157
</div>
21552158

@@ -2294,8 +2297,8 @@
22942297
sampling the light did for my code. This is probably because those rays that hit the glass are
22952298
expensive!
22962299

2297-
![Cornell box with glass sphere, using new PDF functions
2298-
](../images/img.cornell-glass.jpg class=pixel)
2300+
![Image 10: Cornell box with glass sphere, using new PDF functions
2301+
](../images/img-3.10-cornell-glass-sphere.jpg class=pixel)
22992302

23002303
</div>
23012304

@@ -2341,8 +2344,8 @@
23412344
<div class='together'>
23422345
And we get a decent image with 1000 samples as before:
23432346

2344-
![Cornell box, using a mixture of glass & light PDFs
2345-
](../images/img.cornell-glasslight.jpg class=pixel)
2347+
![Image 11: Cornell Cornell box, using a mixture of glass & light PDFs
2348+
](../images/img-3.11-glass-and-light.jpg class=pixel)
23462349

23472350
</div>
23482351

@@ -2402,7 +2405,8 @@
24022405
<div class='together'>
24032406
Happily, the black specks are gone:
24042407

2405-
![Cornell box with anti-acne color function](../images/img.book3-final.jpg class=pixel)
2408+
![Image 12: Cornell box with anti-acne color function
2409+
](../images/img-3.12-book3-final.jpg class=pixel)
24062410

24072411
</div>
24082412

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)