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

  • 60Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Pipeline Overview
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

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

Tap to flipClick to flipspace

Vertex shading, rasterization, and fragment shading.

Or swipe the card

60 cards

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

    Vertex shading, rasterization, and fragment shading.

  2. What is the overall purpose of the graphics rendering pipeline?

    To transform 3D geometry, textures, lighting, and other data into a 2D image displayed on the screen.

  3. What is a vertex in a 3D graphics model?

    A point with coordinates that helps define the shape and position of a 3D object.

  4. What are triangles used for in 3D graphics?

    Triangles are the basic flat geometric elements used to construct the surfaces of 3D models.

  5. Why are GPUs well suited for video game rendering?

    They can perform large amounts of parallel matrix, multiplication, and addition operations on triangle meshes.

  6. How frequently are the rendering calculations repeated in a moving video game?

    They are recalculated for every frame.

  7. How long is one frame at a rate of 120 frames per second?

    Approximately 8.38.38.3 milliseconds.

  8. What is a view screen in computer graphics?

    The 2D image area that represents what the camera sees and that is sent to the display.

  9. What is the main purpose of vertex shading?

    To transform the vertices of 3D objects into positions on the 2D view screen.

  10. What does a camera's field of view determine?

    It determines which objects and portions of the 3D scene are visible to the player.

  11. What are the three coordinate transformations applied to a vertex?

    Model space to world space, world space to camera space, and camera space through perspective projection to the view screen.

  12. What information is used to transform a vertex from model space to world space?

    The model's position, scale, and rotation in world space.

  13. What camera information is used when transforming vertices to the screen?

    The camera's position, rotation, and field of view.

  14. How are the vertex transformations typically computed?

    By placing the relevant coordinates and scene information into transformation matrices and multiplying the matrices together.

  15. What values result from transforming a vertex onto the view screen?

    Screen-space XXX and YYY coordinates plus a ZZZ depth value.

  16. How is a triangle moved onto the view screen?

    Each of its three vertices is transformed using the same type of matrix-based coordinate calculations.

  17. Why can a complex curved object be rendered using flat triangles?

    A sufficiently large collection of small flat triangles approximates the object's curved and complex surfaces.

  18. How many triangles and vertices were used for the locomotive in the example?

    Approximately 762,000762{,}000762,000 triangles and 382,000382{,}000382,000 vertices.

  19. What rendering workload did the example scene contain?

    Approximately 2.12.12.1 million vertices and 3.53.53.5 million triangles across the visible objects.

  20. What is rasterization?

    The process of determining which screen pixels are covered by each transformed triangle.

  21. What is a fragment in rasterization?

    A group of pixels produced from the same triangle that initially share that triangle's texture or color.

  22. How does the GPU determine which pixels a triangle covers?

    It uses the triangle's screen-space XXX and YYY vertex coordinates to locate the triangle within the display's pixel grid.

  23. What is the resolution of a 444K display in the example?

    3840×21603840 \times 21603840×2160 pixels, or approximately 8.38.38.3 million pixels.

  24. How is a basic rasterized image formed?

    The GPU assigns the triangles' red, green, and blue color values to their covered pixels and stores the result in the frame buffer.

  25. What is the visibility problem?

    The problem of determining which overlapping triangles are in front of others and should appear in the final image.

  26. What is a Z-buffer or depth buffer?

    A buffer that stores a depth value for each screen pixel to determine which triangle is closest to the camera.

  27. How does the Z-buffer decide whether a triangle should replace a pixel's current color?

    If the triangle's depth is lower, meaning closer to the camera, its color replaces the existing pixel color and its depth replaces the stored depth.

  28. What happens when a rasterized triangle has a higher depth value than the Z-buffer value?

    It is discarded for that pixel because it is farther from the camera than the triangle already stored there.

  29. Why must depth be computed separately for individual pixels within a triangle?

    Because a triangle's three vertices can have different depth values, so depth varies across its surface.

  30. Why can ordinary rasterization produce jagged edges?

    A pixel intersected by a triangle may be painted entirely with the triangle's color, even when only part of the pixel is covered.

  31. What is Super Sampling Anti-Aliasing?

    A technique that evaluates multiple sampling points within each pixel to create smoother edges.

  32. How does SSAA reduce pixelation?

    It applies a partial or fractional color to edge pixels according to the fraction of sampling points covered by the triangle.

  33. What is the purpose of fragment shading?

    To assign each visible pixel a realistic color based on lighting, materials, camera position, reflections, and shadows.

  34. What visual factors can fragment shading account for?

    Light direction and strength, camera position, reflections, and shadows cast by other objects.

  35. How does lighting affect a surface in the basic shading model?

    A surface facing directly toward a light is brighter, while a surface perpendicular to or facing away from the light is darker.

  36. What two directions are needed to calculate basic triangle shading?

    The direction of the light and the direction the triangle's surface faces.

  37. What is a surface normal?

    A direction perpendicular to the plane of a surface or triangle.

  38. How is the angle between a light direction and a surface normal used in shading?

    The cosine of the angle, cos⁡θ\cos\thetacosθ, measures how directly the surface faces the light.

  39. How is a triangle's basic illuminated color calculated?

    Multiply the light intensity by max⁡(0,cos⁡θ)\max(0,\cos\theta)max(0,cosθ) and by the material color, then add ambient illumination.

  40. Why is the cosine term limited to a minimum of zero?

    To prevent surfaces facing away from the light from receiving a negative lighting contribution.

  41. What is ambient light in the shading model?

    A baseline illumination added to surfaces so that areas not directly facing a light source are not completely black.

  42. How are multiple light sources handled?

    The lighting calculation is performed for each light using its direction and intensity, and the individual contributions are added together.

  43. Why do scenes often limit the number or range of light sources?

    Calculating the effect of many lights is computationally expensive for the GPU.

  44. What visual effect does a specular highlight represent?

    Shininess caused by light reflecting or bouncing off a surface toward the viewer.

  45. What is flat shading?

    A shading method in which every pixel across an individual triangle receives the same surface normal and therefore the same basic color.

  46. Why does flat shading look unrealistic on curved objects?

    Adjacent triangles have different constant normals, creating abrupt changes in color between triangles.

  47. How is a normal calculated for a vertex in smooth shading?

    It is calculated as an average of the normals of the adjacent triangles.

  48. What are barycentric coordinates used for in smooth shading?

    They interpolate the three vertex normals across a triangle to obtain a smoothly varying normal for each pixel.

  49. How is the normal for an individual fragment obtained?

    The pixel center, the triangle's coordinates, and its three vertex normals are used to calculate a barycentric interpolation.

  50. What is the result of using interpolated normals on a curved surface?

    A gradient of surface orientations and pixel colors that produces smooth shading across the curve.

  51. How can vector mathematics calculate the cosine between light direction and surface normal?

    Using the dot product divided by the product of the vectors' norms: cos⁡θ=a⋅b∥a∥∥b∥\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{\|\mathbf{a}\|\|\mathbf{b}\|}cosθ=∥a∥∥b∥a⋅b​.

  52. What is ray tracing primarily used for in graphics?

    Creating highly detailed scenes with accurate lighting and reflections.

  53. How is ray tracing used in some video games?

    It supplements the main rendering pipeline by calculating shadows, reflections, and improved lighting.

  54. What is DLSS?

    An algorithm that upscales a low-resolution frame to a higher-resolution frame, such as 444K, using a convolutional neural network.

  55. When is DLSS executed in relation to ray tracing and the main rendering pipeline?

    After ray tracing and the graphics pipeline generate a low-resolution frame.

  56. What are the three separate GPU architectures described in the content?

    CUDA or shading cores, ray-tracing cores, and Tensor cores.

  57. Which GPU cores execute the conventional graphics rendering pipeline?

    CUDA or shading cores.

  58. Which GPU cores execute ray tracing and DLSS?

    Ray-tracing cores execute ray tracing, while Tensor cores execute DLSS.

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

    They can use separate GPU resources simultaneously, enabling 444K gameplay with frames rendered in under 101010 milliseconds in the example.

  60. What are examples of other advanced video game graphics topics?

    Shadows, reflections, UVs, and normal maps.

Card 1 of 60
Card 1 of 60

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent