dilevin / computer-graphics-ray-tracing

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

Dark circle around sphere #32

Closed AnqiGao98 closed 4 years ago

AnqiGao98 commented 4 years ago

Hi,

I have the correct output when testing sphere-and-plane. But when I run the case two-spheres-and-plane and spheres-packing, I have a dark circle around each sphere as shown below... I was wondering anyone know what could be wrong?

image image

Thanks in advance!

razasy299 commented 4 years ago

Self shadow.

darren-moore commented 4 years ago

Perhaps the reflected rays are incorrect? Make sure the vector reflection function is correct and that you're correctly setting the origin and direction of the reflected ray.

AnqiGao98 commented 4 years ago

Perhaps the reflected rays are incorrect? Make sure the vector reflection function is correct and that you're correctly setting the origin and direction of the reflected ray.

Yes, I made mistakes in reflected rays. Thanks!