From f1737f66fdfda12006741510527fecfd15ecec19 Mon Sep 17 00:00:00 2001 From: Hesper Yin Date: Thu, 15 Oct 2020 23:22:59 -0400 Subject: [PATCH] fix new visualize normals --- docs/pathtracer/visualization_of_normals.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/pathtracer/visualization_of_normals.md b/docs/pathtracer/visualization_of_normals.md index 660d717..63ca9e1 100644 --- a/docs/pathtracer/visualization_of_normals.md +++ b/docs/pathtracer/visualization_of_normals.md @@ -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) -- GitLab