logo
Kurashizu Blogwhere ideas flow
  • Home
  • News
  • Blog
  • About
  • Home
  • News
  • Blog
  • About

© 2026 Kurashizu. All rights reserved.

Admin·New Post·Service Status
Powered by Cloudflare·01.11.26
← Back to news

Neo Radar: A browser-based orbital mechanics engine with 41k real asteroids

Original article
neoradar.space|36 points|10 comments|by daviazpen|Jul 22, 2026

Neo Radar: A browser-based orbital mechanics engine with 41k real asteroids


Overview

Neo Radar is a sophisticated, web-accessible simulation designed to visualize the complex dance of Near-Earth Objects (NEOs). Rather than relying on pre-baked animations, it utilizes a custom-built orbital mechanics engine to calculate the positions of 41,000 actual asteroids in real-time. By leveraging the power of the modern browser, it transforms raw astronomical data into an interactive, visual experience.

"The goal was to create a tool that doesn't just show where asteroids are, but demonstrates the underlying physics of how they move through the vacuum of space."


🌌 The Data Foundation

The engine doesn't guess; it uses empirical data. The simulation pulls from extensive catalogs (such as those provided by NASA's JPL) to track thousands of celestial bodies.

Orbital Elements

To place an asteroid in 3D space, the engine processes several key parameters known as Keplerian elements:

ElementSymbolDescriptionImpact on Orbit
Semi-major AxisaaaAverage distance from the SunDetermines the size of the orbit
EccentricityeeeDeviation from a perfect circleDetermines how "stretched" the orbit is
InclinationiiiAngle relative to the ecliptic planeDetermines the vertical tilt
Longitude of Ascending NodeΩ\OmegaΩHorizontal orientation of the orbitRotates the orbit around the Z-axis
Argument of Perihelionω\omegaωOrientation of the orbit's ellipseRotates the ellipse within its own plane
Mean AnomalyMMMPosition of the body at a specific timeDetermines where the asteroid is now

⚙️ Technical Architecture

The Computational Pipeline

The process of moving from a data point to a pixel on your screen follows a strict logical flow:

The Mathematics of Motion

To determine the orbital period TTT of an asteroid, the engine employs Kepler's Third Law:

T=2πa3GMT = 2\pi\sqrt{\frac{a^3}{GM}}T=2πGMa3​​

Where:

  • aaa is the semi-major axis.
  • GGG is the gravitational constant.
  • MMM is the mass of the Sun.

To find the exact position, the engine must solve Kepler's Equation for the Eccentric Anomaly EEE: M = E - e * sin(E)

Since this equation is transcendental, the engine uses an iterative numerical method (like Newton-Raphson) to solve for EEE in real-time.


🚀 Performance Optimization

Rendering 41,000 individual objects would typically crash a browser tab. To prevent this, Neo Radar employs several optimization strategies:

  1. GPU Instancing: Instead of sending 41,000 separate draw calls to the GPU, the engine sends one mesh (a simple point or sphere) and a buffer of 41,000 position vectors.
  2. Typed Arrays: Using Float32Array instead of standard JavaScript arrays to minimize memory overhead and increase cache locality.
  3. Worker Threads: Calculating orbits on the main UI thread →\rightarrow→ Offloading heavy orbital math to Web Workers to ensure the frame rate remains buttery smooth.

Example Implementation Snippet

Here is a simplified look at how the position update might be handled in the engine's core:

function updateAsteroidPosition(asteroid, time) {
    const { a, e, i, omega, Omega, M0 } = asteroid.elements;
    
    // Calculate Mean Anomaly at current time
    const M = M0 + (n * time); 
    
    // Solve for Eccentric Anomaly (E)
    let E = M; 
    for(let i = 0; i < 5; i++) {
        E = E - (E - e * Math.sin(E) - M) / (1 - e * Math.cos(E));
    }
    
    // Convert to 3D Cartesian coordinates (x, y, z)
    return computeCartesian(a, e, i, omega, Omega, E);
}

🛠️ Features & Roadmap

Current Capabilities

  • Real-time simulation of 41k asteroids.
  • Time-scrubbing (fast-forward/rewind orbital motion).
  • Dynamic camera controls for 360° exploration.
  • Accurate scaling of the inner solar system.

Future Enhancements

  • Integration of n-body perturbations (accounting for Jupiter's gravity).
  • High-resolution textures for major NEOs.
  • Search functionality to track specific named asteroids.

Orbital Visualization Placeholder

Figure 1: A conceptual representation of the Neo Radar interface showing the dense cloud of asteroids surrounding the Sun.

Conclusion

Neo Radar is more than a visualizer; it is a testament to the efficiency of modern web technologies. By combining astrophysics, numerical analysis, and WebGL, it brings the vastness of our celestial neighborhood directly into the browser, making the invisible patterns of the cosmos visible to everyone.