Skip to content

Commit 668c7b7

Browse files
committed
Change test.cpp for fireplace model
1 parent f0923f5 commit 668c7b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Optional arguments:\n\
2424
-x N\t\tSpecify width in pixels\n\
2525
-y N\t\tSpecify height in pixels\n", argv[0]);
2626

27-
std::string obj_infile = "data/cornell.obj";
27+
std::string obj_infile = "data/fireplace_room.obj";
2828
std::string ppm_outfile = "output.ppm";
2929
if (argc > 1) {
3030
int which = 0;
@@ -58,12 +58,12 @@ Optional arguments:\n\
5858
printf("Rendering with width %d, height %d, spp %d\n", width, height, spp);
5959

6060
float vfov = 0.79f;
61-
float aspect = 1.f;
61+
float aspect = (float)width / (float)height;
6262

63-
//Vec3 look_from(5.03f, 0.91f, -2.20f);
64-
//Vec3 look_at(-0.21f, 0.83f, -0.34f);
65-
Vec3 look_from(0.f, 1.f, 3.5f);
66-
Vec3 look_at(0.f, 1.f, -1.f);
63+
Vec3 look_from(5.03f, 0.91f, -2.20f);
64+
Vec3 look_at(-0.21f, 0.83f, -0.34f);
65+
//Vec3 look_from(0.f, 1.0f, 3.5f);
66+
//Vec3 look_at(0.f, 1.0f, -1.f);
6767

6868
Vec3 view_up(0.f, 1.f, 0.f);
6969

0 commit comments

Comments
 (0)