Skip to content

Commit c77a07a

Browse files
committed
Merge branch 'dev-patch' into dev-minor
2 parents 97ed7ef + 71fa88e commit c77a07a

File tree

6 files changed

+118
-221
lines changed

6 files changed

+118
-221
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ Change Log -- Ray Tracing in One Weekend
1919
- Fix: Added `t` parameter back into `hit_record` at correct place
2020

2121

22+
----------------------------------------------------------------------------------------------------
23+
# v3.0.2 (in progress)
24+
25+
### Common
26+
- Change: Every book source now includes from a single common acknowledgments document.
27+
28+
### _In One Weekend_
29+
- Fix: Correct typo: "consine" to "cosine"
30+
31+
### _The Next Week_
32+
- Fix: `shared_ptr` dereference and simplify code in `hittable_list::bounding_box()` (#435)
33+
- Fix: Erroneous en-dash in code block. Replace `–>` with `->` (#439)
34+
- Fix: Add highlight to new `hittable::bounding_box()` method (#442)
35+
36+
2237
----------------------------------------------------------------------------------------------------
2338
# v3.0.1 (2020-03-31)
2439

books/RayTracingInOneWeekend.html

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Peter Shirley
88
edited by Steve Hollasch and Trevor David Black
99
<br>
10-
Version 3.1.0-wip, 2020-03-31
10+
Version 3.1.0-wip, 2020-XX-XX
1111
<br>
1212
Copyright 2018-2020 Peter Shirley. All rights reserved.
1313

@@ -53,8 +53,8 @@
5353
I’ll be maintaining a site related to the book including further reading and links to resources at a
5454
blog https://in1weekend.blogspot.com/ related to this book.
5555

56-
Thanks to everyone who lent a hand on this project. You can find them in the [acknowledgments][] at
57-
the end of this book.
56+
Thanks to everyone who lent a hand on this project. You can find them in the acknowledgments section
57+
at the end of this book.
5858

5959
Let’s get on with it!
6060

@@ -2249,7 +2249,7 @@
22492249
The rest of the book will not require you to understand the proof.
22502250

22512251
We still need to solve for $\cos\theta$. It is well known that the dot product of two vectors can
2252-
be explained in terms of the consine of the angle between them:
2252+
be explained in terms of the cosine of the angle between them:
22532253

22542254
$$ \mathbf{A} \cdot \mathbf{B} = |\mathbf{A}| |\mathbf{B}| \cos\theta $$
22552255

@@ -2976,72 +2976,8 @@
29762976

29772977

29782978

2979-
Acknowledgments
2980-
====================================================================================================
2981-
2982-
<div class="credit-list"> **Original Manuscript Help**
2983-
2984-
- Dave Hart
2985-
- Jean Buckley
2986-
</div>
2987-
2988-
<div class="credit-list"> **Web Release**
2989-
2990-
- Berna Kabadayı
2991-
- Lorenzo Mancini
2992-
- Lori Whippler Hollasch
2993-
- Ronald Wotzlaw
2994-
</div>
2995-
2996-
<div class="credit-list"> **Corrections and Improvements**
2997-
2998-
- Aaryaman Vasishta
2999-
- Andrew Kensler
3000-
- Apoorva Joshi
3001-
- Aras Pranckevičius
3002-
- Becker
3003-
- Ben Kerl
3004-
- Benjamin Summerton
3005-
- Bennett Hardwick
3006-
- Dan Drummond
3007-
- David Chambers
3008-
- David Hart
3009-
- Eric Haines
3010-
- Fabio Sancinetti
3011-
- Filipe Scur
3012-
- Frank He
3013-
- Gerrit Wessendorf
3014-
- Grue Debry
3015-
- Ingo Wald
3016-
- Jason Stone
3017-
- Jean Buckley
3018-
- Joey Cho
3019-
- Lorenzo Mancini
3020-
- Marcus Ottosson
3021-
- Matthew Heimlich
3022-
- Nakata Daisuke
3023-
- Paul Melis
3024-
- Phil Cristensen
3025-
- Ronald Wotzlaw
3026-
- Tatsuya Ogawa
3027-
- Thiago Ize
3028-
- Vahan Sosoyan
3029-
</div>
3030-
3031-
<div class="credit-list"> **Tools**
3032-
3033-
<div class="indented">
3034-
Thanks to the team at [Limnu][] for help on the figures.
3035-
3036-
Huge shout out to Morgan McGuire for his fantastic [Markdeep][] library.
3037-
</div>
3038-
</div>
3039-
3040-
2979+
(insert acknowledgments.md.html here)
30412980

3042-
[acknowledgments]: #acknowledgments
3043-
[Limnu]: https://limnu.com/
3044-
[Markdeep]: https://casual-effects/markdeep/
30452981

30462982

30472983
<!-- Markdeep: https://casual-effects.com/markdeep/ -->

books/RayTracingTheNextWeek.html

Lines changed: 14 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Peter Shirley
88
edited by Steve Hollasch and Trevor David Black
99
<br>
10-
Version 3.1.0-wip, 2020-03-31
10+
Version 3.1.0-wip, 2020-XX-XX
1111
<br>
1212
Copyright 2018-2020 Peter Shirley. All rights reserved.
1313

@@ -32,8 +32,8 @@
3232
you want a weekend project. Order is not very important for the concepts presented in this book, and
3333
without BVH and Perlin texture you will still get a Cornell Box!
3434

35-
Thanks to everyone who lent a hand on this project. You can find them in the [acknowledgments][] at
36-
the end of this book.
35+
Thanks to everyone who lent a hand on this project. You can find them in the acknowledgments section
36+
at the end of this book.
3737

3838

3939

@@ -650,7 +650,9 @@
650650
public:
651651
virtual bool hit(
652652
const ray& r, double t_min, double t_max, hit_record& rec) const = 0;
653+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
653654
virtual bool bounding_box(double t0, double t1, aabb& output_box) const = 0;
655+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
654656
};
655657
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
656658
[Listing [hittable-bbox]: <kbd>[hittable.h]</kbd> Hittable class with bounding-box]
@@ -701,17 +703,12 @@
701703
if (objects.empty()) return false;
702704

703705
aabb temp_box;
704-
bool first_true = objects[0]->bounding_box(t0, t1, temp_box);
705-
706-
if (!first_true)
707-
return false;
708-
709-
output_box = temp_box;
706+
bool first_box = true;
710707

711708
for (const auto& object : objects) {
712-
if (!objects[i]->bounding_box(t0, t1, temp_box))
713-
return false;
714-
output_box = surrounding_box(output_box, temp_box);
709+
if (!object->bounding_box(t0, t1, temp_box)) return false;
710+
output_box = first_box ? temp_box : surrounding_box(output_box, temp_box);
711+
first_box = false;
715712
}
716713

717714
return true;
@@ -1019,7 +1016,7 @@
10191016
virtual color value(double u, double v, const point3& p) const {
10201017
auto sines = sin(10*p.x())*sin(10*p.y())*sin(10*p.z());
10211018
if (sines < 0)
1022-
return odd>value(u, v, p);
1019+
return odd->value(u, v, p);
10231020
else
10241021
return even->value(u, v, p);
10251022
}
@@ -2902,73 +2899,15 @@
29022899

29032900

29042901

2905-
Acknowledgments
2906-
====================================================================================================
2907-
2908-
<div class="credit-list"> **Original Manuscript Help**
2909-
2910-
- Dave Hart
2911-
- Jean Buckley
2912-
</div>
2913-
2914-
<div class="credit-list"> **Web Release**
2915-
2916-
- Berna Kabadayı
2917-
- Lorenzo Mancini
2918-
- Lori Whippler Hollasch
2919-
- Ronald Wotzlaw
2920-
</div>
2921-
2922-
<div class="credit-list"> **Corrections and Improvements**
2923-
2924-
- Aaryaman Vasishta
2925-
- Andrew Kensler
2926-
- Apoorva Joshi
2927-
- Aras Pranckevičius
2928-
- Becker
2929-
- Ben Kerl
2930-
- Benjamin Summerton
2931-
- Bennett Hardwick
2932-
- Dan Drummond
2933-
- David Chambers
2934-
- David Hart
2935-
- Eric Haines
2936-
- Fabio Sancinetti
2937-
- Filipe Scur
2938-
- Frank He
2939-
- Gerrit Wessendorf
2940-
- Grue Debry
2941-
- Ingo Wald
2942-
- Jason Stone
2943-
- Jean Buckley
2944-
- Joey Cho
2945-
- Lorenzo Mancini
2946-
- Marcus Ottosson
2947-
- Matthew Heimlich
2948-
- Nakata Daisuke
2949-
- Paul Melis
2950-
- Phil Cristensen
2951-
- Ronald Wotzlaw
2952-
- Tatsuya Ogawa
2953-
- Thiago Ize
2954-
- Vahan Sosoyan
2955-
</div>
2956-
2957-
<div class="credit-list"> **Tools**
2958-
2959-
<div class="indented">
2960-
Thanks to the team at [Limnu][] for help on the figures.
2961-
2962-
Huge shout out to Morgan McGuire for his fantastic [Markdeep][] library.
2963-
</div>
2964-
</div>
2965-
2966-
2902+
(insert acknowledgments.md.html here)
29672903

2904+
<<<<<<< HEAD
29682905
[acknowledgments]: #acknowledgments
29692906
[Limnu]: https://limnu.com/
29702907
[Markdeep]: https://casual-effects/markdeep/
29712908
[stb_image]: https://github.com/nothings/stb
2909+
=======
2910+
>>>>>>> dev-patch
29722911

29732912

29742913
<!-- Markdeep: https://casual-effects.com/markdeep/ -->

books/RayTracingTheRestOfYourLife.html

Lines changed: 4 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Peter Shirley
88
edited by Steve Hollasch and Trevor David Black
99
<br>
10-
Version 3.1.0-wip, 2020-03-31
10+
Version 3.1.0-wip, 2020-XX-XX
1111
<br>
1212
Copyright 2018-2020 Peter Shirley. All rights reserved.
1313

@@ -30,8 +30,8 @@
3030

3131
As before, https://in1weekend.blogspot.com/ will have further readings and references.
3232

33-
Thanks to everyone who lent a hand on this project. You can find them in the [acknowledgments][] at
34-
the end of this book.
33+
Thanks to everyone who lent a hand on this project. You can find them in the acknowledgments section
34+
at the end of this book.
3535

3636

3737

@@ -2512,72 +2512,8 @@
25122512

25132513

25142514

2515-
Acknowledgments
2516-
====================================================================================================
2517-
2518-
<div class="credit-list"> **Original Manuscript Help**
2519-
2520-
- Dave Hart
2521-
- Jean Buckley
2522-
</div>
2523-
2524-
<div class="credit-list"> **Web Release**
2525-
2526-
- Berna Kabadayı
2527-
- Lorenzo Mancini
2528-
- Lori Whippler Hollasch
2529-
- Ronald Wotzlaw
2530-
</div>
2531-
2532-
<div class="credit-list"> **Corrections and Improvements**
2533-
2534-
- Aaryaman Vasishta
2535-
- Andrew Kensler
2536-
- Apoorva Joshi
2537-
- Aras Pranckevičius
2538-
- Becker
2539-
- Ben Kerl
2540-
- Benjamin Summerton
2541-
- Bennett Hardwick
2542-
- Dan Drummond
2543-
- David Chambers
2544-
- David Hart
2545-
- Eric Haines
2546-
- Fabio Sancinetti
2547-
- Filipe Scur
2548-
- Frank He
2549-
- Gerrit Wessendorf
2550-
- Grue Debry
2551-
- Ingo Wald
2552-
- Jason Stone
2553-
- Jean Buckley
2554-
- Joey Cho
2555-
- Lorenzo Mancini
2556-
- Marcus Ottosson
2557-
- Matthew Heimlich
2558-
- Nakata Daisuke
2559-
- Paul Melis
2560-
- Phil Cristensen
2561-
- Ronald Wotzlaw
2562-
- Tatsuya Ogawa
2563-
- Thiago Ize
2564-
- Vahan Sosoyan
2565-
</div>
2566-
2567-
<div class="credit-list"> **Tools**
2568-
2569-
<div class="indented">
2570-
Thanks to the team at [Limnu][] for help on the figures.
2571-
2572-
Huge shout out to Morgan McGuire for his fantastic [Markdeep][] library.
2573-
</div>
2574-
</div>
2575-
2576-
2515+
(insert acknowledgments.md.html here)
25772516

2578-
[acknowledgments]: #acknowledgments
2579-
[Limnu]: https://limnu.com
2580-
[Markdeep]: https://casual-effects/markdeep/
25812517

25822518

25832519
<!-- Markdeep: https://casual-effects.com/markdeep/ -->

0 commit comments

Comments
 (0)