News for hackers. Stuff that matters.
Re:Accelerated “Ray Tracing in One Weekend” in CUDA by zamadatix on Monday November 05, 2018 @11:06PM (#18388274)
Ray tracing is relatively easy to understand, it's not ray tracing that is actually complicated. Ray tracing is simply sending out rays from the virtual camera, seeing what they hit along the way, and calculating the lighting effects of the materials and light sources when you hit those things. In the end you've simulated a sample of light that hit the camera. Repeat a couple million times and you've got an accurate picture of what the virtual scene looks like.

"Normal" computer graphics is comprised of doing every dirty shortcut trick you can imagine to avoid tracing hundreds of millions of rays per second while still having some semblance of lighting effects in the virtual scene.

Re:Accelerated “Ray Tracing in One Weekend” in CUDA by sdwisely on Monday November 05, 2018 @11:21PM (#18388346)
some good eli5s here, just adding for the grandparent post to remember that light bounces so the calculations get rather iterative and expensive.
Re:Accelerated “Ray Tracing in One Weekend” in CUDA by signa11 on Tuesday November 06, 2018 @12:34AM (#18388641)
also, don't forget that the nature of material also influences how light behaves e.g. scattering, reflection, refraction etc. etc. and depending on the scene, computations can be quite expensive...