dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

My .exe file built on .sln works well on Win laptop but output all 0's on Teaching Lab... #24

Closed koichishi closed 4 years ago

koichishi commented 4 years ago

I built the .sln file by the instructions (mkdir - cmake - make) and I use VS to open and run Debug on the .sln file. The .exe been generated works perfectly fine, but when I test my code on Teaching Lab the output images are all 0.

I am a bit confused since I've double-checked my code by hand and it seems fine for me; I tried to multiply the final output by 255 and convert to int but it does not work...

koichishi commented 4 years ago

NVM: solved. VS seems to build the .exe file in the root directory instead of ./build, so need to change the read path in main.cpp.

Hope this helps