@rr0/ufoathome 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018-2026 Jérôme Beau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -215,8 +215,10 @@ object or atmospheric optical effect — Venus (by far the most commonly misrepo
215
215
  Moon, lens flare, or halo phenomena like sun dogs/moon dogs. `<rr0-scene>` renders the sky astronomically: real
216
216
  Sun/Moon/Venus/Mars/Jupiter/Saturn positions and the Moon's phase via
217
217
  [`astronomy-engine`](https://github.com/cosinekitty/astronomy) (see `src/engine/astronomy/CelestialPositions.ts`),
218
- and a real star catalog (see below) instead of a randomized field, filtered to naked-eye visibility
219
- (magnitude ≤ 7.5) since these are human eyewitness observations, not instrument-assisted ones. The sky's
218
+ and a real star catalog (see below) instead of a randomized field. How deep it is drawn follows the
219
+ INSTRUMENT rather than a constant: magnitude 6.5 is what a dark-adapted human eye reaches, and a recording made
220
+ through a camera reaches somewhere else entirely — 4.2 through a box camera at a ninetieth of a second, 9.7
221
+ through a 50 mm at f/2 for twenty seconds (see `src/engine/instrument/LimitingMagnitude.ts`). The sky's
220
222
  darkness/color follows the sun's altitude (day/twilight bands/night), and its dawn/dusk glow is anchored on the
221
223
  sun's real compass direction, not spread uniformly around the horizon — see `src/render3d/skyColors.ts`.
222
224
 
@@ -247,12 +249,23 @@ one static pose; an observer that moves/re-orients mid-recording still needs han
247
249
  Moon's phase currently only dims/brightens its disc's overall
248
250
  color rather than rendering a geometrically accurate crescent shape — a natural follow-up.
249
251
 
250
- **Regenerating the star catalog.** `src/assets/stars-mag7.5.bin` (a compact binary asset, four concatenated
251
- `Float32Array` sections: ra/dec/mag/ci — see `src/render3d/StarCatalog.ts` for the exact layout) is generated
252
- from the [HYG Database v4.1](https://github.com/astronexus/HYG-Database) (CC BY-SA), filtered to magnitude ≤ 7.5.
253
- To regenerate it: download `hyg/CURRENT/hygdata_v41.csv` from that repo into `scripts/data/hygdata_v41.csv`
254
- (gitignorednot checked in, ~34MB), then run `npm run build:stars`. The generated `.bin`/`.json` pair *is*
255
- checked in (~400KB) since it's small and doesn't need regenerating on every install.
252
+ **Regenerating the star catalog.** Two tiers, both compact binary assets of four concatenated `Float32Array`
253
+ sections (ra/dec/mag/ci — see `src/render3d/StarCatalog.ts` for the exact layout), both sorted brightest first,
254
+ both generated from the [HYG Database v4.1](https://github.com/astronexus/HYG-Database) (CC BY-SA):
255
+
256
+ - `src/assets/stars-mag7.5.bin` 25 791 stars to magnitude 7.5, ~400KB, loaded by every scene;
257
+ - `src/assets/stars-mag7.5-9.bin` the 57 688 *further* stars between 7.5 and 9, ~900KB, fetched only by a
258
+ recording whose own optics reach past 7.5 (see `StarCatalogs.upTo`, and `deep-star-catalog-src` to host your
259
+ own copy). A delta, not a second catalogue: no star is downloaded twice.
260
+
261
+ Nine is where HYG stops being a sky and starts being a catalogue running out — its counts multiply by 3.1 per
262
+ magnitude up to 7, then 2.7 to 8, 2.0 to 9 and 1.3 to 10. An observation that outran it is told so on the
263
+ editor's Sky line rather than quietly handed an emptier sky than it recorded; going deeper would mean Tycho-2 or
264
+ Gaia, which is a different order of download.
265
+
266
+ To regenerate them: download `hyg/CURRENT/hygdata_v41.csv` from that repo into `scripts/data/hygdata_v41.csv`
267
+ (gitignored — not checked in, ~34MB), then run `npm run build:stars`. The generated `.bin`/`.json` pairs *are*
268
+ checked in, since they don't need regenerating on every install.
256
269
 
257
270
  **What else was in that sky.** Beside the Sun, Moon, planets and stars, the scene states — and where it can,
258
271
  draws — the things that were genuinely up there and are genuinely mistaken for something else. Each is here