Lec3b Extra-Models
Lec3b Extra-Models
application display
program
• All steps can be implemented in hardware
on the graphics card
E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 5
Vertex Processing
type of object
location of vertex
glBegin(GL_POLYGON)
glVertex3f(0.0, 0.0, 0.0);
glVertex3f(0.0, 1.0, 0.0);
glVertex3f(0.0, 0.0, 1.0);
glEnd( );
• Types of lights
Point sources vs distributed sources
Spot lights
Near and far sources
Color properties
• Material properties
Absorption: color properties
Scattering
• Diffuse
• Specular