From 680b1ccceb1a8bb3521f2e3f0546e2b6bf27f9eb Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 20 Apr 2022 18:57:38 +0800 Subject: Fix default camera parameters were modified accidentally. --- main_simple_scanner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp index e6b6bca..d37b1b7 100644 --- a/main_simple_scanner.cpp +++ b/main_simple_scanner.cpp @@ -45,8 +45,8 @@ void generate_image(uint16_t image_width, uint16_t image_height, double viewport // noaa rendering bias_ctx no_bias{}; basic_viewport vp_noaa{ - {-2, 2, 1}, // camera position as the coordinate origin - {0, 0, -1}, + vec3::zero(), // camera position as the coordinate origin + vec3d{0, 0, -focal_length}, image_width, image_height, viewport_width / 2.0, ((double) image_height / image_width) * viewport_width / 2.0, world @@ -56,8 +56,8 @@ void generate_image(uint16_t image_width, uint16_t image_height, double viewport //////////////// // aa rendering aa_viewport vp_aa{ - {-2, 2, 1}, // camera position as the coordinate origin - {0, 0, -1}, + vec3::zero(), // camera position as the coordinate origin + vec3d{0, 0, -focal_length}, image_width, image_height, viewport_width / 2.0, ((double) image_height / image_width) * viewport_width / 2.0, world, samples -- cgit v1.2.3