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

# Visualization of normals

For debugging purposes:

Hesper Yin's avatar
Hesper Yin committed
11
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
12

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

Hesper Yin's avatar
Hesper Yin committed
15
![normalviz](new_results/norm1.png)
yhesper's avatar
yhesper committed
16

Hesper Yin's avatar
Hesper Yin committed
17
18
19
![normalviz](new_results/norm2.png)

![normalviz](new_results/norm3.png)