Unverified Commit f1737f66 authored by Hesper Yin's avatar Hesper Yin Committed by GitHub
Browse files

fix new visualize normals

parent cbed95ee
......@@ -8,13 +8,12 @@ permalink: /pathtracer/visualization_of_normals
For debugging purposes:
You can replace the `radiance_out = Spectrum(5.f)` in `student/pathtracer.cpp` that the starter code gives you with:
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.
```
(result.n).normalize();
return Spectrum(result.normal.n.x/2.0 + 0.5, result.normal.y/2.0 + 0.5, result.normal.z/2.0 + 0.5);
```
Here are some reference results:
Reference results for CBspheres, bunny, dragon, and wall-e:
![normalviz](new_results/norm1.png)
![normalviz](normalviz.png)
\ No newline at end of file
![normalviz](new_results/norm2.png)
![normalviz](new_results/norm3.png)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment