Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Earth with Magnetic Field

Public visualization

Viewing a saved revision (read-only)

2d34ec79872044e7830897ff49078114

Fork of Earth with Magnetic Field

0 stars1🌍 Public
NNita
Last edited Mar 19, 2025
Created on Mar 19, 2025

This animated WebGL visualization depicts a full solar system with textured planets, orbital paths, and Earth’s magnetic field shown as curved dipole field lines emanating from labeled north and south magnetic poles. Using Three.js with the OrbitControls module, the scene renders the Sun, all eight planets, Saturn’s rings, and a starry background. Field lines follow the dipole equation r = C·sin²(θ), with interactive camera controls for rotation, zoom, and pan.

AI-generated description

Earth 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 dipole field emanating from poles
  • 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 dipole field equations that create curved lines from the north pole to the south pole. The field lines follow the mathematical formula: r = C * sin²(θ), which describes how magnetic field lines behave around a dipole magnet (like Earth's core).

The blue marker indicates the north magnetic pole, and the orange marker indicates the south magnetic pole.