Return to Video

Color Interpolation - Interactive 3D Graphics

  • 0:00 - 0:05
    When we interpolate the red, green, and blue colors across a triangle, we get
  • 0:05 - 0:09
    this result. It's important to understand how the triangle rasterization part of
  • 0:09 - 0:13
    the pipeline actually interpolates across the triangle. Essentially, whatever is
  • 0:13 - 0:18
    put at one vertex fades off across the triangle. For example, say, instead of
  • 0:18 - 0:21
    putting rgb, we put green at the top corner, and black at the other two corners.
  • 0:22 - 0:26
    You can see in this case that the green is the brightest at the corner, and then
  • 0:26 - 0:30
    fades as we approach the other two corners. If you think of green as represented
  • 0:30 - 0:35
    by one, and black as zero, we linearly interpolate across the triangle and fade
  • 0:35 - 0:39
    from one to zero. This works for the other two corners in a similar fashion,
  • 0:39 - 0:43
    with blue fading to black as shown here. For comparison here's the red
  • 0:43 - 0:48
    component. Since light is additive, the GPU uses all three of these components
  • 0:48 - 0:52
    to display the triangle. The GPU will interpolate any data put at its vertices
  • 0:52 - 0:56
    in this way, effect we'll use later for material shading.
Title:
Color Interpolation - Interactive 3D Graphics
Video Language:
English
Team:
Udacity
Project:
CS291 - Intro to 3D Computer Graphics
Duration:
0:56
Udacity Robot edited English subtitles for Color Interpolation - Interactive 3D Graphics
Cogi-Admin added a translation

English subtitles

Revisions Compare revisions