Skip to content

Book 2: Add an example for Chapter 3 #715

@rongguodong

Description

@rongguodong

I really like the style of Book 1, where in each chapter we have some code to test the content of that chapter and see some concrete results. However, when I finished Chapter 3 of Book 2 (Bounding Volume Hierarchies), I realized that although we have lots of new codes, they are NOT used in the main program. So I tried to change the main program a little bit to use the codes in Chapter 3, and it turns out very simple changes can greatly improve the performance, which is the reason why we use BVH.

We only need to change the world part from
image
to
image
This simple change demonstrated the contents in Chapter 3 very well. Although the generated image is the same as before, the speed is much faster.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions