Open the map out to the whole Milky Way
The map stopped at the catalogued 50 pc around the Sun — 0.33% of the Galaxy's width — and looked like a point cloud with a search box. Adds the galactic scale above it and the heads-up display the reference map is built from. The Galaxy is not a third coordinate space. It is the same parsec space four orders of magnitude further out, so the model and the star field crossfade against camera distance instead of switching, and the Sun stays where it really is: 8.18 kpc out, on the Orion Spur, between the Sagittarius and Perseus arms. The depth range scales with that distance — one fixed near/far pair cannot both fly into a star and hold the Galaxy. The structure in shared/astro/galaxy.ts is measured: the directions of the centre and the north galactic pole, which fix the disc's 63 degree tilt against the celestial equator; the Sun's galactocentric distance; and a radius, azimuth and pitch angle per arm. The particles scattered around it are not, and cannot be — dust hides the disc, so no catalogue holds the Galaxy's stars. The view says so, and the model fades out before the camera reaches the 50 pc where the real stars are. The rest is the look: polar grids lying in the galactic plane with drop lines from the Sun's neighbours, a scale ladder, a readout panel, range, reticle and frame brackets. Two things had to give way for it. The deep-sky shell is the sky as seen from here, so it dissolves rather than letting the camera fly through a wall of nebulae, and so does the skybox, which is a photograph taken from inside the thing now being viewed from outside. Labels are picked by screen separation rather than distance alone: the Sun's fifteen nearest neighbours are all inside four parsecs and printed as one unreadable clump. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WaySiNst4HhDXBHnMy8p5G
This commit is contained in:
@@ -26,6 +26,56 @@ body {
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
/* --- HUD chrome ------------------------------------------------------------------------- */
|
||||
|
||||
/* Angled top-left/bottom-right corners, a thin lit edge and a blurred dark fill: the panel
|
||||
* shape the whole heads-up display is built from. Written here rather than as utilities
|
||||
* because `clip-path` and the layered border need to travel together. */
|
||||
.hud-panel {
|
||||
position: relative;
|
||||
background: color-mix(in srgb, var(--color-panel) 78%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
|
||||
backdrop-filter: blur(8px);
|
||||
clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
|
||||
}
|
||||
|
||||
/* The lit inner hairline that reads as a bevel on the two square corners. */
|
||||
.hud-panel::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
border-top: 1px solid color-mix(in srgb, var(--color-accent) 22%, transparent);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 22%, transparent);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Corner brackets around the whole viewport, drawn as four gradients so the element stays a
|
||||
* single node with no children. */
|
||||
.hud-frame {
|
||||
pointer-events: none;
|
||||
--bracket: color-mix(in srgb, var(--color-accent) 45%, transparent);
|
||||
--arm-long: 76px;
|
||||
--arm-thin: 1px;
|
||||
background-image:
|
||||
linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
|
||||
linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
|
||||
linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket)),
|
||||
linear-gradient(var(--bracket), var(--bracket)), linear-gradient(var(--bracket), var(--bracket));
|
||||
background-repeat: no-repeat;
|
||||
background-size:
|
||||
var(--arm-long) var(--arm-thin), var(--arm-thin) var(--arm-long), var(--arm-long) var(--arm-thin), var(--arm-thin) var(--arm-long),
|
||||
var(--arm-long) var(--arm-thin), var(--arm-thin) var(--arm-long), var(--arm-long) var(--arm-thin), var(--arm-thin) var(--arm-long);
|
||||
background-position:
|
||||
18px 18px, 18px 18px, right 18px top 18px, right 18px top 18px, 18px bottom 18px, 18px bottom 18px, right 18px bottom 18px,
|
||||
right 18px bottom 18px;
|
||||
}
|
||||
|
||||
/* Darkens the edges of the frame so the map reads as a lit display rather than a flat page. */
|
||||
.hud-vignette {
|
||||
pointer-events: none;
|
||||
background: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--color-void) 72%, transparent) 100%);
|
||||
}
|
||||
|
||||
/* Star name labels rendered by CSS2DRenderer (see StarLabelOverlay). These live outside
|
||||
* Angular's view encapsulation as plain DOM nodes, so they're styled with Tailwind utility
|
||||
* classes assigned directly in TypeScript rather than a scoped component stylesheet. */
|
||||
|
||||
Reference in New Issue
Block a user