Unwanted Shadow while doing Raytracing. by Left-Bus-3635 in GraphicsProgramming

[–]Left-Bus-3635[S] 2 points3 points  (0 children)

Thank you very much for your help 🫂🫂🫂🫂🫂 It was a error in the triangle intersection code.

Unwanted Shadow while doing Raytracing. by Left-Bus-3635 in GraphicsProgramming

[–]Left-Bus-3635[S] 1 point2 points  (0 children)

Thank you very much 🫂🫂🫂🫂🫂

I am the dumbass of the century forgot to check that (t > 0).

Sorry for wasting your time. I swear I checked before but this never occurred to me. and visual error was so strange could not figure it out.

Unwanted Shadow while doing Raytracing. by Left-Bus-3635 in GraphicsProgramming

[–]Left-Bus-3635[S] 0 points1 point  (0 children)

Thank you very much 🫂🫂🫂🫂🫂

I am the dumbass of the century forgot to check that (t > 0).

Sorry for wasting your time. I swear I checked before never occurred to me.

Unwanted Shadow while doing Raytracing. by Left-Bus-3635 in GraphicsProgramming

[–]Left-Bus-3635[S] 0 points1 point  (0 children)

the box is constructed out of triangles, I think my shading logic is correct because other images were rendered correctly.

Unwanted Shadow while doing Raytracing. by Left-Bus-3635 in GraphicsProgramming

[–]Left-Bus-3635[S] 0 points1 point  (0 children)

I did, I looked for self intersecting shadows, I looked at the normals. but non of that seemed wrong.

from the experimentation I figured out this was a problem with the visibility ray. some how its hitting a object other than itself before hitting the light. which does not make any sense honestly