Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 972743 of Explaining basic 3D theory

  • Revision slug: Games/Techniques/3D_on_the_web/Basic_theory
  • Revision title: Explaining basic 3D theory
  • Revision id: 972743
  • Created:
  • Creator: ClompenSander
  • Is current revision? No
  • Comment Review, general info and added todo's.

Revision Content

When it comes to the most basic 3D theory it's all about shapes in a 3D space using the coordinate system to calculate it's position.

All the shapes are built from vertices. A vertex have attributes like position, color, normal and texture. Position identifies it in a 3D space [x, y, z], color is holding an RGBA value, normal is a way to describe the direction the vertex is facing and texture is the image that the vertex can use instead of a simple color.

We should also mention that the face of the given shape is a plane between vertices. For example a cube have 8 different vertices (points in space) and 6 different faces, each constructed out of 4 vertices. Also, by connecting the points we're creating the edges of the cube.

The geometry is built from a vertex and the face, while material is a texture, which uses an image. If we connect the geometry with the material we will get a mesh.

[TODO: add images, coordinate system, transformation matrix, projection, meshes, vertices, etc]

Revision Source

<p>When it comes to the most basic 3D theory it's all about shapes in a 3D space using the coordinate system to calculate it's position.</p>

<p>All the shapes are built from vertices. A vertex have attributes like position, color, normal and texture. Position identifies it in a 3D space [x, y, z], color is holding an RGBA value, normal is a way to describe the direction the vertex is facing and texture is the image that the vertex can use instead of a simple color.</p>

<p>We should also mention that the face of the given shape is a plane between vertices. For example a cube have 8 different vertices (points in space) and 6 different faces, each constructed out of 4 vertices. Also, by connecting the points we're creating the edges of the cube.</p>

<p>The geometry is built from a vertex and the face, while material is a texture, which uses an image. If we connect the geometry with the material we will get a mesh.</p>

<p>[TODO: add images, coordinate system, transformation matrix, projection, meshes, vertices, etc]</p>
Revert to this revision