Skip to main content
100%

Sierpinsky Pyramid

✓ Published0🌍 Public
CCurran Kelleher
Last edited Feb 24, 2025
Created on Feb 24, 2025
Forked from 3D Fractal Tree

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 description

3D 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

Similar vizzes