Skip to content

Commit

Permalink
Final submission, tag this
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-ku committed Mar 18, 2024
1 parent 405864f commit 7e77a82
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Binary file added assets/images/hw3/part1/CBgems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/hw3/part2/withBVHPeter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/hw3/part2/withoutBVHPeter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions homework3.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,22 @@ Here are some of our renders with the new O(log N) BVH implementation.
## Speed Analysis

We see a very noticeable difference when rendering with and without the BVH implementation. The default implementation loops through triangles one by one, which will be very slow if you reach thousands of primitives. As seen from the screenshots, rendering the `maxplanck.dae` with the naive implementation takes around 99 seconds to complete. On the other hand, the BVH implementation
only takes 0.05 seconds to complete. This is because a O(log N) implementation is much faster than an O(N), even if you scale N to be very high.
only takes 0.05 seconds to complete. Additionally, if you look at `peter.dae`, it takes 95 seconds without BVH but only 0.45 seconds with BVH. This is because a O(log N) implementation is much faster than an O(N), even if you scale N to be very high.

<br>

*Rendering Speed* ***Without*** *BVH*
*Rendering Speed* ***Without*** *BVH - maxplanck.dae*
![Without BVH](./assets/images/hw3/part2/withoutBVH.png)

*Rendering Speed* ***With*** *BVH*
*Rendering Speed* ***With*** *BVH - maxplanck.dae*
![With BVH](./assets/images/hw3/part2/withBVH.png)

*Rendering Speed* ***Without*** *BVH - peter.dae*
![Without BVH](./assets/images/hw3/part2/withoutBVHPeter.png)

*Rendering Speed* ***With*** *BVH - peter.dae*
![With BVH](./assets/images/hw3/part2/withBVHPeter.png)


# Part 3: Direct Illumination
## Tasks 1-4
Expand Down

0 comments on commit 7e77a82

Please sign in to comment.