A G W S
0%

Lab Experiment / Universe

A universe from a seed. From orbit to the ground, with no loading screens.

Universe generates stars, nebulae and planets from a single number and builds them as you fly through: atmosphere, volumetric clouds, oceans, ice, craters and volcanoes appear in real time on your graphics card. There is no file to download and no precomputed scene: just maths, Three.js and WebGL2.

universe.agwswebconsulting.it
  • Three.js · WebGL2 · GLSL
  • Works on phones
  • No precomputed data

What you get

Six things that really happen, every time you open the page.

01

Stars with real frequencies

The stellar population follows the main sequence: almost all red dwarfs, very few blue giants. Each star's colour comes from its temperature, not from a palette, and nebulae fill the deep sky.

02

Planets built while you fly

The terrain is a level-of-detail sphere that subdivides as you approach, with no cracks and no popping. On top sit a physical atmosphere, volumetric clouds, oceans, ice, craters and volcanoes, all derived from that planet's climate.

03

The real solar system

About thirty bodies with Keplerian orbits and real maps: the Sun, the eight planets, the major moons, Ceres, Pluto and the other dwarf planets, Saturn's rings with their shadow. With no parameters the page opens on Earth.

04

Travel at the speed of light

Pick a body on the map and the camera really covers the distance: aberration, Doppler shift, star streaks and a counter telling you how much light-time you crossed. Between systems you warp.

05

The Sun as a star

A boiling photosphere, limb, spots and corona: the Sun is not a light bulb but a body that emits light, and the automatic exposure adapts from full daylight to the shadow of night.

06

On your graphics card

Three quality tiers scale the pipeline, never the look: HDR, automatic exposure and bloom stay the same on a laptop and on a phone. Everything that decides what exists runs on the CPU and is covered by tests that need no GPU.

How to fly

Free camera. No vehicle, no physics, no menus.

Speed depends on your altitude above the terrain: in the void you cover huge distances, as you approach the ground you settle by yourself. The mouse wheel changes the multiplier across eight orders of magnitude.

W A S D
Forward, back, sideways
Q / E
Down and up
Drag
Look around
Wheel
Speed multiplier
T / P
Aim at the twin star or the planet
M
Clickable system map
J
Warp to another system
G
Cycle the quality tier
Esc
Abort the journey

Destinations

A few starting points.

Every body has its own address: change the parameter in the URL and you arrive there, already framed, three and a half radii away.

Under the hood

A static site, a graphics card and a seed.

Universe is written in TypeScript with Three.js and GLSL shaders on WebGL2, bundled with Vite and served as a static page behind Cloudflare. Everything that decides what exists, from star sectors to each planet's palette, is deterministic and verified against golden hashes on a machine with no GPU; the graphics card only decides how it looks.

  • TypeScript
  • Three.js
  • WebGL2 + GLSL
  • Vite
  • Static site + Cloudflare
  • Deterministic tests, no GPU

It is a lab project still evolving: new milestones land all the time, and the page you open is always the latest one.

Ready for take-off

Open the universe and start from Earth.

No account, no download, no tracking. All you need is a browser with WebGL2: if yours does not support it, the page tells you.