๐ŸŽฎ Pure JS 3D Renderer

No WebGL โ€ข No Libraries โ€ข Pure Mathematics

Cube 60 FPS
๐Ÿ“š Math Behind the Renderer

๐Ÿงฎ Key Mathematical Concepts

  • Vector3: 3D point representation with operations (add, subtract, dot product, cross product)
  • Matrix4: 4ร—4 transformation matrices for rotation, scaling, and translation
  • Perspective Projection: x' = (fยทx)/(f+z), y' = (fยทy)/(f+z)
  • Rotation Matrices: Euler angles for X (pitch), Y (yaw), Z (roll)
  • Golden Ratio: ฯ† = (1+โˆš5)/2 โ‰ˆ 1.618 (used in Dodecahedron)
  • Parametric Surfaces: Torus and Sphere generated mathematically