visualization_of_normals.md 521 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

15
16
![normalviz](new_results/cbox_normal.png)

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

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

![normalviz](new_results/norm3.png)