Skip to content
Discussion options

You must be logged in to vote

I found the problem! It was a line in camera.h:
if (world.hit(r, interval(0, infinity), rec)) {

I compared with the original repo and found the difference here:
if (world.hit(r, interval(0.001, infinity), rec)) {

Why does this lead to the weird behaviour though, I still don't know? Darkened colors, weird artifacts, cascading images, longer render times (almost double at low pixel sample sizes).

For another example, observe the final renders

my code (before fix) took around 3 hours to render at samples_per_pixel = 1000 and max_depth = 1000 (╥﹏╥)

fast render at samples_per_pixel = 10 and max_depth = 20 from original repo's code

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@armansito
Comment options

Answer selected by ayaanmaan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants