Your nuclear reaction simulator now features cinematic animated sequences showing particles colliding and transforming in real-time!
# Install new animation dependencies
cd frontend
npm install
# The following will be installed:
# - @react-spring/three (physics-based animations)
# - maath (3D math utilities)bash infrastructure/scripts/dev.shNavigate to http://localhost:3000
Click the ๐ฌ Animated 3D button (third option)
The reaction plays automatically:
- Reactants enter from the left
- Collision happens at center with explosion
- Products emerge and move to the right
Click the ๐ Replay Animation button to watch again
STEP 1: Reactant Entry (0-2 seconds)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โโ โ Particles enter
โ โ from left side
โ โโ โ with trail effects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
STEP 2: Collision (2-2.5 seconds)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐ฅ โ BOOM!
โ Sparkles! โ Explosion
โ Light flash โ effect
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
STEP 3: Product Emergence (2.5-4 seconds)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โ โ Products
โ โ โ emerge and
โ โ โ move right
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
STEP 4: Final State (4+ seconds)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ Products
โ โ โ float in
โ โ โ final position
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Glowing trails follow moving particles
- Color-coded by particle type
- Fade effect as particles move
- Expanding sphere of energy
- 50 sparkle particles burst out
- Light flash illuminates the scene
- Orange-amber colors represent energy release
- Spring physics create natural movement
- Bounce effect when products emerge
- Floating animation in final state
D-T Fusion (dt-fusion)
D + T โ [BOOM!] โ He-4 + n
Energy: 17.6 MeV
Perfect example of fusion!
U-235 Fission (u235-fission)
U-235 + n โ [HUGE BOOM!] โ Ba-141 + Kr-92 + 3n
Energy: 200 MeV
Massive energy release!
Pu-239 Fission (plutonium239-fission)
Pu-239 + n โ [KABOOM!] โ Xe-134 + Zr-103 + 3n
Energy: 207 MeV
Even more explosive!
C-14 Decay (carbon14-beta-decay)
C-14 โ [gentle transformation] โ N-14 + eโ + ฮฝฬ
e
Energy: 0.156 MeV
Subtle but beautiful!
| Mode | Button | Best For |
|---|---|---|
| 2D View | ๐ | Quick overview, static diagram |
| 3D Interactive | ๐ฎ | Exploring angles, manual control |
| Animated 3D | ๐ฌ | Seeing the reaction happen โ NEW! |
- Collision Process: See particles actually collide
- Energy Release: Explosion size shows energy scale
- Reaction Timing: Understand sequence of events
- Product Formation: Watch new particles emerge
- Conservation Laws: Track particle counts
- Start with simple reactions (2 particles)
- Progress to complex (multiple products)
- Compare fusion vs fission animations
- Discuss energy scales (explosion size)
- Use replay to focus on specific phases
- Left-click + drag: Rotate view
- Scroll wheel: Zoom in/out
- Right-click + drag: Pan camera
- Replay button: Restart from beginning
- View mode buttons: Switch visualization types
- Watch once: Let it play completely
- Replay and rotate: See from different angles
- Compare reactions: Switch and replay
- Zoom in: Focus on explosion
- Pause (use 3D Interactive mode for frozen view)
โ Use Chrome or Firefox (latest versions) โ Close other tabs/applications โ Use desktop/laptop (not phone) for best quality โ Ensure graphics drivers are updated
- Switch to 3D Interactive or 2D View
- Reduce browser window size
- Close other browser tabs
- Check CPU usage (close background apps)
# Clear cache and reinstall
cd frontend
rm -rf node_modules package-lock.json
npm install- Try: Lower browser zoom level (90% or 80%)
- Try: Switch to 3D Interactive mode
- Try: Close other applications
- Refresh the page
- Check console for errors (F12)
- Zoom out using scroll wheel
- Wait for full animation sequence
- Check lighting (may be too bright/dark)
| Event | When | Duration |
|---|---|---|
| First reactant enters | 0.0s | 1.5s |
| Second reactant enters | 0.5s | 1.5s |
| Collision begins | 2.0s | 0.5s |
| Explosion peaks | 2.2s | 0.3s |
| Products emerge | 2.5s | 0.8s each |
| Animation complete | ~4.0s | - |
- ๐ต Blue: Neutrons
- ๐ด Red: Protons
- ๐ข Green: Electrons/Positrons
- ๐ Orange: Gamma rays/Photons
- ๐ฃ Purple: Neutrinos
- ๐ท Indigo: Heavy nuclei (U, Pu, etc.)
- ๐ฉท Pink: Alpha particles
- Full Animation Docs:
docs/animated-3d-reactions.md - 3D Basics:
docs/enhancement-3d-visualization.md - Visual Guide:
docs/visual-guide.md
- Official Docs: https://www.react-spring.dev/
- 3D Examples: https://docs.pmnd.rs/react-three-fiber/tutorials/using-with-react-spring
Capture screenshots or screen recordings of your favorite animated reactions and share them!
- Use Full Screen mode (F11)
- Record with OBS or similar
- Capture explosion moments
- Compare different reaction types
Version: 2.0.0 (Animated Edition)
Date: 2025-10-10
Status: Ready to Animate! ๐ฌ
Enjoy watching nuclear physics come to life! ๐ฌ๐ฅโจ