An Explanation of Basic Ray Tracing

Photo by Nigel Tadyanehondo on Unsplash

What is Ray Tracing?

Generating Rays

p(t) = e + t(s - e)or you could do...p(t) = e + (t * d)

Perspective Projection

u = l + (r - l)(i + 0.5)/Nx
v = b + (t - b)(j + 0.5)/Ny

Ray Intersection

Coloring Pixels on the Image Plane

Shading

Conclusion

Software Engineer at IBM — more about me at https://cernera.me/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store