A discussion about expanding my Three.js Solar System project into a full interactive 3D Universe Explorer, and getting expert advice on architecture, rendering, scale, and procedural galaxies.

Hi everyone,

I’m a 16-year-old student from India working on a personal project called Nakul’s Universe.

Live demo:
https://nakulop12345-pro.github.io/system/

GitHub repository:
https://github.com/nakulop12345-pro/system

I started the project as a 3D Solar System visualization, but I’m now trying to evolve it into a much larger interactive Universe Explorer.

What currently works

The project already includes:

  • :sun: Sun and all 8 planets
  • :new_moon: Pluto and major moons
  • :ringed_planet: Planetary orbital motion
  • :counterclockwise_arrows_button: Planet rotation
  • :triangular_ruler: Orbital eccentricity and inclination
  • :ring: Saturn’s rings
  • :globe_showing_europe_africa: Earth atmosphere and texture system
  • :crescent_moon: Moon system
  • :comet: Comets
  • :comet: Asteroid and Kuiper belts
  • :satellite: ISS visualization and orbital motion
  • :telescope: Object selection and camera focusing
  • :bar_chart: Scientific information panels
  • :balance_scale: Object comparison
  • :one_o_clock: Simulation date/time and speed controls
  • :waning_crescent_moon: Eclipse simulation
  • :star: Procedural star field

I’m deliberately trying to make it more than a static visualization. I want users to be able to explore, select, zoom, simulate and learn about the objects rather than simply watch them orbit.

Where I want to take it

The next major stage is expanding beyond the Solar System:

Earth → Solar System → nearby stars → Milky Way → Local Group → galaxies → large-scale Universe

I’d like to eventually include:

  • :milky_way: Procedural galaxies
  • :star: Real nearby-star data
  • :cyclone: Milky Way / Andromeda / Triangulum
  • :fog: Nebulae
  • :hole: Black holes
  • :sparkles: Star clusters
  • :telescope: A searchable astronomical-object catalogue
  • :magnifying_glass_tilted_left: Multiple levels of detail as the user zooms between astronomical scales

What I’m looking for

I’m not looking for someone to build the project for me.

What I’d really appreciate is feedback from people experienced with Three.js/WebGL on the architecture and rendering approach.

In particular:

  1. How would you structure a project that needs to transition from planetary-scale objects to galaxy-scale procedural scenes?
  2. Would you use separate coordinate/scale systems for Solar System, stellar and galactic scales?
  3. What would be the best approach for rendering very large star populations without creating enormous numbers of Three.js objects?
  4. Would GPU particles/instancing be the preferred approach for procedural galaxies?
  5. How would you design LOD/streaming so that objects appear progressively as the camera moves between scales?
  6. Are there architectural issues in my current approach that I should fix before adding the galaxy layer?

I’m particularly interested in learning how experienced Three.js developers would approach the problem, rather than simply receiving finished code.

The project is currently a standalone HTML/CSS/JavaScript application using Three.js and is hosted through GitHub Pages. I’m trying to keep the architecture modular so new astronomical systems can be added without rewriting the existing Solar System.

Any criticism is welcome — especially if you see something fundamentally wrong with the way I’m approaching scale, rendering, astronomical data, or scene architecture.

Thanks to anyone who takes the time to look at it. :rocket::milky_way:

Separate scales are the right instinct. Float32 runs out of precision long before galaxy distances, so keeping each level in its own scene, units and camera, and switching or cross-fading between them, avoids the jitter you’d get pushing everything into one world. For huge star counts, one Points or InstancedMesh with positions in a buffer is the usual route; thousands of Mesh objects hit draw-call limits fast. For the black hole on your list, consider not making it geometry at all. Mine is a fullscreen quad that ray-marches the bent light in the fragment shader, one draw call. What’s the largest object count in your scene right now?