ssloy / tinyraytracer

A brief computer graphics / rendering course
https://github.com/ssloy/tinyraytracer/wiki
5k stars 333 forks source link

Can't get right render image. #26

Closed Eoous closed 3 years ago

Eoous commented 3 years ago

Used the corresponding code in wiki page, but got wrong picture. Step 1:

image

Step 4: image

(Also step 2 got a strange picture.) IDE: visual studio community 2019 16.10.2(/std:c++latest) CPU: r5 5600x

I have no idea about it. Thank you very much!

ssloy commented 3 years ago

Check this issue

Eoous commented 3 years ago

Thank you for your response! Solved the problem by setting ofstream mode.