DEV Community

wenyumoney
wenyumoney

Posted on

I Built an Interactive 3D Universe Map Connecting the Yin-Yang Diagram to 11 Scientific Fields

I built an unusual educational website: a bilingual (EN/ZH) platform that maps the ancient Taiji (Yin-Yang) diagram onto 11 modern scientific domains β€” quantum physics, information theory, chaos theory, systems science, and more.

The core idea: the Yin-Yang diagram isn't mysticism β€” it's a remarkably prescient model of polarity, mutual dependence, and emergence. These same patterns appear across modern science in surprising ways.

What you can do on the site

  • πŸ—ΊοΈ 3D Universe Map β€” 21 nodes across 11 disciplines, connected by conceptual bridges. Drag to rotate, scroll to zoom, click golden nodes to enter deep-dive pages.
  • πŸŽ₯ Guided Tour β€” GSAP-powered camera fly-through covering 6 core nodes in narrative order.
  • πŸ“– 11 Domain deep-dives β€” Each has its own page with custom Canvas/SVG/Three.js visualizations exploring the Taiji connection.
  • πŸ“ Knowledge Quiz β€” Per-domain quiz after each article + a cumulative 11-domain comprehensive quiz with score tracking.
  • πŸ“ Reading Progress β€” localStorage-based tracking across visits. Resume where you left off.
  • 🌐 Fully Bilingual β€” Defaults to English for international visitors.

Tech stack

Next.js 16 (App Router) + React 19 + TypeScript
Three.js / R3F / Drei + GSAP 3
Tailwind CSS v4 + next-intl v4

Some connections I found

  • Mathematics: Leibniz discovered binary arithmetic (0-63) through the 64 hexagrams in 1701 β€” the Bagua diagram is a 3-bit binary table
  • Quantum Entanglement: Paired particles that mirror each other's states regardless of distance β€” pure yin within yang, yang within yin
  • Symmetry Breaking: The universe's forces emerging from an undifferentiated state mirrors Yin-Yang differentiating from Wuji
  • Information Theory: Shannon entropy formalizes order-from-chaos β€” pure yang emerging from yin
  • Chaos & Fractals: Hidden order in apparent randomness, infinite self-similarity β€” the Taiji within the Taiji

Why this was interesting to build

Making the 3D graph both beautiful and meaningful took many iterations of the force layout algorithm. Keeping the UI elegant in both Chinese and English (very different text lengths) forced a flexible card-based design. SSR/CSR consistency for the random quiz required implementing a seeded PRNG.

πŸ”— Live site: https://tai-chi-diagram-science.vercel.app
πŸ“‚ Source: https://github.com/wenyumoney/tai-chi-diagram-science

Would love feedback on the 3D map UX and the bilingual design patterns!

Top comments (0)