Astrometrics
custom:lcards-astrometrics-card

A 3D scene in the style of the astrometrics lab and stellar cartography: a lettered sector map, a galaxy disc with territories, a planet with an away team on it, or the sky over your home with the sun and moon where they are now. Drag to orbit, scroll or pinch to zoom, and tap a point to fly to it.
- Objects draw the scene (grids, planets, territories, routes, nebulas, ships), and points are the named places on it that labels, routes and the camera refer to by id.
- The camera orbits a target, and named views let a tap fly it from the galaxy to a planet and back.
- The scene draws only when something moves, so an idle card costs nothing, and every astrometrics card and WebGL background on a page shares one WebGL context.
Try it
- The card editor opens the Astrometrics Studio: a full-screen editor with the live scene, where you tap, drag and place points, edit every object in a form, capture camera views and start from a starter.
- Getting Started has a first card to copy and every starter with its picture.
How a scene is sized
One card holds one scene, and every position, size and distance in it is in scene units: your own, or real ones you name. Most scenes are built to fit; a true-scale scene uses the real numbers and can reach from a galaxy down to a station.
- Scene units are yours to pick: a disc of radius 100, planets 5 across. Nothing is to scale, and everything shows at once. This is the easy way, and most starters work like this.
- Named units (
units: ly,pc,au,kmormon the card) say what one unit is, so real numbers come out right: a galaxy 100,000 light years across, a planet at its real distance, a model at its real size (a model'slengthis in metres and is converted to the scene's units). - A star system (a
systemobject placed at one of the scene's points) is a scene inside the scene, with units of its own: a galaxy in light years holds a solar system in km. As the camera flies close it switches to the system's units, so one card spans the whole range. - Screen sizes (line widths, dashes, label and marker sizes) are in px, the same at any zoom. Every other length (
radius,size,line_spacing, positions) is in scene units.
- Galaxy100,000 ly across
Territories, nebulas, routes and named stars.
type: galaxy - Star system9 billion km to Neptune
A scene at a point of the galaxy: a sun, orbits and planets.
type: system - Planet6,371 km radius
A globe with its map, moons and orbits.
type: sphere - Ship or stationabout 1.5 km
A 3D model; its length is always in metres.
type: model
Your own scene units. Sizes and distances are picked so everything shows at once. Most starters, and the easy way to start.
Named units (ly, pc, au, km, m) and the real numbers. Planets are dots from across their system, so labels and markers carry the view.
Scale has the details: units, star systems, the real Solar System and the scene clock.
Where to start
Pick the starter closest to what you want and change it; it is quicker than an empty scene. The Studio's Starters tab adds one with a few settings, and Getting Started shows them all with pictures.
| You want | Start with |
|---|---|
| A galaxy map with territories | Galaxy with territories (scene units), Federation map (scene units), Star Trek galaxy (ly) |
| A sector map or tactical grid | Sector map (scene units) |
| Planets and orbits | Solar system (scene units), Solar system (real positions) (km, the planets where they are on the scene clock's date) |
| The sky over your home | Sky dome: the sun and moon (scene units; the sun and moon where they are now, from your Home Assistant location) |
| A ship or starbase close up | Starbase approach, Deep Space 9, Utopia Planitia yards, Borg encounter (scene units) |
| From a galaxy down to a station | Galaxy to station at true scale (ly, with a solar system in km inside) |
| Something of your own | The quick start: a grid and a few points (scene units) |
Pages
| Page | Covers |
|---|---|
| Getting Started | A first card, the starters with pictures, and the card's own options |
| Starters | Every ready-made scene and part as a live card with its YAML |
| Points | Named places: where they sit, labels, markers, actions, cards pinned to them |
| Objects | Which object type to use for what, and the keys every object takes |
| Camera and Views | Named views, controls, the on-card buttons, following a point, limits |
| Scene and Looks | Units and motion, the diagram and realistic looks, stars, background, labels |
| Live Data | Points and settings that follow entities, templates, rules, a guided tour |
| Effects | Nebulas, scan bands, moving dashes, animated fills, warp and dust |
| Scale | Real units, star systems in their own units, the real Solar System and the scene clock |
| Your Own Models | Ships and stations from your own glTF files |