build using threejs an exploration of the eifel tower.
- User
build using threejs an exploration of the eifel tower.
Assistant
I'll build an immersive Three.js exploration of the Eiffel Tower — a procedurally-built lattice tower you ascend via smooth scrolling, with a golden-hour/night lighting system, sparkles, and an editorial French aesthetic. Let me start by examining the project setup.
Tailwind v4 with Vite. Now let me install the 3D stack: Three.js, React Three Fiber, drei, postprocessing, and Lenis for butter-smooth scrolling.
Packages installed. Now I'll create the core library files: a shared state store (scroll progress, camera altitude, theme factor) and the procedural Eiffel Tower geometry generator (the iconic lattice structure built from the real tower's profile curve).
Now the scene components: sky shader + lighting rig, the sparkling lights system, and the ground atmosphere (Champ de Mars plaza, trees, Paris skyline, dust).
Now the ground environment (plaza, tree allées, Haussmann skyline silhouettes, city-lights ring, drifting dust) and the hero Eiffel Tower component with instanced lattice rendering.
I need to clean up the material handling in EiffelTower.tsx — the beacon markup had a rendering bug and refs passed as materials are fragile. Rewriting with stable memoized materials animated directly:
Now the Scene — canvas, scroll-driven camera rig along the flight path, free-orbit mode, and post-processing.
Now installing Lucide for icons and building the entire UI layer — loader, custom cursor, header controls, altitude HUD, scroll-synced French editorial sections, and the facts ticker.
Now the App shell with Lenis smooth scrolling, global styles with fonts/grain/cursor, and the HTML entry with French typography. Plus a small UI tweak for text legibility over bright skies.
Let me verify main.tsx and then build the project.
Good. Now building to catch any TypeScript or bundling issues:
Build passes. Two refinements needed: the scroll spacer must not block pointer events (or free-flight orbit controls won't receive input), and the loader title needs nowrap sizing for mobile:
Rebuilding to verify the refinements still compile cleanly:
The build is clean. La Tour Eiffel — Une Ascension is complete.
What was built
A fully procedural Eiffel Tower (
src/lib/tower.ts) — no external model. Real dimensions: 125 m base square, floors at 57.6 / 115.7 / 276.1 m, antenna at 330 m. The lattice is generated from the tower's actual exponential profile curve: ~1,400 instanced iron members — corner uprights, ring girders, X-braced faces, an inner "lace" layer, the four great arches between the legs, and radial beams under each restaurant deck.The ascent — Lenis inertial scrolling drives a hand-drawn Catmull-Rom flight path: wide from the Champ de Mars, swooping beneath the arch (vertigo moment), orbiting decks one and two, climbing the thinning lattice, circling the summit, then a grand pull-back finale. Camera breathing + pointer parallax keep it alive.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.