karansher / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
0 stars 0 forks source link

cmake and cmake ../ -DCMAKE_BUILD_TYPE=Release giving two different outputs #15

Open casseyshao opened 1 year ago

casseyshao commented 1 year ago

Hi, when I run ./raytracing in my build folder (cmake) and build-release folder (cmake ../ -DCMAKE_BUILD_TYPE=Release) I get different final outputs. I was wondering what could be the cause for this? In the image below, I attached examples for sphere-and-plane.json. The left image was created in the build folder and the right image was created in the build-release folder. No changes were done to the code between build and build-release. (It seems that the build folder produces the correct final output, and the build-release folder does not). Does anyone know why this is the case?

Screen Shot 2022-10-01 at 9 56 50 AM