Updated: 08/02/2019 by Computer Hope
In CGI (computer-generated imagery), ray casting is the most basic form of raytracing. Unlike other forms of ray tracing, in which rays originate from a light source and bounce off objects to arrive at the observer, in ray casting, they are “cast” directly from the viewpoint. When the cast rays intersect with an object, the color and brightness of the object at that point determines the value of one pixel in the final image. A direction vector represents the orientation of the observer extending forward. A “camera plane” perpendicular to the direction vector, representing the shape of the final rendered image, is also required in most types of ray casting.
In computer games
Ray casting is lower-quality than other forms of ray tracing, but significantly faster. For this reason, it was used in some of the earliest 3D video games.
The first game built on a ray casting engine to achieve massive success was Wolfenstein 3D, which was released on May 5, 1992. The game featured a maze-like map of rooms in which the floors, walls, and ceilings were all the same height, making it ideal for ray casting. The game provided an interactive 3D world, displaying it at a higher frame rate and with a more advanced level of photorealism than previous games. Its success dramatically transformed the video game industry.
Modern video games have advanced significantly since Wolfenstein 3D, with faster CPUs, more memory, and the availability of GPUs to accelerate the computation of 3D graphics. However, most modern video game 3D engines still use an advanced form of ray casting, because it remains the most efficient method to render a 3D image.
Frame rate, Gaming terms, Memory, Software terms