๐ฎ 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