What problem does it solve?
Building convincing 3D architecture in Three.js usually means importing mesh files or hand-writing repetitive geometry, and animating a construction sequence typically requires complex per-part timelines. This Skill provides a small procedural geometry vocabulary and a single clipping-plane technique so towers, pagodas, domes, and spires are generated from parameters and film themselves assembling.
Core Features & Use Cases
- Procedural geometry vocabulary: Ten small builders (face, box, n-gon prism, swept plan, lathe, tube) that append into shared vertex arrays, so each architectural style is one assembly function plus a parameter table, merged by material for low draw-call counts.
- Parametric hip roofs: One roof function driven by six parameters (lift, tip, flare, pow, trunc, ridge) produces East Asian flying-eave roofs, with clamping to avoid NaN from overshooting tiles.
- Clipping-plane build animation: A single rising THREE.Plane clips all structural materials while scaffolding ignores it, with a plan-matched cap mesh turning hollow clipped sections into solid masonry courses.
- Use Case: Create an architectural title sequence where a castle keep or five-tier pagoda assembles in about four seconds, with stage captions, a percentage readout, orbit controls, and a scrubbable timeline.
Quick Start
Use the threejs-towers skill to generate a procedural tower in Three.js and animate it assembling behind a rising clip plane with scaffolding standing above the finished work.