1. Home
  2. Explore
  3. Computer Science
  4. Video Game Graphics Pipeline

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Video Game Graphics Pipeline

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Pipeline Fundamentals

What are the three core steps of the video game graphics rendering pipeline?

67 questions

  1. 1

    What are the three core steps of the video game graphics rendering pipeline?

    1. A

      Vertex shading, rasterization, and fragment shading

    2. B

      Texture mapping, ray tracing, and frame buffering

    3. C

      Modeling, animation, and display scanning

    4. D

      Lighting, collision detection, and image compression

    Correct answer
    A

    Vertex shading, rasterization, and fragment shading

    Explanation

    The three foundational pipeline steps are vertex shading, rasterization, and fragment shading.

  2. 2

    What is the primary purpose of vertex shading?

    1. A

      To upscale a low-resolution image into a higher-resolution frame

    2. B

      To calculate the illumination and color of each visible pixel

    3. C

      To determine which display pixels are covered by each triangle

    4. D

      To transform 3D geometry into positions on a 2D view screen

    Correct answer
    D

    To transform 3D geometry into positions on a 2D view screen

    Explanation

    Vertex shading transforms object vertices from 3D space into screen positions, including depth information.

  3. 3

    What is the primary purpose of rasterization?

    1. A

      To calculate the angle between a light and a surface normal

    2. B

      To generate a high-resolution image using a neural network

    3. C

      To move each model from model space into world space

    4. D

      To determine which pixels are covered by each transformed triangle

    Correct answer
    D

    To determine which pixels are covered by each transformed triangle

    Explanation

    Rasterization uses the screen coordinates of a triangle's vertices to identify the pixels covered by that triangle.

  4. 4

    What is the primary purpose of fragment shading?

    1. A

      To convert the camera's field of view into vertex coordinates

    2. B

      To identify the triangles that intersect the camera's viewing plane

    3. C

      To divide a model into vertices and flat triangular surfaces

    4. D

      To apply realistic lighting, shadows, reflections, and material effects to pixels

    Correct answer
    D

    To apply realistic lighting, shadows, reflections, and material effects to pixels

    Explanation

    Fragment shading determines the final appearance of pixels by accounting for illumination, camera position, reflections, shadows, and materials.

  5. 5

    Why can a complex video game scene be processed efficiently by a GPU?

    1. A

      The GPU avoids transforming most triangles because triangles require no coordinates

    2. B

      The GPU stores every possible final image and selects one during gameplay

    3. C

      The GPU replaces all geometric calculations with manually painted textures

    4. D

      The GPU distributes large amounts of similar mathematical work across many cores

    Correct answer
    D

    The GPU distributes large amounts of similar mathematical work across many cores

    Explanation

    GPUs are designed to distribute repetitive vertex and transformation calculations across many computational cores.

  6. 6

    What is a fragment in the graphics rendering pipeline?

    1. A

      A complete frame stored before it is sent to the display

    2. B

      A group of pixels produced by rasterizing one triangle

    3. C

      A single vertex before it is transformed into screen space

    4. D

      A light source represented by a collection of surface normals

    Correct answer
    B

    A group of pixels produced by rasterizing one triangle

    Explanation

    Rasterization turns a triangle into a fragment, which is the set of pixels covered by that triangle and associated with its color or texture.

  7. 7

    Why must the rendering pipeline be recalculated continuously during gameplay?

    1. A

      The camera and scene objects continually change position and orientation

    2. B

      The GPU loses all vertex coordinates after completing each triangle

    3. C

      Textures change from binary data into analog signals after each frame

    4. D

      The number of pixels in the display changes every time a frame is shown

    Correct answer
    A

    The camera and scene objects continually change position and orientation

    Explanation

    Because the camera and objects move, their projected positions, visibility, and shading must be recalculated for every frame.

  8. 8

    At a rendering rate of 120120120 frames per second, approximately how often are the pipeline calculations repeated?

    1. A

      Every 8.38.38.3 milliseconds

    2. B

      Every 505050 milliseconds

    3. C

      Every 16.716.716.7 milliseconds

    4. D

      Every 120120120 milliseconds

    Correct answer
    A

    Every 8.38.38.3 milliseconds

    Explanation

    The frame interval is approximately 1/1201/1201/120 second, or about 8.38.38.3 milliseconds.

  9. 9

    What does the graphics rendering pipeline ultimately produce for the display?

    1. A

      A set of camera coordinates that still requires geometric projection

    2. B

      A two-dimensional image assembled from transformed and shaded triangles

    3. C

      A list of light directions without any associated pixel information

    4. D

      A three-dimensional collection of unprocessed model-space vertices

    Correct answer
    B

    A two-dimensional image assembled from transformed and shaded triangles

    Explanation

    The pipeline transforms 3D geometry into a 2D image whose pixels are assigned visibility, color, and lighting information.

  10. 10

    Why are triangles commonly used as the basic geometric primitive in real-time graphics?

    1. A

      Triangles provide a simple mesh structure that GPUs can process in large numbers

    2. B

      Triangles automatically contain realistic lighting without fragment shading

    3. C

      Triangles always remain visible regardless of the camera's position

    4. D

      Triangles eliminate the need for coordinates, matrices, and depth values

    Correct answer
    A

    Triangles provide a simple mesh structure that GPUs can process in large numbers

    Explanation

    The content describes GPUs as highly optimized for rendering triangle meshes, allowing millions of triangles to be processed rapidly.

  11. 11

    Which sequence correctly describes the three coordinate transformations applied to a vertex?

    1. A

      Screen space to world space, world space to model space, model space to camera space

    2. B

      World space to model space, screen space to camera space, camera space to texture space

    3. C

      Camera space to model space, model space to screen space, screen space to world space

    4. D

      Model space to world space, world space to camera space, camera space to screen space

    Correct answer
    D

    Model space to world space, world space to camera space, camera space to screen space

    Explanation

    A vertex is first placed in the world, then expressed relative to the camera, and finally projected onto the view screen.

  12. 12

    Which information is needed to transform a vertex from model space into world space?

    1. A

      The model's position, scale, and rotation in the world

    2. B

      The light's intensity, color, and distance from the camera

    3. C

      The display's pixel count, color depth, and refresh interval

    4. D

      The triangle's barycentric coordinates, texture, and fragment depth

    Correct answer
    A

    The model's position, scale, and rotation in the world

    Explanation

    The model-to-world transformation uses the model's position, scale, and rotation.

  13. 13

    Which camera information affects the transformation of a vertex into screen space?

    1. A

      The camera's coordinates, rotation, and field of view

    2. B

      The camera's frame buffer, Z-buffer, and fragment color

    3. C

      The camera's texture color, material type, and surface normal

    4. D

      The camera's triangle count, vertex count, and mesh topology

    Correct answer
    A

    The camera's coordinates, rotation, and field of view

    Explanation

    The final projection depends on the camera's position, orientation, and field of view.

  14. 14

    What is the role of transformation matrices in vertex shading?

    1. A

      They store the color of every pixel that will appear in the final image

    2. B

      They combine coordinate and camera information to calculate screen position and depth

    3. C

      They determine the number of sampling points used for anti-aliasing

    4. D

      They identify which light sources should be replaced by ambient illumination

    Correct answer
    B

    They combine coordinate and camera information to calculate screen position and depth

    Explanation

    The relevant values are placed into transformation matrices, which are multiplied to obtain the vertex's screen-space XXX, YYY, and ZZZ values.

  15. 15

    What does the transformed ZZZ value of a vertex represent in the rendering pipeline?

    1. A

      Its depth or distance relative to the camera

    2. B

      Its red color contribution in the final image

    3. C

      Its horizontal position on the display

    4. D

      Its number of adjacent triangles in the mesh

    Correct answer
    A

    Its depth or distance relative to the camera

    Explanation

    The transformed ZZZ coordinate records depth and is later used to determine which surfaces are visible.

  16. 16

    How is an entire train model transformed onto the screen?

    1. A

      Each vertex is transformed individually, causing its triangles to move into screen space

    2. B

      Only the front-facing triangle is transformed and copied over the rest of the train

    3. C

      The train is transformed as one indivisible mathematical point

    4. D

      The model is converted directly into pixels without transforming its vertices

    Correct answer
    A

    Each vertex is transformed individually, causing its triangles to move into screen space

    Explanation

    Although the train appears to move as one object, its hundreds of thousands of vertices are transformed one at a time.

  17. 17

    A scene contains 1,1001{,}1001,100 models, but the camera's field of view includes only 600600600. What is the significance of this reduction?

    1. A

      The camera increases the resolution of the remaining objects automatically

    2. B

      The renderer can avoid processing objects outside the camera's visible region

    3. C

      The renderer must duplicate the visible objects to preserve scene complexity

    4. D

      The field of view converts the remaining objects from triangles into pixels

    Correct answer
    B

    The renderer can avoid processing objects outside the camera's visible region

    Explanation

    The camera's field of view limits the objects that need to be rendered, reducing unnecessary work.

  18. 18

    After three vertices have been transformed, what screen-space primitive do they define?

    1. A

      One triangle

    2. B

      One display frame

    3. C

      One light source

    4. D

      One complete object

    Correct answer
    A

    One triangle

    Explanation

    Three transformed vertices define a single triangle on the 2D view screen.

  19. 19

    Why can a GPU render millions of triangles every few milliseconds?

    1. A

      It uses the CPU to paint every pixel while the GPU stores only textures

    2. B

      It replaces matrix multiplication with a fixed image of a similar scene

    3. C

      It renders only one vertex per object and estimates all remaining geometry

    4. D

      Its many cores execute large numbers of multiplication and addition operations in parallel

    Correct answer
    D

    Its many cores execute large numbers of multiplication and addition operations in parallel

    Explanation

    GPUs contain many specialized cores that distribute vertex coordinates and transformation calculations across parallel computation units.

  20. 20

    What does rasterization determine for a transformed triangle?

    1. A

      Which neural-network layers should upscale the triangle

    2. B

      Which specific pixels in the display grid are covered by the triangle

    3. C

      Which camera rotations are needed to illuminate the triangle

    4. D

      Which world-space coordinates are assigned to the model's origin

    Correct answer
    B

    Which specific pixels in the display grid are covered by the triangle

    Explanation

    Rasterization uses the triangle's screen-space XXX and YYY coordinates to identify its covered pixels.

  21. 21

    Approximately how many pixels are in a 3840imes21603840 imes 21603840imes2160 display?

    1. A

      Approximately 8.38.38.3 million pixels

    2. B

      Approximately 3.53.53.5 million pixels

    3. C

      Approximately 2.12.12.1 million pixels

    4. D

      Approximately 976976976 thousand pixels

    Correct answer
    A

    Approximately 8.38.38.3 million pixels

    Explanation

    Multiplying 384038403840 by 216021602160 gives approximately 8.38.38.3 million pixels.

  22. 22

    What happens after rasterization identifies the pixels covered by a triangle?

    1. A

      Those pixels are associated with the triangle's texture or color

    2. B

      Those pixels are converted into camera rotations

    3. C

      Those pixels are transformed back into model-space vertices

    4. D

      Those pixels are removed from the frame buffer immediately

    Correct answer
    A

    Those pixels are associated with the triangle's texture or color

    Explanation

    The pixels covered by a rasterized triangle receive the color or texture assigned to that triangle before further shading.

  23. 23

    How is a final image formed in the frame buffer?

    1. A

      The RGB values of appropriate fragments are applied to the corresponding pixels

    2. B

      The ZZZ values are displayed directly as red, green, and blue channels

    3. C

      The vertices are shown as points while triangles remain mathematically invisible

    4. D

      The camera's field of view is copied into every pixel without shading

    Correct answer
    A

    The RGB values of appropriate fragments are applied to the corresponding pixels

    Explanation

    The renderer applies red, green, and blue color values to the appropriate pixels, building the image in the frame buffer.

  24. 24

    What is the visibility problem in computer graphics?

    1. A

      Determining which neural network should upscale a rendered frame

    2. B

      Determining which colors should be used to represent a material

    3. C

      Determining how many vertices are needed to model a curved surface

    4. D

      Determining which overlapping triangles are in front of and should obscure others

    Correct answer
    D

    Determining which overlapping triangles are in front of and should obscure others

    Explanation

    The visibility problem concerns deciding which surfaces are closest to the camera when triangles overlap.

  25. 25

    What information does a Z-buffer store for each pixel?

    1. A

      The rotation of the camera when the pixel was first created

    2. B

      The number of triangles that have been rasterized into the pixel

    3. C

      The depth or distance of the currently visible surface from the camera

    4. D

      The average RGB color of every triangle in the scene

    Correct answer
    C

    The depth or distance of the currently visible surface from the camera

    Explanation

    A Z-buffer adds a depth value to each pixel so that the renderer can compare competing surfaces.

  26. 26

    A newly rasterized triangle has a lower depth value than the value stored for a pixel. What should happen?

    1. A

      The existing pixel is darkened while the stored depth remains unchanged

    2. B

      The triangle's color replaces the pixel, and its depth replaces the stored depth

    3. C

      The triangle is moved farther from the camera before being rasterized again

    4. D

      The triangle is discarded because lower depth values indicate greater distance

    Correct answer
    B

    The triangle's color replaces the pixel, and its depth replaces the stored depth

    Explanation

    A lower depth value represents a closer surface, so the new triangle replaces both the pixel color and the stored depth.

  27. 27

    A newly rasterized triangle has a higher depth value than the value stored for a pixel. What should happen?

    1. A

      The triangle is discarded because the existing surface is closer

    2. B

      The triangle replaces the existing pixel because higher values are always preferred

    3. C

      The two colors are averaged without comparing their depths

    4. D

      The pixel is removed so that both triangles become transparent

    Correct answer
    A

    The triangle is discarded because the existing surface is closer

    Explanation

    A higher depth value indicates a farther surface, so the previously stored closer surface remains visible.

  28. 28

    Why must depth sometimes be computed separately for each pixel of a triangle?

    1. A

      A triangle's three vertices can have different depths, so depth varies across its surface

    2. B

      The triangle changes its number of vertices as it crosses the display

    3. C

      Every pixel has a different RGB color before rasterization begins

    4. D

      The camera uses a different field of view for every pixel

    Correct answer
    A

    A triangle's three vertices can have different depths, so depth varies across its surface

    Explanation

    Because the triangle's vertices may have different ZZZ values, the depth at each covered pixel must be interpolated across the triangle.

  29. 29

    How does per-pixel depth calculation help render intersecting triangles?

    1. A

      It forces all intersecting triangles to use the same surface normal

    2. B

      It allows the renderer to determine the correct intersection visibility pixel by pixel

    3. C

      It eliminates the need to transform vertices into screen coordinates

    4. D

      It guarantees that distant triangles are painted over nearby triangles

    Correct answer
    B

    It allows the renderer to determine the correct intersection visibility pixel by pixel

    Explanation

    Computing depth across each triangle allows the Z-buffer to resolve intersections accurately at individual pixels.

  30. 30

    What visual artifact can occur when a triangle crosses a pixel at an angle?

    1. A

      The pixel automatically displays the average color of every scene object

    2. B

      The triangle gains extra vertices along its edge during fragment shading

    3. C

      The triangle becomes completely invisible because angled edges have no depth

    4. D

      The edge can appear jagged because the entire pixel is assigned one color

    Correct answer
    D

    The edge can appear jagged because the entire pixel is assigned one color

    Explanation

    If a triangle crosses a pixel, basic rasterization may paint the entire pixel, producing a jagged edge.

  31. 31

    What is the purpose of Super Sampling Anti-Aliasing?

    1. A

      To transform model coordinates into camera coordinates

    2. B

      To increase the number of light sources affecting a scene

    3. C

      To determine which triangle is closest using depth comparisons

    4. D

      To reduce jagged edges by estimating partial pixel coverage

    Correct answer
    D

    To reduce jagged edges by estimating partial pixel coverage

    Explanation

    SSAA reduces pixelation by sampling different locations within a pixel and applying a fractional color based on coverage.

  32. 32

    How does SSAA determine a fractional shade for a pixel?

    1. A

      It measures how many of its sampling points are covered by the triangle

    2. B

      It replaces the pixel with the color of the nearest light source

    3. C

      It averages the depth values of all triangles in the scene

    4. D

      It chooses the color of the triangle with the most vertices

    Correct answer
    A

    It measures how many of its sampling points are covered by the triangle

    Explanation

    SSAA distributes sampling points within a pixel and uses the fraction covered by a triangle to determine the pixel's shade.

  33. 33

    In the described SSAA example, how many sampling points are distributed across one pixel?

    1. A

      Sixteen sampling points

    2. B

      Thirty-two sampling points

    3. C

      Eight sampling points

    4. D

      One hundred sampling points

    Correct answer
    A

    Sixteen sampling points

    Explanation

    The example uses 161616 sampling points within each pixel.

  34. 34

    Why do fractional shades produced by SSAA make an edge appear smoother?

    1. A

      They increase the depth difference between adjacent triangles

    2. B

      They force every triangle to use the same color at its edges

    3. C

      They remove all pixels touched by a triangle's boundary

    4. D

      They create faded edge pixels instead of abruptly coloring an entire pixel

    Correct answer
    D

    They create faded edge pixels instead of abruptly coloring an entire pixel

    Explanation

    Partially covered pixels receive intermediate shades, creating a gradual transition that makes jagged edges less noticeable.

  35. 35

    What factors must fragment shading account for to make a scene realistic?

    1. A

      Only the model's origin, scale, rotation, and world-space coordinates

    2. B

      Light direction and strength, camera position, reflections, and shadows

    3. C

      Only the number of sampling points, pixels, textures, and frame buffers

    4. D

      Only the triangle count, vertex count, display size, and frame rate

    Correct answer
    B

    Light direction and strength, camera position, reflections, and shadows

    Explanation

    Fragment shading uses illumination, viewing position, reflections, and shadows to calculate realistic pixel appearance.

  36. 36

    How does a surface's orientation relative to a light source affect its brightness?

    1. A

      A surface facing the light is brighter, while a perpendicular or backward-facing surface is darker

    2. B

      A surface facing away from the light is brighter because it receives reflected light automatically

    3. C

      Surface orientation has no effect because all fragments receive identical illumination

    4. D

      A surface is brightest only when its normal is perpendicular to the light direction

    Correct answer
    A

    A surface facing the light is brighter, while a perpendicular or backward-facing surface is darker

    Explanation

    Surfaces oriented toward a light receive stronger illumination, while perpendicular or opposing surfaces receive less.

  37. 37

    What is a surface normal?

    1. A

      A direction perpendicular to a triangle's surface

    2. B

      A vector pointing from the camera to the display

    3. C

      The average RGB value of a triangle's pixels

    4. D

      The distance between a triangle and the nearest light

    Correct answer
    A

    A direction perpendicular to a triangle's surface

    Explanation

    The surface normal is the direction perpendicular to the plane of a triangle.

  38. 38

    What two directions are compared to calculate a triangle's basic lighting response?

    1. A

      The direction of the camera and the direction of the triangle's texture

    2. B

      The direction of the light and the direction of the triangle's surface normal

    3. C

      The direction of the display scan and the direction of the frame buffer

    4. D

      The direction of the triangle's motion and the direction of its world position

    Correct answer
    B

    The direction of the light and the direction of the triangle's surface normal

    Explanation

    Basic diffuse lighting depends on the relationship between the light direction and the triangle's surface normal.

  39. 39

    What does the value of cos(theta) represent in the simplified lighting calculation?

    1. A

      How far the triangle is from the camera

    2. B

      How many pixels are covered by the triangle

    3. C

      How directly the triangle's surface faces the light

    4. D

      How many adjacent triangles share the same vertex

    Correct answer
    C

    How directly the triangle's surface faces the light

    Explanation

    The cosine of the angle between the light direction and surface normal measures their alignment.

  40. 40

    What is the value of cos(theta) when a surface faces directly toward the light?

    1. A

      111

    2. B

      0.50.50.5

    3. C

      000

    4. D

      −1-1−1

    Correct answer
    A

    111

    Explanation

    When the surface normal and light direction align, the angle is zero and cos(0)=1.

  41. 41

    What is the value of cos(theta) when a surface is perpendicular to the light direction?

    1. A

      −1-1−1

    2. B

      0.250.250.25

    3. C

      111

    4. D

      000

    Correct answer
    D

    000

    Explanation

    A perpendicular surface forms a 909090-degree angle with the light direction, and cos(90^circ)=0.

  42. 42

    In the simplified shading model, what quantities are multiplied to obtain the lighted material color?

    1. A

      The camera depth, triangle count, and display resolution

    2. B

      The clamped cosine term, light intensity, and material color

    3. C

      The vertex count, field of view, and frame interval

    4. D

      The texture coordinates, Z-buffer value, and sampling count

    Correct answer
    B

    The clamped cosine term, light intensity, and material color

    Explanation

    The lighting contribution is calculated from the cosine alignment term, the light intensity, and the material color.

  43. 43

    Why is the cosine lighting term clamped to a minimum of zero?

    1. A

      To convert all depth values into nonnegative RGB values

    2. B

      To make perpendicular surfaces brighter than front-facing surfaces

    3. C

      To ensure that every surface receives maximum direct illumination

    4. D

      To prevent surfaces facing away from the light from producing negative lighting

    Correct answer
    D

    To prevent surfaces facing away from the light from producing negative lighting

    Explanation

    Negative cosine values would represent light coming from behind the surface, so the direct-light term is limited to zero.

  44. 44

    What is the purpose of adding ambient light to the shading calculation?

    1. A

      To replace the need to calculate surface normals

    2. B

      To increase the number of pixels covered by each triangle

    3. C

      To prevent surfaces from becoming completely black when direct light is absent

    4. D

      To make all surfaces equally bright regardless of their orientation

    Correct answer
    C

    To prevent surfaces from becoming completely black when direct light is absent

    Explanation

    Ambient light adds a baseline illumination, preventing surfaces facing away from direct lights from becoming pitch black.

  45. 45

    How is ambient light typically adjusted between daytime and nighttime scenes?

    1. A

      It is lower during the day and highest at night

    2. B

      It is higher during the day and closer to zero at night

    3. C

      It remains exactly constant regardless of the time of day

    4. D

      It is applied only to surfaces facing directly toward the sun

    Correct answer
    B

    It is higher during the day and closer to zero at night

    Explanation

    The content describes using stronger ambient illumination during daytime and reducing it toward zero at night.

  46. 46

    How are multiple light sources handled in the described lighting model?

    1. A

      All light directions are averaged before any surface calculation occurs

    2. B

      Each light's contribution is calculated separately and then added together

    3. C

      Each light replaces the material color rather than contributing illumination

    4. D

      Only the brightest light is used, while all other lights are ignored

    Correct answer
    B

    Each light's contribution is calculated separately and then added together

    Explanation

    The renderer repeats the lighting calculation for each source and sums the individual contributions.

  47. 47

    Why might a game limit the number or range of light sources?

    1. A

      Calculating many light contributions can be computationally intensive for the GPU

    2. B

      The Z-buffer can store depth values for only one light source

    3. C

      Additional lights prevent triangles from having surface normals

    4. D

      Distant lights cannot be represented using RGB color values

    Correct answer
    A

    Calculating many light contributions can be computationally intensive for the GPU

    Explanation

    Multiple lighting calculations require additional GPU work, so games may limit light counts or ignore distant lights.

  48. 48

    What visual effect does a specular highlight represent?

    1. A

      The visible outline created when a triangle crosses a pixel

    2. B

      The depth value assigned to a hidden triangle

    3. C

      Shininess caused by light reflecting strongly from a surface

    4. D

      Darkness caused by a surface facing away from every light

    Correct answer
    C

    Shininess caused by light reflecting strongly from a surface

    Explanation

    Specular highlights are bright, shiny regions produced when light bounces off a surface toward the viewer.

  49. 49

    Why would applying one uniform black color to every train fragment look unrealistic?

    1. A

      It would ignore variations caused by lighting direction, intensity, and surface orientation

    2. B

      It would make the train use more triangles than the GPU can process

    3. C

      It would prevent rasterization from identifying the train's covered pixels

    4. D

      It would cause the train's vertices to lose their world-space coordinates

    Correct answer
    A

    It would ignore variations caused by lighting direction, intensity, and surface orientation

    Explanation

    Realistic metal requires shading differences, such as darker lower surfaces, lighter upper surfaces, and specular highlights.

  50. 50

    What problem results from using one normal for every triangle on a curved object?

    1. A

      The object cannot be transformed from model space to world space

    2. B

      The object automatically receives excessive ambient illumination

    3. C

      The object becomes invisible whenever its triangles overlap

    4. D

      The object receives flat shading and appears less smoothly curved

    Correct answer
    D

    The object receives flat shading and appears less smoothly curved

    Explanation

    A single normal per flat triangle produces constant color across that triangle, creating flat shading on curved surfaces.

  51. 51

    How is a vertex normal calculated for smooth shading?

    1. A

      By assigning the same normal to every vertex in the entire object

    2. B

      By selecting the normal of the triangle farthest from the camera

    3. C

      By setting the normal equal to the direction of the nearest light

    4. D

      By averaging the normals of the triangles adjacent to that vertex

    Correct answer
    D

    By averaging the normals of the triangles adjacent to that vertex

    Explanation

    Smooth shading uses a normal at each vertex, calculated from the average of adjacent triangle normals.

  52. 52

    What role do barycentric coordinates play in smooth shading?

    1. A

      They convert a triangle's color into a camera rotation

    2. B

      They count how many lights affect a particular object

    3. C

      They determine which triangle has the smallest depth value

    4. D

      They interpolate the three vertex normals across a triangle

    Correct answer
    D

    They interpolate the three vertex normals across a triangle

    Explanation

    Barycentric coordinates create a proportional blend of the three vertex normals for each fragment.

  53. 53

    For a particular fragment, what information is used to calculate its interpolated normal?

    1. A

      The display resolution, the frame rate, and the number of scene objects

    2. B

      The Z-buffer image, the camera's field of view, and the material count

    3. C

      The ray-tracing result, the neural-network output, and the frame buffer

    4. D

      The pixel center, the triangle's vertex normals, and the triangle's coordinates

    Correct answer
    D

    The pixel center, the triangle's vertex normals, and the triangle's coordinates

    Explanation

    The fragment's normal is calculated using the pixel center together with the pre-rasterized triangle's vertex normals and coordinates.

  54. 54

    Why does interpolating vertex normals produce smoother curved surfaces?

    1. A

      Neighboring pixels receive gradually changing surface directions and therefore gradually changing brightness

    2. B

      The interpolation removes the need for light direction and intensity

    3. C

      Every triangle receives exactly the same color, eliminating all shading boundaries

    4. D

      The renderer replaces the curved surface with a single large polygon

    Correct answer
    A

    Neighboring pixels receive gradually changing surface directions and therefore gradually changing brightness

    Explanation

    A gradient of interpolated normals creates a gradient of lighting angles, producing smooth pixel-by-pixel shading.

  55. 55

    How does the movement of the sun affect a shaded object in a game?

    1. A

      The object's geometry is automatically reduced as the sun moves

    2. B

      The Z-buffer changes all sunlit pixels to the same depth

    3. C

      The rasterizer replaces the object's material with a new mesh

    4. D

      Changing the sun's direction changes the object's illumination over time

    Correct answer
    D

    Changing the sun's direction changes the object's illumination over time

    Explanation

    As the sun changes position, the light direction relative to surface normals changes, altering the object's shading.

  56. 56

    What mathematical operation can be used to calculate the cosine between a light direction and a surface normal?

    1. A

      The sum of the vectors' coordinates divided by the triangle area

    2. B

      The cross product multiplied by the camera's field of view

    3. C

      The dot product divided by the product of the vectors' norms

    4. D

      The difference between the vectors' depths multiplied by light intensity

    Correct answer
    C

    The dot product divided by the product of the vectors' norms

    Explanation

    For vectors, the cosine of the angle between them is found using the dot product divided by the product of their norms.

  57. 57

    Which mathematical tools are directly relevant to the transformations used in 3D graphics?

    1. A

      Number theory and abstract algebra only

    2. B

      Thermodynamics and fluid mechanics

    3. C

      Linear algebra and matrix mathematics

    4. D

      Probability theory and statistical sampling only

    Correct answer
    C

    Linear algebra and matrix mathematics

    Explanation

    Coordinate transformations are performed with matrices, making linear algebra and matrix mathematics directly relevant.

  58. 58

    Which mathematical areas are especially relevant to calculating lighting angles and 3D geometry?

    1. A

      Organic chemistry, geology, and thermodynamics

    2. B

      Vector calculus, trigonometry, and three-dimensional geometry

    3. C

      Classical literature, linguistics, and economics

    4. D

      Circuit design, accounting, and population biology

    Correct answer
    B

    Vector calculus, trigonometry, and three-dimensional geometry

    Explanation

    Vectors and angles are central to lighting calculations, while trigonometry and 3D geometry support the representation of surfaces and directions.

  59. 59

    What is ray tracing primarily used to produce in the context described?

    1. A

      The storage of one depth value for each display pixel

    2. B

      Highly detailed lighting, shadows, and reflections

    3. C

      The basic transformation of every vertex into screen coordinates

    4. D

      The interpolation of vertex normals across a rasterized triangle

    Correct answer
    B

    Highly detailed lighting, shadows, and reflections

    Explanation

    Ray tracing is used for detailed and accurate lighting and reflection effects, including shadows in some games.

  60. 60

    Why is ray tracing traditionally difficult to use for real-time video games?

    1. A

      A single highly detailed frame can require dozens of minutes or more to render

    2. B

      Ray tracing requires every object to contain exactly one triangle

    3. C

      Ray tracing works only on two-dimensional images without geometry

    4. D

      Ray tracing cannot calculate reflections or shadows in a 3D scene

    Correct answer
    A

    A single highly detailed frame can require dozens of minutes or more to render

    Explanation

    The content contrasts ray tracing's high visual accuracy with its potentially very long rendering time for a single frame.

  61. 61

    How is ray tracing commonly integrated into the described game rendering approach?

    1. A

      Ray tracing is used only to calculate the camera's field of view

    2. B

      Ray tracing replaces all vertex shading, rasterization, and fragment shading in every game

    3. C

      The main pipeline handles primary visibility and shading, while ray tracing may improve shadows, reflections, and lighting

    4. D

      Ray tracing converts every triangle directly into a texture before vertex processing

    Correct answer
    C

    The main pipeline handles primary visibility and shading, while ray tracing may improve shadows, reflections, and lighting

    Explanation

    Games generally use the rasterization-based pipeline for primary rendering and may use ray tracing for selected lighting, shadow, or reflection effects.

  62. 62

    What does DLSS do?

    1. A

      It calculates the depth of every triangle using a Z-buffer

    2. B

      It transforms model-space vertices into world-space coordinates

    3. C

      It uses a convolutional neural network to upscale a low-resolution frame to 444K

    4. D

      It distributes lighting calculations among the triangle's three vertices

    Correct answer
    C

    It uses a convolutional neural network to upscale a low-resolution frame to 444K

    Explanation

    DLSS takes a lower-resolution rendered frame and uses a convolutional neural network to produce a 444K output.

  63. 63

    When is DLSS applied in the sequence described?

    1. A

      Before any vertices are transformed from model space

    2. B

      Before the scene's geometry and camera position are known

    3. C

      During rasterization before the GPU identifies covered pixels

    4. D

      After the graphics pipeline and ray tracing have produced a low-resolution frame

    Correct answer
    D

    After the graphics pipeline and ray tracing have produced a low-resolution frame

    Explanation

    DLSS is executed after the graphics pipeline and ray tracing generate a lower-resolution frame that can then be upscaled.

  64. 64

    Which GPU resources are associated with the three major processing tasks described?

    1. A

      Tensor cores for rasterization, shading cores for DLSS, and ray-tracing cores for texture storage

    2. B

      Shading cores for frame storage, Tensor cores for camera movement, and ray-tracing cores for color selection

    3. C

      Ray-tracing cores for vertex shading, Tensor cores for visibility, and shading cores for display scanning

    4. D

      Shading or CUDA cores for rendering, ray-tracing cores for ray tracing, and Tensor cores for DLSS

    Correct answer
    D

    Shading or CUDA cores for rendering, ray-tracing cores for ray tracing, and Tensor cores for DLSS

    Explanation

    The content assigns the graphics pipeline to CUDA or shading cores, ray tracing to ray-tracing cores, and DLSS to Tensor cores.

  65. 65

    What is the performance advantage of using ray tracing and DLSS together on a modern GPU?

    1. A

      They guarantee that every scene uses fewer triangles than a basic rasterized scene

    2. B

      They eliminate all geometric calculations so that no vertices need to be processed

    3. C

      They make the Z-buffer unnecessary by storing all visibility information in the neural network

    4. D

      They can use separate computational resources while enabling high-resolution frames to render quickly

    Correct answer
    D

    They can use separate computational resources while enabling high-resolution frames to render quickly

    Explanation

    Separate GPU architectures can run the rendering pipeline, ray tracing, and DLSS concurrently, allowing high-quality output with lower effective rendering cost.

  66. 66

    According to the described comparison, approximately how long might a frame take using only CUDA or shading cores?

    1. A

      Approximately 111 millisecond

    2. B

      Approximately 505050 milliseconds

    3. C

      Approximately 8.38.38.3 milliseconds

    4. D

      Approximately 120120120 milliseconds

    Correct answer
    B

    Approximately 505050 milliseconds

    Explanation

    The content states that relying solely on CUDA or shading cores could make a frame take around 505050 milliseconds.

  67. 67

    What rendering time is associated with the high-end ray tracing and DLSS example?

    1. A

      Several minutes per frame in all cases

    2. B

      Less than 101010 milliseconds per frame

    3. C

      Around 505050 milliseconds per frame

    4. D

      Around 120120120 milliseconds per frame

    Correct answer
    B

    Less than 101010 milliseconds per frame

    Explanation

    The example states that using ray tracing and DLSS with separate GPU resources can produce frames in less than 101010 milliseconds.

Question 1 of 67
Question 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent