# WonderLab — Complete Technical & Educational Reference URL: https://3d.wondermayank.in/lab/ Author: wondermayank.in License / Cost: Completely free, no login, no ads, no client API keys, runs 100% client-side as static ES modules. ## 1. Overview WonderLab is a first-person interactive 3D chemistry, physics, biology, and astronomy laboratory running directly in desktop and mobile browsers using Three.js (`0.170.0`), Rapier 3D WASM physics (`@dimforge/rapier3d-compat@0.14.0`), GSAP (`3.12.5`), KaTeX (`0.16.11`), IndexedDB, and Web Workers. ## 2. The 10 Interactive Lab Zones 1. **Periodic Table Wall**: Full 118-element interactive 3D wall and modal explorer with atomic mass, group, period, electron configuration, melting/boiling points (K), density, 1st ionization energy, discoverer, uses, safety notes, live rotating 3D Bohr atom model, and an Unlock Challenge game. 2. **Chemistry Experiment Table**: Main feature with 3D glassware, Bunsen burner, hot plate, magnetic stirrer, and 7 physically grabbable labeled reagent bottles (`HCl`, `NaOH`, `H2SO4`, `HNO3`, `KOH`, `NH3`, `CH3COOH`) you can pick up (`F`) and pour (`E`) into the beaker. Includes: - Searchable combobox across 118 elements & 81 compounds + 1-click Famous Experiments + compatible reactant hints. - Temperature (`-50` to `1500 C`), Pressure (`0.1–20 atm`), Catalyst selector, live pH meter, 3D Molecule Viewer (Ball-and-Stick & Space-Filling), KaTeX balanced equations, stoichiometry & mass conservation, flat SVG energy diagram, and failure analysis. - **Titration Lab**: Burette dropper (`+0.5 / +1 / +5 mL NaOH`), `Phenolphthalein`, `Methyl Orange`, and `Universal` indicators, and live pH curve. - **Flame & Spectra**: Atomic emission flame tests (`Na 589 nm`, `K 766 nm`, `Li 670 nm`, `Cu 515 nm`, `Ba 524 nm`, `Sr 650 nm`, `Ca 622 nm`). - **Reference DB**: Solubility Rules Matrix, Galvanic Cell Battery Calculator (`E0 cell`), pKa Strength Table, and Organic Functional Groups & 3D Isomers. 3. **Physics Zone**: Pendulum (`T = 2*pi*sqrt(L/g)`), Falling Ball Viscometer (Stokes' Law), Hooke's Law Spring, DC Circuit (`V = IR`), Faraday's Law Induction, Coulomb's Law, Van de Graaff Generator, Prism Light Dispersion, Huygens Double-Slit Interference, Sound Waves, and magnetic attraction between physical bar magnets and iron cubes. 4. **Component Almari**: Animated doors/drawers cabinet with 10 categories (118 Elements, Chemicals, Glassware, Measuring tools, Heating tools, Physics parts, Electrical parts, Biology items, Materials, Safety gear), search, image/3D previews, and 3D spawning. 5. **Science Encyclopedia**: Physical 3D openable book with 18 chapters (Basic Chemistry through Space Science), GSAP page-turn animation, flat SVG diagrams, KaTeX formulas, practice quizzes, and "Try this experiment" zone jump. 6. **Advanced Simulation Chamber**: Web Worker (`js/worker.js`) simulating 90 3D particles across Ideal Gas (`PV = nRT`), Plasma, Electromagnetic Fields, Atomic, and N-Body Gravity modes. 7. **Reaction Observation Chamber**: Safe visual-only sealed chamber with 6 rapid pulse/blast scenarios (`H2 + O2 Squeaky-Pop`, `Elephant Toothpaste Surge`, `Compressed CO2 Burst`, `Sodium + Water Flash`, `Golden Rain Pulse`, `Argon Plasma Discharge`), `0.1x Slow-Mo Blast` replay, Rapier radial shockwave push, overpressure decay graph (`kPa` / `dB`), and discrete 5x5 thermal heat-map. 8. **Biology Corner**: Microscope onion slide viewer, Plant vs Animal cell explorer, DNA base-pair sequencer, human anatomy systems, and 3D DNA/rock/tree/penguin specimens. 9. **AI Research Computer**: Terminal-style 100% offline local knowledge base querying all 118 elements, 81 compounds, 121 reactions, reference tables, and 18 encyclopedia chapters. 10. **Space & Astronomy Zone**: Solar system Kepler orbits, gravity well funnel, stellar lifecycle, and Schwarzschild black hole radius calculator (`Rs = 2GM/c^2`). ## 3. Global Anti-Gravity & Controls - **Anti-Gravity System (`G`)**: Toggles Zero-G (`0.00 m/s^2`) with floating liquid droplets, or set `0–20 m/s^2` (Zero, Moon, Mars, Earth, Jupiter), per-table gravity overrides, and Pause / Slow / Normal / Fast time control. - **Desktop Controls**: `WASD` move, click viewport to mouse-look, scroll zoom, `E` interact / pour bottle, `F` grab / throw, `G` anti-gravity, `M` 2D lab mini-map, `B` book, `I` almari, `P` periodic table, `N` notebook, `C` walk/orbit camera toggle, `ESC` close panels. - **Mobile Controls**: Virtual left joystick, drag to look, pinch zoom, and on-screen Interact & Grab buttons. ## 4. Datasets (`data/`) - `data/elements.json`: 118 elements enriched with Bohr shells, electronegativity, melting/boiling points, density, ionization energies, uses, safety notes, and facts. - `data/compounds.json`: 81 laboratory & textbook compounds with 3D atom/bond coordinates. - `data/reactions.json`: 121 atom-balance-verified textbook reactions. - `data/chemistry_ref.json`: Solubility matrix, pKa table, standard electrode potentials (`E0`), and organic functional groups. - `data/book.json`: 18 interactive encyclopedia chapters. - `data/equipment.json`: 52 lab tools, glassware, reagents, and 3D specimens.