End of milestone 3
This commit is contained in:
1 parent
5e2769faa8
commit
cc70cea7f6
13 files changed
+192
-84
No files matched your search
@@ -4,9 +4,9 @@ looking at the example renders from another machine on the network.
|
||||
|
||||
python3 scripts/serve-gallery.py [--port 8000] [--live-port 8010]
|
||||
|
||||
Stills: each example scene gets a card with its L0 and L1 renders side by side,
|
||||
captioned from the comment at the top of its file in examples/scenes/. Click an image
|
||||
to see it full size; arrow keys step through them and Escape closes.
|
||||
Stills: each example scene gets a card with its L0 and L1 renders side by side, both
|
||||
with camera C1, captioned from the comment at the top of its file in examples/scenes/.
|
||||
Click an image to see it full size; arrow keys step through them and Escape closes.
|
||||
|
||||
Movie: gallery/movie.mp4 (from make-gallery.sh or resolved-movie --out) to play or
|
||||
download, and the live stream from `resolved-movie --serve 0.0.0.0:8010` on this
|
||||
@@ -30,6 +30,8 @@ ROOT = Path(__file__).resolve().parent.parent
|
||||
GALLERY = ROOT / "gallery"
|
||||
SCENES = ROOT / "examples" / "scenes"
|
||||
TIERS = ["L0", "L1"]
|
||||
# The camera tier make-gallery.sh renders with.
|
||||
CAMERA = "C1"
|
||||
|
||||
STYLE = """
|
||||
:root {
|
||||
@@ -173,8 +175,8 @@ def movie_section(host, live_port):
|
||||
return f"""<section class="movie"><h2>The movie</h2>
|
||||
<p class="caption">An inspector holds station 120 m behind and above a Landsat 8 model
|
||||
705 km up; the target is propagated by astrokit with J2 and everything is rendered at
|
||||
lighting L1. The camera drifts on a small natural relative orbit around its station and
|
||||
sets its exposure frame by frame. Time runs fast over the daylit Earth, slows as the
|
||||
lighting L1 and camera C1. The camera drifts on a small natural relative orbit around
|
||||
its station and sets its exposure frame by frame. Time runs fast over the daylit Earth, slows as the
|
||||
Moon rises over the limb ahead, and slows almost to real time as the spacecraft passes
|
||||
into Earth's shadow.</p>{recorded}</section>
|
||||
<section class="movie"><h2>Live</h2>
|
||||
@@ -199,16 +201,16 @@ def page(host, live_port):
|
||||
if image.is_file():
|
||||
count += 1
|
||||
stamp = int(image.stat().st_mtime)
|
||||
alt = f"{name}, lighting {tier}"
|
||||
alt = f"{name}, lighting {tier}, camera {CAMERA}"
|
||||
figures.append(
|
||||
f'<figure><img src="/img/{name}-{tier}.png?{stamp}" '
|
||||
f'alt="{html.escape(alt)}" loading="lazy">'
|
||||
f"<figcaption><b>{tier}</b> lighting</figcaption></figure>"
|
||||
f"<figcaption><b>{tier}</b> lighting, camera {CAMERA}</figcaption></figure>"
|
||||
)
|
||||
else:
|
||||
figures.append(
|
||||
f'<figure><div class="missing">no {tier} render</div>'
|
||||
f"<figcaption><b>{tier}</b> lighting</figcaption></figure>"
|
||||
f"<figcaption><b>{tier}</b> lighting, camera {CAMERA}</figcaption></figure>"
|
||||
)
|
||||
first = html.escape(paragraphs[0]) if paragraphs else ""
|
||||
more = ""
|
||||
|
||||
Reference in new issue
Block a user