![cover image](https://wikiwandv2-19431.kxcdn.com/_next/image?url=https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/BallsRender.png/640px-BallsRender.png&w=640&q=50)
Ray tracing
rendering algorithm that works by sending out many virtual rays of light / From Wikipedia, the free encyclopedia
Ray tracing is a computer algorithm for drawing very realistic 3D images.
![Thumb image](http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/BallsRender.png/640px-BallsRender.png)
With ray tracing, objects in the scene are described with geometrical shapes like spheres or planes. The computer then sends rays (straight lines) forward from where the camera is. The objects that get hit by these rays are the objects that the camera can see. The computer then draws these objects. This is similar to how our eyes see but in the real world the rays (light) go the opposite way – from the world to our eyes. If we made rays go from the world to the camera, most of the rays would not hit the camera, and we would have to wait a long time until we see an image appear. That is why instead, we make rays go from the camera to the world, meaning we know all the rays we create will go to the camera.