



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




100% 80% 60%^ 40%^
20%
!=1 !=0.8 !=0.6 !=0.4 !=0.
Often want to combine a sequence of images together
Introduce a new alpha channel in addition to RGB channels
covered by the stored color
( r , g , b , α ) ⇒( α r , α g , α b , α)
Compositing one image over another is most common choice
Given images A & B , we can compute C = A over B
This is only one possible compositing operator
A A B
C = α A + 1 −α α B
A
C = A + 1 −α B
Very similar to closed curves
face
Also more efficient types
Drawing the Mesh:
glBegin(GL_TRIANGLES);
for(int j=0; j<n; j++)
{
glVertex3f(…);
glVertex3f(…);
glVertex3f(…);
}
glEnd();
Flat shading
Smooth shading
for 1 2
p ( u ) = ( 1 − u ) p + u p 0 ≤ u ≤ 1
1
p
2
p