visualization_of_normals.md 617 Bytes
Newer Older
yhesper's avatar
yhesper committed
1
2
---
layout: default
allai5's avatar
allai5 committed
3
title: Visualization of normals
yhesper's avatar
yhesper committed
4
permalink: /pathtracer/visualization_of_normals
allai5's avatar
allai5 committed
5
parent: "A3: Pathtracer"
yhesper's avatar
yhesper committed
6
7
8
9
10
11
---

# Visualization of normals

For debugging purposes:

Hesper Yin's avatar
Hesper Yin committed
12
You can set the `bool normal_colors` to true in `student/debug.h` to check if the normals that you have computed at the hit point are correct or not for debugging purposes.
yhesper's avatar
yhesper committed
13

Hesper Yin's avatar
Hesper Yin committed
14
Here are some reference results:
yhesper's avatar
yhesper committed
15

allai5's avatar
allai5 committed
16
17
<img src="new_results/cbox_normal.png" style="height:200px"> <img src="new_results/norm1.png" style="height:200px">
<img src="new_results/norm2.png" style="height:194px"> <img src="new_results/norm3.png" style="height:194px">