Sierpinsky Pyramid
✓ Published0🌍 Public
This example visualizes a 3D Sierpinski triangle as a pyramid built from smaller tetrahedra that align with the faces of the outer shape. Animated via a recursive generation process, the scene renders with Three.js using WebGL and canvas, while OrbitControls enable interactive rotation. The code constructs pyramid geometries and materials with directional and point lights, casts shadows onto a ground plane, and applies ambient lighting. A green background and double-sided white materials highlight the fractal’s structure as the camera orbits freely.
AI-generated description3D Sierpinski Triangle (Pyramid) using Three.js
A visualization of a Sierpinski triangle in 3D using pyramids that align with the faces of the outer tetrahedron. Built with Three.js.
MIT Licensed