Ray Tracing in Media
- 43Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is rendering in the context of CGI?
43 questions
- 1
What is rendering in the context of CGI?
Model answer
Rendering is the computational process that simulates how rays of light bounce off and illuminate 3D models, transforming a scene of models into a realistic 2D image.
Explanation
Rendering takes the 3D scene (models, textures, lights, camera) and calculates the final image by simulating light transport.
- 2
How are 3D models typically represented for GPU rendering?
Model answer
3D models are broken down into small triangles, as GPUs almost exclusively work with scenes made of triangles.
Explanation
Triangles are the basic geometric primitive for most rendering pipelines due to their simplicity and ease of calculation.
- 3
What is a texture in 3D modeling?
Model answer
A texture defines both the color and material attributes of a surface, such as whether it is rough, smooth, metallic, glass, or water-like.
Explanation
Textures are applied to models to give them visual detail and physical properties that affect how light interacts with them.
- 4
What is the difference between direct illumination and indirect illumination?
Model answer
Direct illumination comes directly from light sources onto a surface, while indirect illumination comes from light that bounces off other surfaces before reaching the surface.
Explanation
Direct illumination accounts for light rays that travel straight from a light source to the surface; indirect illumination accounts for light that reflects off other objects.
- 5
What is global illumination?
Model answer
Global illumination is the combination of direct and indirect illumination in a scene.
Explanation
Global illumination produces realistic lighting by considering both direct light and light that bounces between objects.
- 6
Why do we send rays from the camera instead of from light sources in path tracing?
Model answer
Only a small fraction of light rays from light sources actually reach the camera, so sending rays from the camera and tracing them backwards into the scene is computationally efficient and focuses only on useful rays.
Explanation
This approach avoids simulating the near-infinite number of rays from light sources that never hit the camera.
- 7
What is a primary ray in path tracing?
Model answer
A primary ray is a ray sent from the camera through a pixel on the view plane into the scene to find what object (triangle) is first visible at that pixel.
Explanation
Primary rays determine the basic color and object seen at each pixel.
- 8
What is a shadow ray?
Model answer
A shadow ray is a ray sent from an intersection point (where a primary or secondary ray hits) toward a light source to determine if that point is directly illuminated or in shadow.
Explanation
If the shadow ray is blocked by an object, the point is in shadow; otherwise, it receives direct illumination.
- 9
What is a secondary ray in path tracing?
Model answer
A secondary ray is a ray generated from an intersection point that bounces off the surface to find indirect illumination by hitting another surface.
Explanation
Secondary rays simulate light bouncing between objects, enabling indirect lighting and color bleeding.
- 10
What is the view plane in CGI?
Model answer
The view plane is a 2D plane in front of the virtual camera that has the same pixel count as the final image, representing where the image is formed.
Explanation
Rays pass through the view plane to determine pixel colors.
- 11
How many pixels are in a 4K image?
Model answer
A 4K image has approximately 8.3 million pixels.
Explanation
4K resolution (3840x2160) gives about 8.3 million pixels.
- 12
Explain how a single ray from the camera contributes to determining the color of a pixel.
Model answer
A ray starts at the camera, travels through a random point in a pixel on the view plane, hits a triangle, and the object's color becomes associated with that pixel. The colors of multiple rays through the same pixel are averaged.
Explanation
Each pixel uses many rays (e.g., 1000) to get an accurate color average.
- 13
How does path tracing determine direct illumination for a point on a surface?
Model answer
Shadow rays are sent from the intersection point toward each light source. If no object blocks a ray, the point is directly illuminated, and the light source's brightness, size, color, distance, and surface direction are factored in and multiplied by the surface's RGB values.
Explanation
This calculates the contribution of each visible light source to the point's color.
- 14
How does path tracing determine indirect illumination?
Model answer
Secondary rays are generated from the intersection point and bounced off the surface. At the new hit point, shadow rays are sent to light sources to compute its illumination, effectively turning that point into a light source that illuminates the original point.
Explanation
Multiple bounces (e.g., 4) accumulate indirect light contributions.
- 15
What is the purpose of bouncing secondary rays multiple times?
Model answer
To find different paths where light bounces off multiple surfaces and indirectly illuminates the original point, accumulating accurate indirect lighting.
Explanation
Each bounce captures another level of indirect illumination, improving realism.
- 16
How do material properties like roughness affect the direction of secondary rays?
Model answer
Roughness determines how randomly secondary rays bounce: low roughness (0%) produces mirror-like reflection with all rays bouncing in the same direction; high roughness (100%) causes rays to bounce in entirely random directions, giving a diffuse appearance.
Explanation
Smooth surfaces reflect coherently; rough surfaces scatter light.
- 17
When a material has roughness set to 0%, what is the result? What about 100%?
Model answer
At 0% roughness, the surface becomes a mirror; at 100% roughness, the surface appears flat and gray (diffuse).
Explanation
Zero roughness gives perfect specular reflection; 100% gives Lambertian diffuse reflection.
- 18
What are refraction rays and when are they generated?
Model answer
Refraction rays are generated when a ray hits a glass material; they pass through the glass and their direction depends on the material, affecting the color and brightness of pixels in the glass.
Explanation
Refraction simulates light bending when entering transparent materials.
- 19
Give an example of color bleeding (color bouncing) in path tracing.
Model answer
When a red balloon is placed next to a wall, secondary rays are tinted red by the balloon and illuminate the wall with a reddish color.
Explanation
Color bleeding is the transfer of color from one object to another via indirect illumination.
- 20
How many rays per pixel and secondary bounces were used for the barbershop scene?
Model answer
The barbershop scene used 1000 rays per pixel and 4 secondary bounces.
Explanation
These are render settings chosen during scene setup; other scenes may use different values.
- 21
Why is path tracing called 'path tracing'?
Model answer
It is called path tracing because it finds billions of paths from the camera through different points in the scene to the light sources using primary, secondary, and shadow rays.
Explanation
Each ray path traces a possible route for light from the camera to a light source.
- 22
Why is path tracing computationally demanding for animated films?
Model answer
Animations have 24 frames per second, so a 20-minute animation requires over a quadrillion rays, which historically was computationally impossible without powerful hardware.
Explanation
The number of rays scales with pixels, rays per pixel, bounces, and frames.
- 23
How many rays are needed for a single frame of the barbershop scene?
Model answer
With 8.3 million pixels, 1000 rays per pixel, and 4 bounces (plus shadow rays per bounce), a single frame requires billions of rays; specifically, 8.3 billion primary rays (one per ray per pixel) and many more for bounces.
Explanation
The total rays per frame = pixels × rays per pixel × (1 + bounces × shadow rays per bounce, approximated).
- 24
How many triangles are in the island scene and the barbershop scene?
Model answer
The island scene has 3.2 million triangles; the barbershop scene has 8 million triangles.
Explanation
These are examples of scene complexity in CGI.
- 25
What is a bounding volume hierarchy (BVH)?
Model answer
A BVH is a tree structure that recursively divides triangles into progressively smaller axis-aligned boxes (bounding volumes) to accelerate ray-triangle intersection tests.
Explanation
BVH reduces the number of intersection calculations by quickly eliminating large groups of triangles.
- 26
Explain how BVH reduces the number of ray-triangle intersection calculations.
Model answer
The ray first checks intersection with large bounding boxes; if it misses a box, all triangles inside are skipped. If it hits, it continues to smaller boxes. At the bottom, only a few triangles (e.g., 6) remain for detailed intersection tests.
Explanation
This hierarchical approach avoids testing millions of triangles per ray.
- 27
For 3 million triangles, how many divisions are needed in the BVH, and how many boxes are at the bottom? How many triangles per box?
Model answer
Approximately 19 divisions are needed, resulting in about 525,000 boxes at the bottom, each containing around 6 triangles.
Explanation
Each division halves the number of triangles per box, leading to a binary tree.
- 28
What is a ray-box intersection calculation?
Model answer
It is a simple geometric test to determine if a ray hits an axis-aligned bounding box by checking intercept coordinates against the box's bounds.
Explanation
Axis-aligned boxes make these calculations fast and efficient.
- 29
What is BVH traversal?
Model answer
BVH traversal is the process of navigating the BVH tree by performing ray-box intersection tests at each branch until reaching a leaf node containing a small set of triangles.
Explanation
Traversal guides the ray to the most likely triangles it will hit.
- 30
When was path tracing first conceptualized, and when did it first appear in movies?
Model answer
Path tracing was first conceptualized in 1986, and it took about 30 years before movies like Zootopia, Moana, Finding Dory, and Coco were rendered using path tracing.
Explanation
This delay was due to the enormous computational requirements.
- 31
What are CUDA cores and what do they do in a GPU?
Model answer
CUDA (or shading) cores perform basic arithmetic operations and are used for general-purpose parallel computing, including graphics rendering.
Explanation
CUDA cores handle the mathematical calculations needed for shading and other computations.
- 32
What are RT cores and what are they optimized for?
Model answer
RT (Ray Tracing) cores are specialized hardware units designed and optimized to execute ray tracing calculations efficiently.
Explanation
RT cores accelerate the computationally intensive ray traversal and intersection operations.
- 33
Describe the two sections inside an RT core.
Model answer
One section is the BVH traversal section, which takes box coordinates and ray direction and executes BVH traversal in nanoseconds. The other is the ray-triangle intersection section, which finds which of the few triangles in the leaf box the ray hits first.
Explanation
These two sections pipeline the ray tracing operations for speed.
- 34
How do RT cores operate to handle billions of rays per second?
Model answer
RT cores operate in parallel with one another and pipeline the traversal and intersection operations, enabling a few billion rays to be processed every second.
Explanation
Parallelism and pipelining are key to achieving high throughput.
- 35
Compare the computational power of the ASCI White supercomputer (2000) to the Nvidia 3090 GPU.
Model answer
The ASCI White supercomputer (2000) cost $110 million and performed 12.3 trillion operations per second; the Nvidia 3090 GPU (2022) costs a few thousand dollars and its CUDA cores perform 36 trillion operations per second.
Explanation
Modern GPUs vastly outperform early supercomputers at a fraction of the cost.
- 36
How long does it take to render a complex scene (like the one shown) on a modern GPU?
Model answer
A complex scene can be rendered in about 4 minutes on a modern GPU with RT cores.
Explanation
The combination of BVH and dedicated hardware makes real-time or near-real-time rendering possible.
- 37
Describe the light mapping method for ray tracing in video games.
Model answer
A low-resolution duplicate of all models is created, path tracing determines direct and indirect lighting on the low-res version, the results are saved into a light map, which is then applied to the high-resolution objects to create realistic lighting and shadows.
Explanation
This method approximates global illumination without requiring full path tracing per frame.
- 38
What is a light map in the context of ray tracing?
Model answer
A light map is a texture or data structure that stores precomputed lighting information (direct and indirect) for surfaces, applied to objects to give realistic illumination.
Explanation
Light maps are generated by path tracing on a low-resolution version of the scene.
- 39
What is screen space ray tracing?
Model answer
Screen space ray tracing uses the 2D image and additional data (depth map, normal map) generated from the graphics pipeline to approximate reflections and lighting by casting rays within the screen space representation.
Explanation
It avoids using the full 3D geometry, making it faster but limited.
- 40
What additional data does the video game graphics pipeline provide for screen space ray tracing?
Model answer
It provides a depth map (distance from camera) and a normal map (surface direction) for each pixel, which are combined to approximate 3D positions and orientations.
Explanation
These maps allow reconstruction of a simplified scene for ray tracing.
- 41
What are two limitations of screen space ray tracing?
Model answer
It can only use data that is on the screen; objects that move off-screen cannot be reflected. Also, it cannot reflect objects behind the camera.
Explanation
Screen space data is limited to the current view frustum.
- 42
Which ray tracing technique is used in Unreal Engine's Lumen renderer?
Model answer
Unreal Engine's Lumen renderer uses a light mapping approach with low-resolution duplicates and path tracing.
Explanation
Lumen employs software ray tracing and signed distance fields for global illumination.
- 43
Which game uses screen space ray tracing?
Model answer
Cyberpunk (Cyberpunk 2077) uses screen space ray tracing along with other rendering algorithms.
Explanation
Screen space reflections are commonly used in modern games for performance.

Ask anything
We've read this whole study set, so questions about it get the best answers.