Skip to main content
100%

Fork of Fork of Earth with Magnetic Field

✓ Published3🌍 Public
NNita
Last edited Mar 19, 2025
Created on Mar 19, 2025

An interactive 3D solar system renders the Sun and eight planets with orbit paths, textured surfaces, and Saturn’s rings, while highlighting Earth’s magnetic field via blue and orange poles connected by dipole field lines. Built with Three.js and ES modules, it uses orbit controls for camera navigation, point and ambient lighting for illumination, and fixed planet scales for clarity. The scene animates planetary rotations and revolutions, and the magnetic field lines are generated from the dipole equation r = C · sin²(θ), with textures loaded from Three.js example assets.

AI-generated description

Solar System with Earth's Magnetic Field

This project shows a 3D visualization of our solar system with a focus on Earth's magnetic field represented by field lines.

Features

  • Complete solar system with the Sun and all 8 planets
  • Realistic planet textures
  • Planetary orbits and rotations
  • Earth's magnetic field lines visualized as dipole field emanating from poles
  • Saturn with rings
  • Interactive camera controls (rotate, zoom, pan)
  • 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 d

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

Note: Planet sizes and distances are not to scale to improve visualization.

MIT Licensed

Similar vizzes