- Home /
Question by
michael 4 · Jul 13, 2011 at 05:50 PM ·
primitives
Why does a primitive cube contain 24 verts??
It should only have 8
Comment
Best Answer
Answer by Eric5h5 · Jul 13, 2011 at 05:54 PM
It should have 24, because each face needs 4 separate vertices for the normals and UVs. The faces can't share normals and UVs (well, technically they could, but the lighting and texture would look completely screwed up).
Answer by Mortennobel · Jul 13, 2011 at 06:06 PM
Each side is made of two triangle, but these two triangles share 2 vertices. This gives 4 vertices per side. In total 4*6=24 vertices.
The reason why the vertices cannot be shared, is that they have different normals.
Ooh, he's right about the tris. I'll delete my incorrect answer.
Your answer