dilevin / computer-graphics-ray-tracing

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

Issues with reflection #69

Open dharhar opened 6 days ago

dharhar commented 6 days ago

My outputs for sphere-packing is missing the reflections of other spheres. Any hints as to why?

(Left is what it should look like, right is what mine looks like) image

vpineda1996 commented 5 days ago

Looksike you aren't recurring enough times. Or after the first recursion, you immediately exit.

milomg commented 5 days ago

Is it possible this is because min_t in main is too large? (decreasing it from 1.0 down to 1e-4 fixes the above issue for me)