karansher / computer-graphics-ray-casting

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

sphere-plane rotated #41

Closed Tahmeem closed 1 year ago

Tahmeem commented 1 year ago

I've been stuck on trying to figure out what part is wrong from having an image that is rotated. image I have the viewing ray written as shown in the tutorial and the plane intersection as shown in the slide. For the plane intersection I check if t < min_t and check if the denominator is 0 before dividing. Looking for any hints to see if the problem could be in viewing ray or maybe i missed something in intersections. Thanks.

Tahmeem commented 1 year ago

I multiplied by -1/2 originally then changed it to multiplying -0.5 and it fixed