From 2fe65e9bc64ac19e94e7f97995288c69d271d9a9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 8 Apr 2020 01:15:33 +0200 Subject: [PATCH] examples: cornell-box: change FOV and positions To make sure we see the entirety of the box, with a point-of-view which is similar to the pictures that can be found online, the box has to be farther away. I also re-centered the point-light to have it beneath the lamp in the middle of the ceiling. --- pathtracer/examples/cornell-box.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pathtracer/examples/cornell-box.yaml b/pathtracer/examples/cornell-box.yaml index e6b0f46..ccbf03e 100644 --- a/pathtracer/examples/cornell-box.yaml +++ b/pathtracer/examples/cornell-box.yaml @@ -5,7 +5,7 @@ camera: origin: [0.0, 1.0, 0.0] forward: [ 0.0, 0.0, 1.0] up: [0.0, 1.0, 0.0] - fov: 90.0 + fov: 60.0 distance_to_image: 1.0 x: 2160 y: 2160 @@ -14,12 +14,12 @@ lights: ambients: - color: {r: 0.1, g: 0.1, b: 0.1} points: - - position: [-0.5, 1.0, 1.8] + - position: [0.0, 1.95, 3.2] color: {r: 1.0, g: 1.0, b: 1.0} meshes: # FIXME: make the path relative to the YAML in some way? # Easiest solution would be to chdir to the YAML's directory - obj_file: "pathtracer/examples/objs/cornell-box.obj" - translation: [0.0, 0.0, 1.0] + translation: [0.0, 0.0, 2.8] rotation: [0, 180, 0]