Previous | Next --- Slide 50 of 70
Back to Lecture Thumbnails
anonymous

So if I'm understanding this right, textures are applied by taking the values at one point of (for example) a triangle in the representation of a figure and mapping those values to the transformed figure?

motoole2

@anonymous It sounds as though you are interpreting this in the reverse order.

Let me elaborate a bit on the process shown here for rendering a texture-mapped cube. Step 1: Specify the vertex positions and their corresponding (U,V) coordinates for each triangle that makes up the cube. Step 2: After transforming the triangle to screen space, sample the triangle. The samples are also referred to as fragments, and will be used to compute the final output of the triangle. Included in each fragment is a (U,V) coordinate computed through interpolating the (U,V) coordinates of the three vertices. Step 3: Use the (U,V) coordinate to look-up the color on the corresponding point of a texture. This color is then assigned to the pixel that the fragment represents.