3D Geometry and Attribute Modeling 101

Geometry Modeling

A VAO and the VBOs it references
glDrawArrays(mode, start, nVertices);
glDrawElements(mode, nVertices, vertexIndexType, vertexIndices)

Attribute Modeling

Some model attributes need to be per-vertex; others are per-primitive. We are focusing on attributes related to the lighting model here, and they are most commonly done as per-primitive. Hence that will be our approach here.

We only will present those attributes needed for project 2. We will return to this topic in 3D Geometry and Attribute Modeling 102 later.