What am I looking at?
A model of the night sky as seen from Earth (the small globe in the
middle). Every star is projected onto one big sphere around it,
positioned only by its sky coordinates (right ascension and
declination). Distance is ignored, so all stars sit on the same shell,
like on a planetarium dome. Seen from outside the sphere, the sky
looks mirrored compared to looking up from Earth.
Star size reflects brightness (apparent magnitude; lower is brighter).
Lines connect stars into constellations: the 12 zodiac signs and the
other IAU constellations. Gold or red labels mark the stars that form
those figures. The sphere guides show the celestial equator and
meridians. Hover a star to see its name, or search for a star or
constellation to fly to it. The observer (Freiburg by default) adds a
horizon, and stars below it are dimmed; the time sliders turn the sky
by sidereal time.
Data sources and resources
-
Stars: HYG Database v4.2 (astronexus.com, CC BY-SA 4.0),
merging Hipparcos, Yale Bright Star and Gliese catalogs. Filtered to
magnitude 7.5 or brighter; the Sun is excluded.
-
Constellation lines and names: Stellarium western sky culture
(AGPL-3.0).
-
3D rendering: three.js (MIT), loaded from the jsDelivr CDN.
- Controls panel: lil-gui (MIT).
-
Place search: Open-Meteo Geocoding API (open-meteo.com, CC BY
4.0). Only the text you search for is sent.
-
Sun and Moon: low-precision ephemeris formulas (Astronomical
Almanac style), accurate to about 0.4° for the Sun and 2° for the
Moon. Both are drawn oversized.
-
Sidereal time: standard Greenwich mean sidereal time formula
(IAU / Astronomical Almanac).
- Time zones and dates: the browser's built-in Intl API.
Accuracy and limits
Checked against astropy: sidereal time is within 1 second, and star
altitude and azimuth match to about 0.3° (azimuth up to 1.5° for some
stars). Most of that difference is precession, because the catalog
uses J2000 coordinates and this view does not shift them to today's
date. Whether a star is above or below the horizon matched in all 882
test cases.
Not modelled: atmospheric refraction, proper motion, the Sun, Moon and
planets, and the day/night sky brightness. Constellation shapes follow
the Stellarium western sky culture and are an artistic convention, not
an official IAU line set. This is an educational model, not a
navigation tool.
Approach
-
Filter the catalog to stars of magnitude 7.5 or brighter (about
25,800 of 119,000), plus every star used in a constellation line,
and save it as compressed JSON.
-
Convert each star's RA/Dec to a point on a sphere of fixed radius.
-
Convert Stellarium's Hipparcos-based constellation chains into line
segments between HYG star ids.
-
Draw stars as instanced meshes, constellations as fat lines, and
names as transparent labels at each constellation's average
direction.
-
Keep Earth fixed and turn the sky by local sidereal time, which
comes from the date, time and the observer's longitude.