dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 7 forks source link

teach.cs machine generating different images than windows #58

Closed Blucia closed 11 months ago

Blucia commented 11 months ago

Everything looks good on my windows 10 build but when i run the code on teach.cs machines (via ssh) i get different results for shifted and desaturated.

Desktop 2023-09-20 12-03-18 AM-248

Is there some kind of rounding or casting issue specific to linux?

wenzhi-guo commented 11 months ago

Rounding issue shouldn't cause such a big difference in output. I would suggest pick a couple pixel values, step through the logic (e.g. print outputs of each step to the console) and try to locate which function is causing the difference.

Blucia commented 11 months ago

so I used abs() instead of std::abs() and linux decided that it would be a great idea for small numbers like -0.95 to get rounded to 0 instead of positive 0.95.

I want my 3 hours of sleep back