Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 852 Bytes

appunti.md

File metadata and controls

33 lines (22 loc) · 852 Bytes

MCHolistic3d

Anatomy of a Cube

  • 12 Triangles (two for each side)
  • Vertex Array
  • Normals Array
  • UV Array
  • Triangle Array (1d array)

Vertex Array (array of array):

0 // contains xyz of each vertex of each triangle 1

Normal Array (array of array):

0 // contains the normals of each vertex (the index refers to the corresponding vertex in the vertex array) 1

UV Array (array of array):

0 // contains the positioning of a pixel of the texture on a 2 axis system (the index refers to the corrisponding vertex in the vertex array) 1

Triangle Array (simple array): 0 // must be read in groups of three numbers, each group represents the vertices of a triangle 1 2

UVS

Le uv nell'uv array si riferiscono ai vertici in senso antiorario! (stile piano cartesiano)