karansher / computer-graphics-ray-casting

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

Weird output for sphere and plane #40

Closed angw135 closed 2 years ago

angw135 commented 2 years ago

My output for the sphere and plane image is really strange, I would assume the problem is with my viewing ray, but I followed the formula from the slides so I'm not sure what I could be doing wrong. download (1) edit: nvm, flipped i and j, and v needs to be multiplied by -1 since we're starting at the top left:,)