Viewing a saved revision (read-only)
f180a97da3024c00a99b42e432111ff0
Fork of Earth with Magnetic Field
A 3D Earth rotates in a starry black void, surrounded by a spherical shell of magnetic field lines rendered as semi-transparent glowing tubes. The visualization includes latitude circles, longitude semicircles, diagonal paths, and traditional dipole lines, with blue and orange markers at the magnetic poles. Built with Three.js and WebGL, the scene uses a realistic Earth texture and supports interactive camera controls for rotation, zoom, and panning.
AI-generated descriptionEarth with Magnetic Field Visualization
This project shows a 3D visualization of Earth with its magnetic field represented by field lines.
Features
- 3D Earth with realistic texture
- Magnetic field lines visualized as both dipole field lines and circular field lines that surround the Earth in all directions
- Interactive camera controls (rotate, zoom, pan)
- Earth rotation animation
- Starry background
Technologies Used
- Three.js for 3D rendering
- JavaScript ES modules
- HTML5 and CSS
How It Works
The magnetic field is represented using two types of field lines:
- Dipole field lines that follow the mathematical formula: r = C * sin²(θ), which connect the north and south poles
- Circular field lines that encircle the Earth in various orientations, giving a complete 360° visualization of the field surrounding the planet
The blue marker indicates the north magnetic pole, and the orange marker indicates the south magnetic pole.