karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

Solid colour images #37

Open taiti22 opened 1 year ago

taiti22 commented 1 year ago

I keep getting solid colour images for depth, id, and normal when I build my project. Does this indicate where the problem in my code is? Screenshot (15)

panuelosj commented 1 year ago

It looks like rays that you're throwing are all hitting the object (based off the fully red id, you're intersecting the object). Your image plane might not be set up correctly (ie, the rays are probably not getting thrown to the correct spots), or your intersections are incorrect such that all they rays think they're intersecting the same spot.