The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.
Rust electron-alternativegame-engineglobal-illuminationgraphicsjavascript-runtimemetalpath-tracingray-tracingreal-time-renderingrenderingrustthreejstypescriptvoxelvulkanwebgpuwgpu
Site: threert.app on the landing page (its apps, OpenStrikeRT, publishing), Star buttons with the count; Showcase is the platform now (#57)
Evan (Yifeng) Wang55801cdf2b3c
diff --git a/README.md b/README.mdindex 06ddb57..9421b99 100644--- a/README.md+++ b/README.md@@ -26,7 +26,7 @@<p align="center"><a href="https://threert.dev"><b>Website</b></a> ·- <a href="https://threert.dev/showcase/">Showcase</a> ·+ <a href="https://threert.app">Apps</a> ·<a href="https://threert.dev/download/">Download</a> ·<a href="https://threert.dev/docs/">Docs</a> ·<a href="https://discord.gg/n7vsVmAKCK">Discord</a> ·@@ -102,7 +102,7 @@ The reference is an unbiased offline render (4,096 samples per pixel, no denoise### Play and make games1. **[Download ThreeRT](https://threert.dev/download/)** for macOS (14 or later, Apple silicon) or iPhone and iPad (iOS 17 or later). The client fetches a game's code and traces it on the device's own GPU.-2. Open an example from the app's library or from the [Showcase](https://threert.dev/showcase/).+2. Open an example from the app's library or from [threert.app](https://threert.app), where ThreeRT apps and games are published.3. Write your own with the `threert` command line that ships inside the Mac app:```bash@@ -172,7 +172,7 @@ npm run test:render # the r| [`compare/`](compare) | Hello-world scenes side by side in three.js and ThreeRT || [`ue5/`](ue5) | UE5 reference captures (Lumen and the Path Tracer): the ground truth the renderer is measured against || [`playground/`](playground) | ThreeRT Playground, the macOS editor |-| [`site/`](site) | [threert.dev](https://threert.dev): the landing page, Showcase, Download and Docs |+| [`site/`](site) | [threert.dev](https://threert.dev): the landing page, Download and Docs (the apps themselves are on [threert.app](https://threert.app)) |## Documentationdiff --git a/site/README.md b/site/README.mdindex 61948d9..21471b7 100644--- a/site/README.md+++ b/site/README.md@@ -9,8 +9,8 @@ bun site/serve.ts # http://localhost:4173/ [port] [--lan]bun site/tools/build.ts # a static copy for any file host -> out/site/```-`--lan` listens on every interface and prints the LAN address: open that one on the Mac and a phone on the same-network can scan the QR codes on the pages (they carry `threert://<lan ip>:<port>/play/<id>`).+`--lan` listens on every interface and prints the LAN address, so a phone on the same network can open the pages and+the packages in `play/` (`threert://<lan ip>:<port>/play/<id>`).**Live at https://threert.dev** (www.threert.dev redirects there). Deploy after a change:@@ -20,7 +20,8 @@ bun site/tools/deploy.ts # build out/site (strict, see below), then wrangler```It is a Cloudflare Worker, `threert-site`: static assets from `out/site` on the custom domains threert.dev and-www.threert.dev; `site/worker.ts` redirects www to the apex, serves the clients' disk images from R2 and hands everything else to the assets.+www.threert.dev; `site/worker.ts` redirects www to the apex and the old Showcase page to threert.app, serves the clients' disk images+from R2 and hands everything else to the assets.Workers static assets take **25 MiB a file**, and the client's disk image is about 32 MiB (it carries the `threert`command line). So the image is not a static asset: it lives in the R2 bucket `threert-releases` under its file name,and `worker.ts` serves it at the URL the Download page links, `/releases/<file>` (ranges, `ETag`, `HEAD`). R2 rather@@ -37,20 +38,31 @@ site/releases/<file> --local --config site/wrangler.jsonc`, then `bunx wrangler@## Pages-Every page has the same nav, top right: **Showcase / Download / Docs**, then GitHub (github.com/meshy-dev/ThreeRT),-Discord (discord.gg/n7vsVmAKCK) and X (x.com/ThreeRT3D) as their marks, and the same links in the footer, over the-line that says whose it is: a research project from MeshyAI (meshy.ai), © MeshyAI. The markup is repeated in each-page; change it in all four.+Two things are asked of a visitor, on every page: **a star** on github.com/meshy-dev/ThreeRT and **a visit to+[threert.app](https://threert.app)**, the platform where ThreeRT apps and games are published and found (a catalogue,+a page for each app at `<name>.threert.app`, `threert publish`, multiplayer rooms). threert.dev says what the engine+is and proves it; the apps live there. So the site has no catalogue of its own.++Every page has the same nav, top right: **Apps ↗** (threert.app; the arrow marks the one link that leaves the site),+**Download**, **Docs**, then **Star** (GitHub's mark, the word and the repository's star count: `a.star`, below),+Discord (discord.gg/n7vsVmAKCK) and X (x.com/ThreeRT3D) as their marks; on a phone Star is GitHub's mark alone. The+footer has the same links, over the line that says whose it is: a research project from MeshyAI (meshy.ai), © MeshyAI.+The markup is repeated in each page; change it in all of them (the privacy page has the three words only).| Page | What is on it ||---|---|-| `index.html` | The landing page (below). Its two buttons, in the hero and at the end: **Download** (to `download/`, named for the visitor's platform by `js/site.js`) and **GitHub**. |-| `showcase/` | Bistro night as a clip under a divider (three.js | ThreeRT at 60 fps, `media/bistro/hero*.mp4`: both sides in one file so they cannot drift) and Zero-Day as a camera move; **Not only games**: the cases (education, commerce, architecture, culture: the packages in `play/` with an `industry`, written in `showcase/` at the repo root), each with what it shows, how to play with it, its links and QR code, and a filter by field; then **Open on your device**: a card for each of the other example packages; then **Made by you**: the community's entries (`showcase/community.json`, `{items: [{id, title, author, repo, caption, image, package?}]}`: GitHub repositories registered through `.github/ISSUE_TEMPLATE/showcase.yml`, which ThreeRT for macOS fills from its Studio; an accepted issue becomes a line in that file by hand) and the button that opens the form. The app's Showcase reads the same file. The cases' credits go in the footer. |+| `index.html` | The landing page (below). || `download/` | ThreeRT for macOS (the build `releases/latest.json` names) and ThreeRT for iPhone (a TestFlight or App Store link once `ios.url` is set), then how a client loads a game: `threert dev`, scan, traced and live. |-| `docs/` | Getting started: install the client, open an example, write a scene, the dev loop with the `threert` CLI, the package format, links to the reference documents in `docs/` on GitHub. |+| `docs/` | Getting started: install the client, open an example, write a scene, the dev loop with the `threert` CLI, the package format and publishing to threert.app, links to the reference documents in `docs/` on GitHub. |+| `privacy/` | What the apps and the site do with data, including the requests the pages make to other services (below). |+| `showcase/` | Gone as a page: what it listed is published on threert.app. The Worker answers `/showcase`, `/showcase/` and `/showcase/index.html` with a 301 to `https://threert.app/` (old links: the npm packages' READMEs, the pages of packages built before, earlier apps); `showcase/index.html` is what is left for a host without the Worker, a page that sends the reader on. `showcase/community.json` stays where it is, served as before: ThreeRT for macOS before 0.4.0 reads it (and `play/index.json`) for its Showcase. Nothing is added to it any more: people publish with `threert publish`. |### The landing page+The buttons, in the hero and at the end, in this order of weight: **Explore apps** (filled, to threert.app), **Star on+GitHub** (outlined, with the count), and under them a line with **Download** as a link (named for the visitor's+platform by `js/site.js`). One filled button a row; three equal buttons were the thing to avoid.+1. **Hero:** a reel behind the headline: a grid of short clips of this repository's demos (Bistro with a crowd,Tokyo at dusk, Kabukichō, the voxel level, the showcase cases) and of OpenStrike, all ThreeRT live, ray traced,nothing compared (`media/reel/`: 4 x 3 clips for a wide screen, 2 x 4 for a phone held upright; 60 fps, an 8 s@@ -62,19 +74,55 @@ page; change it in all four.(three.js as written | ThreeRT with every setting at its default).4. **Against three.js at full power:** Bistro night and Zero-Day; the left side picks three.js WebGL, three.js WebGPUwith SSGI, or the path-traced reference; the right side is ThreeRT live.-5. **A camera move:** each scene's own camera path, both engines in lockstep.+5. **A camera move:** Bistro night as a clip under a divider (three.js | ThreeRT at 60 fps, `media/bistro/hero*.mp4`:+ both sides in one file so they cannot drift; it was the Showcase page's opening) and Zero-Day's camera path, 60+ poses of both engines in lockstep.6. **What a ray finds:** four close-ups.-7. **Traced where it can be, three.js everywhere else:** the native client on ray-tracing hardware and the same scene+7. **Open source. MIT.** A strip, where the comparisons end: what is in the repository, why a star helps, the Star+ button, the npm packages.+8. **Traced where it can be, three.js everywhere else:** the native client on ray-tracing hardware and the same sceneas three.js in any browser or WebView, drawn as live three.js device models at real proportions.-8. **Not only games:** the cases the Showcase hosts, as a strip of pictures (from `play/index.json`; nothing on a- host without them).-9. **Just light.**+9. **Play it with a friend:** OpenStrikeRT (`https://openstrike.threert.app/`), the platform's first multiplayer game:+ its cover with the words over it, two of its screenshots, three facts (rooms of up to 10, bots when alone, all of it+ game code). Its pictures are copies in `media/openstrike/`.+10. **Not only games. All on threert.app:** seven apps from the platform and an eighth cell that invites the reader's+ own (next section).+11. **One command puts yours online:** write three.js-style code, `threert publish`, the app's address. What it says+ `threert publish` does is what https://threert.app/publish says; check there before changing it.+12. **Just light.**++### threert.app's apps on the landing page++`js/platform.js` decides which apps are shown and builds a tile; it has no DOM and no imports, so the page and the+tool below run the same code. The apps are the platform's "popular" list+(`GET https://threert.app/api/v1/apps?sort=top&limit=24`, CORS-open) without the starters (tag `starter`: the hello+world above already shows them) and without OpenStrikeRT (it has the section above), the first seven.++- **Baked:** `bun site/tools/platform.ts` asks the platform, writes the seven tiles into `index.html` between the two+ `apps:` comments, a 640 x 360 WebP of each cover into `media/apps/`, and OpenStrikeRT's pictures into+ `media/openstrike/`. That is the page without JavaScript, for a crawler, and whenever the platform does not answer:+ never an empty grid. Run it when the catalogue has moved on, and commit. `build.ts` stops a deploy whose page names+ a picture that is not there.+- **Live:** when the page loads it asks the same list and replaces the tiles that differ. Every tile has the same+ box (one line of title, two of summary), so nothing moves. A tile keeps this site's small copy of a cover as long+ as the app's cover is the one the copy was made from (`data-cover`); a new app, or a new cover, shows the+ platform's own picture. An answer with fewer than seven apps leaves the baked tiles alone. If OpenStrikeRT is in+ the answer with players in its rooms, its label says how many.++### The Star buttons++Every `a.star` has a `<b data-stars hidden>`; `js/site.js` (which every page but the privacy page imports) fills them+from GitHub's public API (`api.github.com/repos/meshy-dev/ThreeRT`: no token, 60 requests an hour for an address). The+count is kept in localStorage for six hours (`threert:stars`), a failed request is not repeated for an hour, and+without a count the button is simply "Star". A count under `STARS.min` (10) is not shown either: set it to 0 to show+every count.## The two generated directories`site/releases/` and `site/play/` are not committed (.gitignore): the first holds a build of the closed-source-client, the second packages built with it. The client repository's release script writes both, whole. Without them-the pages still work: Download says that no build is published on this host, Showcase that there are no packages.+client, the second packages built with it. The client repository's release script writes both, whole. No page reads+`play/` any more (the apps are on threert.app); it is still deployed because ThreeRT for macOS before 0.4.0 lists it+in its Showcase and opens its packages. Without `releases/` the Download page says that no build is published on this host.`serve.ts` and `build.ts` warn; `build.ts --require-release` (what `deploy.ts` runs) stops instead, so a deploy neverputs up a Download button with nothing behind it.@@ -110,8 +158,8 @@ another version, file or size than `latest.json`, or a non-https URL.````play/<id>/` is a ThreeRT package (the client repository's docs/CLIENT.md § 1): `threert.json` (format `threert/1`),-`game.js`, `game.mjs`, the same game as three.js (`index.html`, `web.js`), `presets/`, `assets/`. The pages derive the-links from where they are served (`js/site.js` `packageLinks`):+`game.js`, `game.mjs`, the same game as three.js (`index.html`, `web.js`), `presets/`, `assets/`. Its addresses, from+where it is served:| | over https | over http (a dev machine) ||---|---|---|@@ -123,15 +171,18 @@ links from where they are served (`js/site.js` `packageLinks`):| Path | What ||---|---|-| `index.html`, `showcase/`, `download/`, `docs/` | The pages (sections, their styles and their script) |-| `css/threert.css` | The visual system: ink, bone and tungsten tokens, type, the nav and footer, the comparison and player components, the cards, steps and QR tiles of the inner pages |+| `index.html`, `download/`, `docs/`, `privacy/` | The pages (sections, their styles and their script) |+| `showcase/` | The page that sends old links on to threert.app, and `community.json` for clients before 0.4.0 |+| `css/threert.css` | The visual system: ink, bone and tungsten tokens, type, the nav and footer (with the Star button and the arrow of a link to threert.app), the comparison and player components, the cards, steps and QR tiles of the inner pages || `js/threert.js` | The wipe comparison (and the clip that can play over its two stills), the reel behind the landing page's headline, the synced camera-move player, the code highlighter. A divider follows a finger only once it moves sideways, so scrolling past one does not move it |-| `js/site.js` | What the pages share: the visitor's platform, the release and the packages on this host, their links, QR codes |+| `js/site.js` | What the pages share: the visitor's platform, the release on this host, the Star buttons' count, QR codes |+| `js/platform.js` | threert.app on the landing page: which apps are shown, and a tile's markup (shared with `tools/platform.ts`) || `js/devices.js` | The 3D device rows (three.js), with a still fallback when WebGL is off |+| `brand/card.jpg` | The share card (Open Graph, 1200 x 630): the hero's headline over the reel's still, a screenshot of the page with the nav's links, the lede and the buttons hidden || `brand/` | The mark ("Three bounces": the three.js triangle, tilted as three.js draws it, and the closed light path inside it, which is three.js's own inner triangle) and its variants. `js/mark.js` draws it live in the lockup and on the landing page, and turns the path on hover. `avatar.svg` is the profile picture (X, Discord): the mark on black for a round crop, its triangle concentric with the circle, heavier strokes (4.2 against 3.2) so it holds at 32 px || `media/` | The renders, WebP, and the clips (the reel, the Bistro comparison), H.264. Generated; never retouched |-| `serve.ts`, `tools/` | Local server, static build, deploy, media and device-still generators; `tools/vendor.ts` names the npm files the pages import (three.js, qrcode-generator) |-| `worker.ts`, `wrangler.jsonc` | The Cloudflare Worker (www redirect, disk images from R2, byte ranges for the clips, static assets) and its config (threert.dev) |+| `serve.ts`, `tools/` | Local server, static build, deploy, media and device-still generators; `tools/platform.ts` bakes threert.app's apps and OpenStrikeRT's pictures into the landing page; `tools/vendor.ts` names the npm files the pages import (three.js, qrcode-generator) |+| `worker.ts`, `wrangler.jsonc` | The Cloudflare Worker (www redirect, the old Showcase page to threert.app, disk images from R2, byte ranges for the clips, static assets) and its config (threert.dev) || `releases/`, `play/` | Generated, not committed (above) |## Media@@ -163,7 +214,7 @@ most shooting; for de_dust2 the opening run) go to `out/site-reel/os-<map>/` witThe committed ones are still the 2026-11-12 recordings (OpenStrike's renderer before #30): on 2d4e88a the samematch at 1280 x 720, scale 0.6, boiled in large blotches on the walls and the ground at every muzzle flash and blast.-The Bistro comparison clip on Showcase is recorded apart (it needs Bistro in the asset store: `bun scripts/orca.ts+The Bistro comparison clip (the landing page's camera move) is recorded apart (it needs Bistro in the asset store: `bun scripts/orca.tsbistro`, and ffmpeg):```bash@@ -175,7 +226,9 @@ bun site/tools/hero.ts # out/site-hero -> site/media/bistro/hero*.mpEvery frame of the clip is one frame the live renderer drew, in lockstep at 60 fps; the probe draws the same moveback to back, as on screen, with nothing else on the GPU, and `media/bistro/hero.json` keeps what it measured. The-Showcase's footnote quotes that file (machine, size, scale, GPU ms): change the footnote when the clip changes.+landing page's second footnote quotes that file (machine, size, scale, GPU ms): change the footnote when the clip+changes. Since the clip took its place there, the 60 poses of Bistro's camera move (`media/bistro/move/`, still+written by `media.ts`) are on no page.The one committed was recorded on an Apple M3 Max at 2d4e88a: 1920 × 1080 at render scale 0.5, 14.4 / 14.9 ms p50 / p95(before the live frame's temporal upscaler, #30, the same size took 22 ms there), a slow 2.2 s stretch of the scene'scamera move taken in 6 s.diff --git a/site/brand/card.jpg b/site/brand/card.jpgnew file mode 100644index 0000000..530f9b0Binary files /dev/null and b/site/brand/card.jpg differdiff --git a/site/css/threert.css b/site/css/threert.cssindex b8dc024..3947d87 100644--- a/site/css/threert.css+++ b/site/css/threert.css@@ -70,17 +70,32 @@ p { margin: 0; }.logo svg.mark { display: block; overflow: visible; }.logo .rt { background: var(--ray); -webkit-background-clip: text; background-clip: text; color: transparent; }-/* ---------- Nav: Showcase / Download / Docs / GitHub, the same on every page ---------- */+/* ---------- Nav: Apps (threert.app) / Download / Docs / Star / Discord / X, the same on every page ---------- */.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: color-mix(in srgb, var(--ink-0) 72%, transparent); border-bottom: 1px solid var(--line); }.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }.nav .links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--bone-2); }.nav .links a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color 0.2s; }.nav .links a:hover { color: var(--bone); }.nav .links a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone-2); }+/* A link that leaves for threert.app: an arrow after its words. */+.out { display: block; flex: none; width: 9px; height: 9px; opacity: 0.6; transition: transform 0.2s var(--ease), opacity 0.2s; }+a:hover > .out { transform: translate(1px, -1px); opacity: 1; }+.btn .out { width: 10px; height: 10px; margin-left: -2px; opacity: 0.8; }/* GitHub, Discord and X, as their marks. */.si { display: block; width: 18px; height: 18px; flex: none; }.nav .links a.ic { padding: 6px 0; }.nav .links a.ic + a.ic { margin-left: -10px; }+/* Star on GitHub: the mark, the word, and the repository's count once js/site.js knows it (none until then). In the+ nav and the footer it is a small pill; on a .btn it is the button. */+.star b { font: 500 12.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--bone-2); padding-left: 9px; border-left: 1px solid var(--line-2); align-self: stretch; display: inline-flex; align-items: center; }+.star b[hidden] { display: none; }+.btn.star b { font-size: 13.5px; padding-left: 12px; margin: 12px 0; }+.nav .links a.star, .foot .site a.star { gap: 7px; height: 32px; padding: 0 12px 0 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--bone); font-size: 13.5px; font-weight: 500; line-height: 1; transition: border-color 0.2s, background 0.2s; }+.nav .links a.star:hover, .foot .site a.star:hover { border-color: var(--bone-2); }+.nav .links a.star .si, .foot .site a.star .si { width: 16px; height: 16px; }+.nav .links a.star b, .foot .site a.star b { margin: 8px 0; padding-left: 8px; }+.nav.overlay .links a.star { background: rgba(6, 7, 9, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }+a.star:focus-visible { border-radius: 999px; }.nav.overlay { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 4px; }.btn:focus-visible { border-radius: 999px; }@@ -157,7 +172,11 @@ a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px soli.foot .site { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; }.foot .site { align-items: center; }.foot .site a { text-decoration: none; }-.foot .site a.ic { display: inline-flex; }+.foot .site a { display: inline-flex; align-items: center; gap: 5px; }+/* Two rows whatever the width: the pages, then the Star button and the marks. */+.foot .site::before { content: ""; order: 1; flex-basis: 100%; height: 0; margin-top: 2px; }+.foot .site a.star, .foot .site a.ic { order: 2; }+.foot .site a.star { margin-right: -4px; }.foot .site a.ic + a.ic { margin-left: -6px; }.foot .site .si { width: 17px; height: 17px; }.foot .legal { margin-top: 18px; }@@ -217,9 +236,13 @@ code, kbd { font: 500 0.9em var(--font-mono); color: var(--bone); background: rg.steps > li + li { padding-left: 0; border-left: 0; }.card { padding: 22px; }}-/* A phone: the mark alone stands for the lockup, so the four links fit on one line. */+/* A phone: the mark alone stands for the lockup and GitHub's mark for the Star button, so the links fit on one line. */@media (max-width: 520px) {.nav .logo > span { display: none; }+ .nav .links a.star { height: auto; padding: 6px 0; border: 0; background: none; }+ .nav .links a.star span, .nav .links a.star b { display: none; }+ .nav .links a.star .si { width: 18px; height: 18px; }+ .nav .links a.star + a.ic { margin-left: 0; }.nav .links { gap: 16px; font-size: 14px; }.nav .links a.ic + a.ic { margin-left: 0; }.nav .links { gap: 14px; }diff --git a/site/docs/index.html b/site/docs/index.htmlindex 5dbce7e..11237d6 100644--- a/site/docs/index.html+++ b/site/docs/index.html@@ -4,7 +4,7 @@<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>ThreeRT Docs — getting started</title>-<meta name="description" content="Install the ThreeRT client, open an example, write a scene with a three.js-style API, run it on a Mac and an iPhone with threert dev, and publish it as a package.">+<meta name="description" content="Install the ThreeRT client, open an example, write a scene with a three.js-style API, run it on a Mac and an iPhone with threert dev, and publish it to threert.app."><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css"><style>@@ -54,7 +54,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="../showcase/">Showcase</a><a href="../download/">Download</a><a href="../docs/" aria-current="page">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="../download/">Download</a><a href="../docs/" aria-current="page">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -72,7 +72,7 @@<a href="#open">2 · Open an example</a><a href="#scene">3 · Write a scene</a><a href="#dev">4 · The dev loop</a>- <a href="#package">5 · Packages</a>+ <a href="#package">5 · Packages, publishing</a><a href="#reference">6 · Reference</a><a class="ext" href="https://github.com/meshy-dev/ThreeRT/tree/main/docs" rel="noopener">All docs on GitHub ↗</a></nav>@@ -88,7 +88,7 @@<section id="open"><span class="num">02</span><h2>Open an example</h2>- <p>ThreeRT for macOS opens on its library: the dev servers running on your machine, the games you opened recently and a set of examples. The <a href="../showcase/#open">Showcase</a> hosts the same examples as packages: <b>Open in ThreeRT</b> hands the link to the client, and a phone scans the code next to it.</p>+ <p>ThreeRT for macOS opens on its library: the dev servers running on your machine, the games you opened recently and a set of examples. <a href="https://threert.app/" rel="noopener">threert.app</a> hosts the same examples, next to what others published: on an app’s page, <b>Open in ThreeRT</b> hands its link to the client.</p><p>A client opens three kinds of link: <code>threert://host:port/path</code> (plain HTTP, what a dev server on your network uses), <code>threerts://host/path</code> (HTTPS) and an ordinary <code>https://</code> URL of a package.</p><p>In a game: drag to orbit, right-drag and <kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> to fly, scroll or pinch to zoom, click to play. On a phone, one finger orbits, two pan and a tap plays.</p></section>@@ -184,6 +184,12 @@ export default defineGame({</tbody></table></div><p>Game code runs in the engine’s embedded JavaScript runtime with no file system, network or timers of its own, and the files it reads stay inside the package.</p>++ <h3 id="publish">Publish to threert.app</h3>+ <p><a href="https://threert.app/" rel="noopener">threert.app</a> hosts packages for you. One command gives a project its own address, a page in the catalogue and, for a game that uses <code>@threert/net</code>, multiplayer rooms. It needs a GitHub account.</p>+ <pre class="code sh" aria-label="Terminal"><span class="c">$</span> threert login <span class="c"># once: it prints a code, you approve it with your GitHub account</span>+<span class="c">$</span> threert publish <span class="c"># packs the project, takes a cover, uploads what changed, prints the address</span></pre>+ <p>The first publish claims the app’s name, first come, first served, and the name is its address: <code>your-app.threert.app</code>. Publishing again adds a version. In ThreeRT for macOS, Studio’s <b>Publish</b> does the same. Names, covers and limits are on <a href="https://threert.app/publish" rel="noopener">threert.app/publish</a>.</p></section><section id="reference">@@ -207,7 +213,7 @@ export default defineGame({<div><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a><p style="margin-top:14px">Hardware-accelerated ray tracing behind a three.js-style API.</p>- <div class="site"><a href="../showcase/">Showcase</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="site"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p></div><div class="note">diff --git a/site/download/index.html b/site/download/index.htmlindex 67bcc92..317a884 100644--- a/site/download/index.html+++ b/site/download/index.html@@ -4,7 +4,7 @@<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Download ThreeRT — macOS and iPhone</title>-<meta name="description" content="ThreeRT for macOS and for iPhone and iPad: the clients that open ThreeRT games and path-trace them on your own GPU.">+<meta name="description" content="ThreeRT for macOS and for iPhone and iPad: the clients that open ThreeRT apps and games, from threert.app or your own dev server, and path-trace them on your own GPU."><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css"><style>@@ -39,7 +39,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="../showcase/">Showcase</a><a href="../download/" aria-current="page">Download</a><a href="../docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="../download/" aria-current="page">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -60,6 +60,7 @@<div><h2>ThreeRT for macOS</h2><span class="req">macOS 14 or later · Apple silicon</span></div></div><ul class="ticks">+ <li>Its Showcase is the catalogue of <a href="https://threert.app/" rel="noopener">threert.app</a>: the apps and games published there, traced on your Mac</li><li>Opens games from <code>threert://</code> links, from dev servers on your network and from its own library of examples</li><li>Hardware ray tracing on M3 and later; dynamic resolution holds the frame rate</li><li>A game plays as soon as it opens: drag to orbit, click to play, <kbd>⌘R</kbd> to reload, <kbd>⌘S</kbd> for a screenshot</li>@@ -124,7 +125,7 @@</div><div class="any"><h3>No ray tracing? <span class="ray-text">Still the same game.</span></h3>- <p>A device the client cannot trace on, and every browser, opens the same game as three.js: the dev server and every published package serve that page next to the code. See it on the <a href="../showcase/">examples</a>.</p>+ <p>A device the client cannot trace on, and every browser, opens the same game as three.js: the dev server and every published package serve that page next to the code. See it on the apps at <a href="https://threert.app/" rel="noopener">threert.app</a>.</p></div></div></section>@@ -134,7 +135,7 @@<div><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a><p style="margin-top:14px">Hardware-accelerated ray tracing behind a three.js-style API.</p>- <div class="site"><a href="../showcase/">Showcase</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="site"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p></div><div class="note">diff --git a/site/index.html b/site/index.htmlindex a8656f5..ce3e298 100644--- a/site/index.html+++ b/site/index.html@@ -4,9 +4,24 @@<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>ThreeRT — Hardware ray-traced three.js</title>-<meta name="description" content="ThreeRT is hardware-accelerated ray tracing behind a three.js-style API. Every light is path-traced in real time: Amazon Lumberyard Bistro and Beeple's Zero-Day at 60 fps, and three.js everywhere else.">+<meta name="description" content="ThreeRT is a real-time path tracer behind a three.js-style API: Bistro and Zero-Day fully path-traced at 60 fps. Open source, MIT. Apps and games made with it are published at threert.app.">+<link rel="canonical" href="https://threert.dev/">+<meta name="theme-color" content="#060709">+<meta property="og:site_name" content="ThreeRT">+<meta property="og:type" content="website">+<meta property="og:title" content="ThreeRT — Hardware ray-traced three.js">+<meta property="og:description" content="A real-time path tracer behind a three.js-style API, open source. Apps and games made with it are published at threert.app.">+<meta property="og:url" content="https://threert.dev/">+<meta property="og:image" content="https://threert.dev/brand/card.jpg">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:image:alt" content="Hardware ray-traced three.js: the headline over a grid of scenes ThreeRT traces live">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:site" content="@ThreeRT3D"><link rel="icon" href="brand/favicon.svg" type="image/svg+xml">+<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","name":"ThreeRT","url":"https://threert.dev/","description":"Hardware ray-traced three.js: a real-time path tracer behind a three.js-style API. Apps and games made with it are published at threert.app.","publisher":{"@type":"Organization","name":"MeshyAI","url":"https://meshy.ai/"}},{"@type":"SoftwareSourceCode","name":"ThreeRT","description":"A real-time path tracer behind a three.js-style API: a Rust and wgpu engine, TypeScript scene and gameplay packages.","url":"https://threert.dev/","codeRepository":"https://github.com/meshy-dev/ThreeRT","license":"https://opensource.org/licenses/MIT","programmingLanguage":["Rust","TypeScript"]}]}</script><link rel="stylesheet" href="css/threert.css">+<noscript><style>.rv { opacity: 1; transform: none; }</style></noscript><script type="importmap">{ "imports": { "three": "./vendor/three/three.module.js", "three/addons/": "./vendor/three/addons/" } }</script><style>/* ---- Hero: a reel of what the engine draws, the words over its darker side ---- */@@ -22,6 +37,8 @@.hero h1 .l2 { display: block; }.hero .cta { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }.hero .plat { margin-top: -10px; color: var(--bone-2); }+ /* Over the reel, the outlined button keeps its words readable where a bright clip runs under it. */+ .hero .btn.ghost { background: rgba(6, 7, 9, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }section { padding: 128px 0; }.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }@@ -84,17 +101,72 @@.tricks svg.mark { width: 150px; height: 150px; margin: 0 auto 40px; display: block; overflow: visible; }@media (prefers-reduced-motion: reduce) { .tricks svg.mark .pulse { display: none; } }- /* ---- Beyond games: the cases the Showcase hosts, by field ---- */- .beyond { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }- .beyond a { position: relative; display: block; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 3; text-decoration: none; isolation: isolate; }- .beyond a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }- .beyond a:hover img { transform: scale(1.04); }- .beyond a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 9, 0.94) 0%, rgba(6, 7, 9, 0.7) 30%, rgba(6, 7, 9, 0) 68%); z-index: 1; }- .beyond .t { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }- .beyond .t small { display: block; font: 500 11.5px/1 var(--font-mono); color: var(--tungsten); margin-bottom: 7px; }- .beyond .t b { display: block; font: 600 19px/1.15 var(--font-sans); letter-spacing: -0.025em; color: var(--bone); }- .beyond .t span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--bone-2); }- #beyond[hidden] { display: none; }+ /* ---- Open source: the reason to star, once the comparisons have been seen ---- */+ .oss { padding: 0 0 128px; }+ .oss .strip { display: grid; grid-template-columns: 1fr auto; gap: 28px 64px; align-items: center; padding: 36px 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-1); }+ .oss h2 { font: 620 clamp(26px, 2.6vw, 34px)/1.08 var(--font-sans); letter-spacing: -.04em; }+ .oss .strip p { margin-top: 12px; color: var(--bone-2); font-size: 15.5px; max-width: 66ch; }+ .oss .act { display: grid; gap: 16px; justify-items: start; }+ .oss .strip .pkgs { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12.5px/1.5 var(--font-mono); color: var(--mute); max-width: none; }+ .oss .pkgs a { color: var(--bone-2); text-decoration: none; }+ .oss .pkgs a:hover { color: var(--bone); }++ /* ---- OpenStrikeRT: the game's cover, the words over its darker side ---- */+ .stage { position: relative; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: #000; isolation: isolate; }+ .stage > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }+ .stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.88) 28%, rgba(6,7,9,.4) 50%, rgba(6,7,9,0) 66%), linear-gradient(0deg, rgba(6,7,9,.45) 0%, rgba(6,7,9,0) 24%); }+ .stage .lab { top: 22px; left: 22px; }+ .stage .lab i { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }+ .stage .over { position: absolute; z-index: 2; left: 48px; bottom: 44px; width: min(470px, 44%); display: grid; gap: 20px; }+ .stage .over .lede { font-size: clamp(15.5px, 1.3vw, 18px); }+ .stage .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }+ .stage .plat { margin-top: -8px; color: var(--bone-2); }+ .plat a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }+ .plat a:hover { text-decoration-color: var(--bone); }+ .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }+ .shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); border: 1px solid var(--line); background: #000; }+ .facts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }+ .facts li { padding: 26px 32px 0 0; border-top: 1px solid var(--line-2); min-width: 0; }+ .facts li + li { padding-left: 32px; border-left: 1px solid var(--line); }+ .facts h3 { font: 600 24px/1.1 var(--font-sans); letter-spacing: -0.03em; }+ .facts p { margin-top: 12px; color: var(--bone-2); font-size: 15.5px; max-width: 42ch; }++ /* ---- threert.app: what is published there (js/platform.js builds a tile; site/tools/platform.ts bakes them) ---- */+ .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }+ /* Every tile has the same box whatever its words (one line of title, two of summary), so a tile that changes when the+ platform answers moves nothing. */+ .app { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line); background: var(--ink-1); text-decoration: none; transition: border-color 0.2s; }+ .app:hover { border-color: var(--line-2); }+ .app .pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }+ .app .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }+ .app:hover .pic img { transform: scale(1.04); }+ .app .t { display: block; padding: 15px 16px 16px; min-width: 0; }+ .app .t small { display: block; font: 500 11.5px/1 var(--font-mono); color: var(--mute); margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .app .t b { display: block; font: 600 18px/1.2 var(--font-sans); letter-spacing: -0.025em; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .app .t > span { margin-top: 5px; font-size: 13.5px; line-height: 1.45; min-height: 2.9em; color: var(--bone-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }+ .app .t em { display: block; margin-top: 12px; font: 400 11.5px/1 var(--font-mono); font-style: normal; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }+ .app:hover .t em { color: var(--bone-2); }+ .app .now { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 7px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11.5px/1 var(--font-mono); font-style: normal; color: var(--bone); }+ /* The eighth cell: the reader's own app, not there yet. */+ .app.yours { justify-content: flex-end; background: transparent; border: 1px dashed var(--line-2); }+ .app.yours:hover { border-color: var(--bone-2); }+ .app.yours .t small { color: var(--bone-2); }+ .app.yours .pic { background: none; display: grid; place-items: center; font: 500 12.5px/1 var(--font-mono); color: var(--mute); border-bottom: 1px dashed var(--line); transition: color 0.2s; }+ .app.yours:hover .pic { color: var(--bone); }+ .more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }+ .more .txt { color: var(--bone-2); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }+ .more .txt:hover { color: var(--bone); }++ /* ---- Publish: three steps, each with the thing itself under it ---- */+ /* The three things line up across the columns: a step's number, title, words and thing share the list's rows. */+ .loop { grid-template-rows: repeat(4, auto); }+ .loop > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }+ .loop > li > :last-child { align-self: start; }+ .loop .code { margin: 20px 0 0; font-size: 12px; line-height: 1.75; padding: 14px 16px; border-radius: 12px; }+ .loop .code.sh { color: var(--bone); }+ .loop .code.sh .c { font-style: normal; }+ .loop .addr { margin-top: 20px; max-width: none; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #0a0b0e; font: 500 13.5px/1.5 var(--font-mono); color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .loop .addr span { color: var(--mute); }/* ---- Everywhere: one scene, a rail to two renderers, every screen ---- */.root { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); font: 500 13px var(--font-mono); color: var(--bone); position: relative; z-index: 1; }@@ -131,12 +203,28 @@.sec-head .lede { justify-self: start; }.reel { grid-template-columns: 1fr; } .reel .left { border-right: 0; border-bottom: 1px solid var(--line); min-height: 300px; } .reel .story { grid-template-columns: 1fr 1fr 1fr auto; }.shelf { flex-wrap: wrap; }+ .oss .strip { grid-template-columns: 1fr; padding: 28px; }+ .facts { grid-template-columns: 1fr; } .facts li { padding-right: 0; padding-bottom: 26px; } .facts li + li { padding-left: 0; border-left: 0; }+ .apps { grid-template-columns: repeat(2, 1fr); }+ }+ /* A screen too narrow for the words to stay on the picture's darker side: they go under it. */+ @media (max-width: 1100px) {+ .stage::after { content: none; }+ .stage .over { position: static; width: auto; max-width: 640px; padding: 30px 32px 34px; gap: 16px; }+ }+ @media (max-width: 700px) {+ .stage .over { padding: 26px 24px 28px; }+ .stage .lab { top: 14px; left: 14px; }}/* A phone: nothing wider than the screen (the wordmark scales with it; the left-side picker scrolls in place). */@media (max-width: 700px) {.rtx .big h2 { font-size: 25vw; }.pick { max-width: calc(100% - 28px); overflow-x: auto; scrollbar-width: none; }+ .apps, .shots { gap: 10px; } .shots { margin-top: 10px; }+ .app .t { padding: 12px 12px 13px; } .app .t small { font-size: 10.5px; margin-bottom: 7px; } .app .t b { font-size: 15.5px; } .app .t > span { display: none; } .app .t em { margin-top: 8px; font-size: 10.5px; }+ .btn .w { display: none; }}+ @media (prefers-reduced-motion: reduce) { .app .pic img { transition: none; } .app:hover .pic img { transform: none; } }</style></head><body>@@ -144,7 +232,7 @@<nav class="nav overlay" aria-label="Site"><div class="wrap"><a class="logo" href="./" aria-label="ThreeRT home"><img src="brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="showcase/">Showcase</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="links"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div></div></nav>@@ -154,8 +242,8 @@<div class="wrap"><h1 class="h-display">Hardware<span class="l2">ray-traced</span><span class="l2 ray-text">three.js.</span></h1><p class="lede" style="max-width:52ch">ThreeRT is the first three.js-style engine to fully path-trace industry-standard scenes at 60 fps.<sup>1</sup></p>- <div class="cta"><a class="btn primary" href="download/" data-dl><svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 1.5v9M4.2 7 8 10.8 11.8 7M2 14.5h12"/></svg><span>Download</span></a><a class="btn ghost" href="https://github.com/meshy-dev/ThreeRT" rel="noopener"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg>GitHub</a></div>- <p class="plat">macOS 14+ on Apple silicon · iPhone and iPad, iOS 17+</p>+ <div class="cta"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore apps<span class="w"> on threert.app</span></span><svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star<span class="w"> on GitHub</span></span><b data-stars hidden></b></a></div>+ <p class="plat"><a href="download/" data-dl>Download ThreeRT</a> · macOS 14+ on Apple silicon · iPhone and iPad, iOS 17+</p></div></div></header>@@ -208,16 +296,16 @@<div class="wrap"><div class="sec-head rv"><h2 class="h-1">Not a still.<br><span class="mute">A camera move.</span></h2>- <p class="lede">Each scene’s own camera path, both engines in lockstep. ThreeRT holds 60 fps the whole way.</p>+ <p class="lede">Each scene’s own camera path, both engines in lockstep. ThreeRT holds 60 fps the whole way. Bistro is a recording of it doing so, every frame as it was drawn.<sup>2</sup></p></div><div class="motion rv"><div>- <div class="seqp" data-scene="media/bistro" data-la="three.js · 54 fps" data-lb="ThreeRT · 60 fps"></div>- <div class="cap"><b>Bistro night</b></div>+ <div class="cmp" data-a="media/bistro/hero-three.webp" data-b="media/bistro/hero-rt.webp" data-video="media/bistro/hero.mp4" data-video-sm="media/bistro/hero-720.mp4" data-la="three.js" data-lb="ThreeRT · 60 fps" data-x="50"></div>+ <div class="cap"><b>Bistro night</b><span>a 60 fps clip: drag the divider</span></div></div><div><div class="seqp" data-scene="media/zero-day" data-la="three.js · 12 fps" data-lb="ThreeRT · 60 fps"></div>- <div class="cap"><b>Zero-Day</b></div>+ <div class="cap"><b>Zero-Day</b><span>60 poses along the path</span></div></div></div></div>@@ -254,6 +342,21 @@</div></section>+<section id="source" class="oss">+ <div class="wrap">+ <div class="strip rv">+ <div>+ <h2>Open source. MIT.</h2>+ <p>The path tracer (Rust and wgpu), the three.js-style scene API and the gameplay runtime are one repository, along with every comparison on this page and how it was measured. If it is useful to you, a star helps the next three.js developer find it.</p>+ </div>+ <div class="act">+ <a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star on GitHub</span><b data-stars hidden></b></a>+ <p class="pkgs"><span>npm</span><a href="https://www.npmjs.com/package/@threert/scene" rel="noopener">@threert/scene</a><a href="https://www.npmjs.com/package/@threert/gameplay" rel="noopener">@threert/gameplay</a><a href="https://www.npmjs.com/package/@threert/voxel" rel="noopener">@threert/voxel</a></p>+ </div>+ </div>+ </div>+</section>+<section id="everywhere" style="padding-top:40px"><div class="wrap"><div class="sec-head rv" style="grid-template-columns:1fr;gap:24px">@@ -292,14 +395,71 @@</div></section>-<section id="beyond" style="padding-top:40px" hidden>+<section id="play" style="padding-top:40px"><div class="wrap">- <div class="sec-head">- <h2 class="h-1">Not only games.<br><span class="mute">Light for everyone.</span></h2>- <p class="lede">Lighting of this quality used to take a studio and a render farm. The same engine now runs a physics lesson, a jeweller’s counter, a flat you might buy and a museum hall, live, on the laptop or phone you already own.</p>+ <div class="stage rv">+ <img src="media/openstrike/cover.webp" srcset="media/openstrike/cover-800.webp 800w, media/openstrike/cover.webp 1600w" sizes="(max-width: 1304px) calc(100vw - 40px), 1176px" width="1600" height="900" alt="OpenStrikeRT: a first-person view down a foundry hall, a tracer crossing it, the lamps and the sky mirrored in the polished floor" loading="lazy" decoding="async">+ <div class="lab"><i></i><span>OpenStrikeRT<small id="osNow">path-traced, live</small></span></div>+ <div class="over">+ <h2 class="h-1">Play it<br>with a friend.</h2>+ <p class="lede">OpenStrikeRT is a team shooter with every light traced: sun through the skylights onto a polished floor, the furnace’s glow, a muzzle flash that lights the hall for a frame or two. It is our first multiplayer game on threert.app.</p>+ <div class="cta"><a class="btn primary" href="https://openstrike.threert.app/" rel="noopener"><span>Play OpenStrikeRT</span><svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a></div>+ <p class="plat">Plays in <a href="download/">ThreeRT 0.4.0 or newer</a> · the browser shows a preview</p>+ </div>+ </div>+ <div class="shots rv">+ <img src="media/openstrike/shot-3.webp" width="960" height="540" alt="OpenStrikeRT: three players of the two teams in the hall, lit by its skylights and lamps" loading="lazy" decoding="async">+ <img src="media/openstrike/shot-6.webp" width="960" height="540" alt="OpenStrikeRT: the furnace, its opening lighting the floor around it" loading="lazy" decoding="async"></div>- <div class="beyond" id="beyondGrid"></div>- <p style="margin-top:28px"><a class="btn ghost" href="showcase/#cases">Open the cases</a></p>+ <ol class="facts rv">+ <li><h3>Up to 10 in a room</h3><p>Open it and you are in a match: the public room with the most players and a free place. Or start a private room and send its link.</p></li>+ <li><h3>Nobody around? Bots.</h3><p>Alone or offline, it is practice against bots on the same map.</p></li>+ <li><h3>Game code, nothing else</h3><p>TypeScript against <code>@threert/scene</code>, <code>@threert/gameplay</code> and <code>@threert/net</code>. No engine changes, no native code.</p></li>+ </ol>+ </div>+</section>++<section id="apps" style="padding-top:40px">+ <div class="wrap">+ <div class="sec-head rv">+ <h2 class="h-1">Not only games.<br><span class="mute">All on threert.app.</span></h2>+ <p class="lede">threert.app is where ThreeRT apps and games are published and found. A physics lesson, a jeweller’s counter, a flat you might buy, a museum hall: each has its own address. Open it in ThreeRT, traced on your GPU, or, where it has a three.js page, play it in this browser.</p>+ </div>+ <div class="apps rv" id="appGrid">+ <!-- apps:begin (site/tools/platform.ts) -->+ <a class="app" href="https://jewellery.threert.app/" rel="noopener" data-name="jewellery" data-cover="https://jewellery.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/jewellery.webp" width="640" height="360" alt="Jeweller’s Window, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · commerce</small><b>Jeweller’s Window</b><span>Gold, diamonds and pearls, turning under the lights</span><em>jewellery.threert.app</em></span></a>+ <a class="app" href="https://daylight-home.threert.app/" rel="noopener" data-name="daylight-home" data-cover="https://daylight-home.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/daylight-home.webp" width="640" height="360" alt="Daylight Home, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · architecture real estate</small><b>Daylight Home</b><span>One living room, from morning sun to lamplight</span><em>daylight-home.threert.app</em></span></a>+ <a class="app" href="https://colour-lab.threert.app/" rel="noopener" data-name="colour-lab" data-cover="https://colour-lab.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/colour-lab.webp" width="640" height="360" alt="Colour Lab, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · education</small><b>Colour Lab</b><span>Red, green and blue lamps; cyan, magenta and yellow shadows</span><em>colour-lab.threert.app</em></span></a>+ <a class="app" href="https://showroom.threert.app/" rel="noopener" data-name="showroom" data-cover="https://showroom.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/showroom.webp" width="640" height="360" alt="Boutique Showroom, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · commerce</small><b>Boutique Showroom</b><span>A shop to walk through, lit by its own spots</span><em>showroom.threert.app</em></span></a>+ <a class="app" href="https://museum.threert.app/" rel="noopener" data-name="museum" data-cover="https://museum.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/museum.webp" width="640" height="360" alt="Sculpture Gallery, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · culture</small><b>Sculpture Gallery</b><span>A daylit museum room you can walk through</span><em>museum.threert.app</em></span></a>+ <a class="app" href="https://moon-phases.threert.app/" rel="noopener" data-name="moon-phases" data-cover="https://moon-phases.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/moon-phases.webp" width="640" height="360" alt="Moon Phases, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · education</small><b>Moon Phases</b><span>One Sun, one light: phases and eclipses, traced</span><em>moon-phases.threert.app</em></span></a>+ <a class="app" href="https://refraction.threert.app/" rel="noopener" data-name="refraction" data-cover="https://refraction.threert.app/v/0.2.0+1/cover.jpg"><span class="pic"><img src="media/apps/refraction.webp" width="640" height="360" alt="Refraction Bench, rendered by ThreeRT" loading="lazy" decoding="async"></span><span class="t"><small>App · education</small><b>Refraction Bench</b><span>A straw breaks in water; a glass ball flips the arrows</span><em>refraction.threert.app</em></span></a>+ <!-- apps:end -->+ <a class="app yours" href="#publish"><span class="pic"><span>$ threert publish</span></span><span class="t"><small>your-app.threert.app</small><b>Yours goes here</b><span>One command publishes a project.</span></span></a>+ </div>+ <div class="more rv"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore threert.app</span><svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><span class="plat">New, popular and playing now, with search.</span></div>+ </div>+</section>++<section id="publish" style="padding-top:40px">+ <div class="wrap">+ <div class="sec-head rv">+ <h2 class="h-1">One command<br><span class="mute">puts yours online.</span></h2>+ <p class="lede">Publishing gives a project an address, a page in the catalogue and a package ThreeRT opens directly. It needs a GitHub account and nothing else.</p>+ </div>+ <ol class="steps loop rv">+ <li><h3>Write three.js-style code</h3><p>A scene is a TypeScript module against <code>@threert/scene</code>: meshes, <code>MeshStandardMaterial</code>, lights, glTF models. The light is traced, not configured.</p>+ <pre class="code" id="loopCode" aria-label="A few lines of a scene">const ball = new Mesh(sphere, gold);+ball.position.set(0, 0.42, 0);+scene.add(ball);+return { scene, camera };</pre></li>+ <li><h3>Run <code>threert publish</code></h3><p>In the project’s directory. It packs the project, takes a cover from ThreeRT, uploads the files that changed and prints the address. In ThreeRT for macOS, Studio has a Publish button that does the same.</p>+ <pre class="code sh" aria-label="Terminal"><span class="c">$</span> threert login+<span class="c">$</span> threert publish</pre></li>+ <li><h3>Share the address</h3><p>The first publish claims the name, first come, first served. Its address is the app’s page and the link ThreeRT opens. A game that uses <code>@threert/net</code> gets multiplayer rooms, and anyone can start their own project from yours with <code>threert remix</code>.</p>+ <p class="addr"><span>https://</span>your-app<span>.threert.app</span></p></li>+ </ol>+ <div class="more rv"><a class="btn ghost" href="https://threert.app/publish" rel="noopener"><span>How publishing works</span><svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a class="txt" href="docs/">Getting started</a></div></div></section>@@ -315,8 +475,8 @@<div class="wrap"><div class="no rv"><s>Shadow maps.</s> <s>Light probes.</s> <s>Lightmaps.</s><br><s>Screen-space GI.</s> <s>Baking.</s></div><div class="yes rv">Just <span class="ray-text">light</span>.</div>- <div class="cta rv"><a class="btn primary" href="download/" data-dl><svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 1.5v9M4.2 7 8 10.8 11.8 7M2 14.5h12"/></svg><span>Download</span></a><a class="btn ghost" href="https://github.com/meshy-dev/ThreeRT" rel="noopener"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg>GitHub</a></div>- <p class="plat rv" style="margin-top:16px">macOS 14+ on Apple silicon · iPhone and iPad, iOS 17+</p>+ <div class="cta rv"><a class="btn primary" href="https://threert.app/" rel="noopener"><span>Explore apps<span class="w"> on threert.app</span></span><svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a class="btn ghost star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.19c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star<span class="w"> on GitHub</span></span><b data-stars hidden></b></a></div>+ <p class="plat rv" style="margin-top:16px"><a href="download/" data-dl>Download ThreeRT</a> · macOS 14+ on Apple silicon · iPhone and iPad, iOS 17+</p></div></section>@@ -325,38 +485,55 @@<div><a class="logo" href="./" aria-label="ThreeRT home"><img src="brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a><p style="margin-top:14px">Hardware-accelerated ray tracing behind a three.js-style API.</p>- <div class="site"><a href="showcase/">Showcase</a><a href="download/">Download</a><a href="docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>+ <div class="site"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="download/">Download</a><a href="docs/">Docs</a><a class="star" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="Star ThreeRT on GitHub" title="Star ThreeRT on GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg><span>Star</span><b data-stars hidden></b></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div><p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="privacy/">Privacy</a></p></div><div class="note"><p><sup>1</sup> To our knowledge. 60 fps measured on an Apple M5 MacBook at 1280 × 720 output with dynamic resolution, along each scene’s own camera path; three.js r187 in Chrome on the same machine. The reel at the top of this page is ThreeRT live on an Apple M3 Max: this repository’s demos and OpenStrike, a shooter built on the engine, each clip recorded frame by frame at 60 fps: the demos at 1280 × 720 output (render scale 0.5 to 0.75, taken to the output by the engine’s temporal upscaler), OpenStrike at 960 × 540 (render scale 0.8) with an earlier build.</p>+ <p><sup>2</sup> The Bistro clip is ThreeRT live on an Apple M3 Max at 1920 × 1080 (render scale 0.5), every frame as it drew it: 14.4 ms of GPU time a frame at the median, 14.9 ms at the 95th percentile, none over 16.7 ms. three.js follows the same camera path.</p><p>Amazon Lumberyard Bistro: Amazon Lumberyard (2017). Zero-Day: Mike Winkelmann (Beeple) and Kate Anderson (2019). Both from NVIDIA’s Open Research Content Archive (ORCA), CC BY 4.0, converted from FBX to glTF. Damaged Helmet: Khronos glTF sample models. Tokyo: 3D city model, Project PLATEAU (MLIT Japan); elevation and aerial photos, GSI; roads and places © OpenStreetMap contributors. The maps in the OpenStrike clips (cs_assault, de_inferno, de_dust2) are Counter-Strike maps, © Valve, and part of neither project. three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>+ <p>The pictures of OpenStrikeRT and of the apps are their covers and screenshots on <a href="https://threert.app/" rel="noopener">threert.app</a>, where each app’s page credits what it uses. In Boutique Showroom: Materials Variants Shoe (Shopify), Sunglasses Khronos (Eric Chadwick, Darmstadt Graphics Group GmbH) and Iridescence Lamp (Eric Chadwick, Wayfair, LLC), all CC BY 4.0, from the Khronos glTF Sample Assets.</p></div></div></footer><script type="module">import { $, $$, backdrop, compare, sequence, seg, reveal, highlight } from "./js/threert.js";- import { downloadButtons, packages, packageLinks } from "./js/site.js";+ import { downloadButtons } from "./js/site.js";+ import { FEATURED, LIST, TILES, pick, tile } from "./js/platform.js";// Sections fade in first, so a part that fails below (a missing three.js, a failed fetch) never blanks the page.reveal();const guard = (name, f) => { try { const r = f(); if (r?.catch) r.catch((e) => console.error(`${name}:`, e)); } catch (e) { console.error(`${name}:`, e); } };- // The cases the Showcase hosts (play/index.json, the games with an `industry`): a host without them shows nothing here.- guard("cases", async () => {- const cases = ((await packages())?.games ?? []).filter((g) => g.industry && g.thumb);- if (!cases.length) return;- const esc = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);- $("#beyondGrid").innerHTML = cases.map((g) => `<a href="showcase/#case-${esc(g.id)}"><img src="${esc(packageLinks(g.id).thumb(g.thumb))}" alt="${esc(g.title)}, rendered by ThreeRT" loading="lazy"><span class="t"><small>${esc(g.industry)}</small><b>${esc(g.title)}</b><span>${esc(g.caption ?? "")}</span></span></a>`).join("");- $("#beyond").hidden = false;+ // threert.app's apps, as the platform lists them now. The tiles in the page (baked by site/tools/platform.ts) stand+ // until the answer comes and wherever it does not; a tile changes only when its app did, and every tile has the+ // same box, so nothing on the page moves. A tile keeps this site's copy of a cover for as long as the app's cover+ // is the one the copy was made from.+ guard("apps", async () => {+ const r = await fetch(LIST, { signal: AbortSignal.timeout(8000) }).catch(() => null); // out of reach: the baked tiles+ if (!r?.ok) return;+ const items = (await r.json()).items, apps = pick(items);+ const slots = $$("#appGrid .app[data-name]"), local = new Map(slots.map((el) => [el.dataset.cover, $("img", el).getAttribute("src")]));+ // The featured game says how many are in its rooms, when anyone is.+ const playing = items?.find?.((a) => a?.name === FEATURED)?.stats?.playing;+ if (playing > 0) $("#osNow").textContent = `${playing} playing now`;+ if (apps.length < Math.min(TILES, slots.length)) return; // a thin answer: the baked tiles say more+ slots.forEach((el, i) => {+ const html = tile(apps[i], local.get(apps[i].cover) ?? apps[i].cover);+ const t = document.createElement("template");+ t.innerHTML = html;+ if (!el.isEqualNode(t.content.firstChild)) el.replaceWith(t.content.firstChild);+ });});- // The download buttons name the visitor's platform (they link to the download page either way).+ guard("publish", () => { const c = $("#loopCode"); c.innerHTML = highlight(c.textContent); });++ // The download links name the visitor's platform (they lead to the download page either way).guard("download", () => downloadButtons());guard("comparisons", () => {backdrop($("#hero"));- for (const el of $$(".details .cmp")) compare(el);+ for (const el of $$(".details .cmp, .motion .cmp")) compare(el);for (const el of $$(".seqp")) sequence(el);});diff --git a/site/js/platform.js b/site/js/platform.jsnew file mode 100644index 0000000..5941d2a--- /dev/null+++ b/site/js/platform.js@@ -0,0 +1,49 @@+// threert.app on the landing page: which of the platform's apps it shows, and what a tile of one looks like. No DOM+// and no imports, so the page (live, from the platform's API) and site/tools/platform.ts (which bakes the same tiles+// into index.html, for a page that is complete without JavaScript or the platform) build the very same markup.+//+// The API (CORS-open for GET): GET https://threert.app/api/v1/apps?sort=new|top|playing&kind=game|app&limit=N ->+// {items: [{name, title, summary, kind, tags, author: {login, name, firstParty}, cover, urls: {page, base, open},+// stats: {plays, likes, playing}, multiplayer?, webPlayable}], next}+// and GET /api/v1/apps/<name> -> {app: {..., screenshots, listed}}.++export const PLATFORM = "https://threert.app";+/** The game the page gives its own section: left out of the tiles under it. */+export const FEATURED = "openstrike";+/** Tiles in the grid; the eighth cell is the invitation to publish. */+export const TILES = 7;+/** The list the tiles are picked from: the platform's "popular", more than the grid holds (some are left out). */+export const LIST = `${PLATFORM}/api/v1/apps?sort=top&limit=24`;++export const esc = (s) => String(s ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);+const https = (u) => typeof u === "string" && /^https:\/\/[^\s"'<>]+$/.test(u);++/**+ * The apps the grid shows, in the platform's order: listed apps with a cover and a page, without the featured game+ * (it is the section above) and without the starters (`starter`: the templates a project begins from, which the+ * page's hello world already shows).+ */+export function pick(items, n = TILES) {+ return (Array.isArray(items) ? items : [])+ .filter((a) => a && typeof a.name === "string" && a.title && https(a.cover) && https(a.urls?.page))+ .filter((a) => a.name !== FEATURED && !(a.tags ?? []).includes("starter"))+ .slice(0, n);+}++/** "App · education": the kind and the first tag that says what it is for. */+export function label(app) {+ const generic = new Set(["showcase", "starter", "scene", "game", "app", "first-party"]);+ const field = (app.tags ?? []).find((t) => !generic.has(t));+ return (app.kind === "game" ? "Game" : "App") + (field ? ` · ${String(field).replace(/-/g, " ")}` : "");+}++/** The app's address as people say it: jewellery.threert.app */+export const address = (app) => app.urls.page.replace(/^https:\/\//, "").replace(/\/$/, "");++/** A tile. `img`: the picture's URL (a copy on this site when there is one, else the platform's cover). */+export function tile(app, img) {+ const playing = app.stats?.playing > 0 ? `<i class="now">${esc(app.stats.playing)} playing</i>` : "";+ return `<a class="app" href="${esc(app.urls.page)}" rel="noopener" data-name="${esc(app.name)}" data-cover="${esc(app.cover)}">` ++ `<span class="pic"><img src="${esc(img)}" width="640" height="360" alt="${esc(app.title)}, rendered by ThreeRT" loading="lazy" decoding="async">${playing}</span>` ++ `<span class="t"><small>${esc(label(app))}</small><b>${esc(app.title)}</b><span>${esc(app.summary)}</span><em>${esc(address(app))}</em></span></a>`;+}diff --git a/site/js/site.js b/site/js/site.jsindex 54fa048..9b7e9f3 100644--- a/site/js/site.js+++ b/site/js/site.js@@ -1,7 +1,6 @@// ThreeRT site: what the pages share besides the components in threert.js. The platform a visitor is on (for the-// download buttons), the client release this host carries (releases/latest.json), the example packages it hosts-// (play/index.json), their links, and QR codes. Both JSON files are generated (site/README.md); a host without them-// gets pages that say so.+// download links), the client release this host carries (releases/latest.json, generated: site/README.md; a host+// without it gets a Download page that says so), the repository's star count, and QR codes.import { mark } from "./mark.js";@@ -17,7 +16,7 @@ export function platform() {return "other";}-/** The download buttons (`a[data-dl]`, linking to the download page) name the visitor's platform. */+/** The download links (`a[data-dl]`, leading to the download page) name the visitor's platform. */export function downloadButtons(root = document) {const text = { macos: "Download for macOS", ios: "Get ThreeRT for iPhone", other: "Download" }[platform()];for (const a of root.querySelectorAll("a[data-dl]")) {@@ -37,30 +36,12 @@ async function json(rel) {/** The client release on this host: {version, date, macos: {file, url, size, sha256, minOS, arch, signed, notarized}, ios: {url, channel, minOS}}, or null. */export const release = () => json("releases/latest.json");-/** The example packages on this host: {client, games: [{id, title, caption, kind, thumb}]}, or null. */-export const packages = () => json("play/index.json");export const fileUrl = (file) => new URL(`releases/${file}`, ROOT).href;/** Where a release's macOS disk image is: `macos.url` when it is hosted elsewhere (it is over this host's size limit), else next to latest.json. */export const macUrl = (m) => (m.url ? m.url : fileUrl(m.file));export const megabytes = (bytes) => `${(bytes / 1e6).toFixed(bytes < 1e7 ? 1 : 0)} MB`;-/**- * A hosted package's addresses. `url`: its base (threert.json lives under it) and, with a slash, the same game as- * three.js. `open`: the link ThreeRT clients register (threerts:// = https, threert:// = http). `qr`: what its QR code- * carries. Over https that is the plain URL: the phone's camera opens the three.js page, the app's scanner opens the- * package. Over http (a dev machine) it is the threert:// link, which the camera hands to the app.- */-export function packageLinks(id) {- const url = new URL(`play/${id}`, ROOT).href;- const secure = url.startsWith("https:");- const open = url.replace(/^https:/, "threerts:").replace(/^http:/, "threert:");- return { url, web: `${url}/`, open, qr: secure ? `${url}/` : open, thumb: (file) => new URL(`play/${file}`, ROOT).href };-}--/** Whether a phone can reach this page's host (a QR code of localhost only opens on this machine). */-export const reachable = () => !/^(localhost|127\.|\[?::1)/.test(location.hostname);-let qrcode;/** `text` as a QR code: an SVG string, dark modules only (put it in a `.qr` tile). Loads the encoder on first use. */export async function qrSvg(text, label = "QR code") {@@ -105,5 +86,41 @@ export function guard(name, f) {}}-// Every page imports this file: the lockup's mark comes alive on all of them (js/mark.js).+/**+ * The repository's stars, in every `[data-stars]` (the Star buttons: the nav, the footer, the landing page's own).+ * GitHub's public API takes 60 requests an hour from an address without a token, so the count is kept in+ * localStorage for six hours, and an answer that is not a count (a rate limit, no network) is not asked again for an+ * hour. Until a count is known the buttons simply have none; below `min` they keep none either, because a button+ * that says "Star 2" asks less well than one that says "Star".+ */+const STARS = { api: "https://api.github.com/repos/meshy-dev/ThreeRT", key: "threert:stars", ttl: 6 * 3600e3, retry: 3600e3, min: 10 };+export async function stars(root = document) {+ const els = [...root.querySelectorAll("[data-stars]")];+ if (!els.length) return;+ const show = (n) => {+ if (!Number.isFinite(n) || n < STARS.min) return;+ const text = n < 1000 ? String(n) : `${(n / 1000).toFixed(n < 10000 ? 1 : 0).replace(/\.0$/, "")}k`;+ for (const el of els) {+ el.textContent = text;+ el.hidden = false;+ el.closest("a")?.setAttribute("aria-label", `Star ThreeRT on GitHub (${n} stars)`);+ }+ };+ const read = () => { try { return JSON.parse(localStorage.getItem(STARS.key)); } catch { return null; } };+ const write = (v) => { try { localStorage.setItem(STARS.key, JSON.stringify(v)); } catch { /* private mode: ask again next time */ } };+ const kept = read();+ show(kept?.n);+ if (kept && Date.now() < kept.until) return;+ let n = null;+ try {+ const r = await fetch(STARS.api, { signal: AbortSignal.timeout(8000) });+ if (r.ok) n = (await r.json()).stargazers_count;+ } catch { /* offline, blocked: as a rate limit */ }+ if (Number.isFinite(n)) { show(n); write({ n, until: Date.now() + STARS.ttl }); }+ else write({ n: kept?.n ?? null, until: Date.now() + STARS.retry });+}++// Every page imports this file: the lockup's mark comes alive on all of them (js/mark.js), and the Star buttons get+// their count.try { mark(); } catch (e) { console.error("mark:", e); }+guard("stars", () => stars());diff --git a/site/media/apps/colour-lab.webp b/site/media/apps/colour-lab.webpnew file mode 100644index 0000000..6ff5b19Binary files /dev/null and b/site/media/apps/colour-lab.webp differdiff --git a/site/media/apps/daylight-home.webp b/site/media/apps/daylight-home.webpnew file mode 100644index 0000000..619ce2cBinary files /dev/null and b/site/media/apps/daylight-home.webp differdiff --git a/site/media/apps/jewellery.webp b/site/media/apps/jewellery.webpnew file mode 100644index 0000000..af4c4d2Binary files /dev/null and b/site/media/apps/jewellery.webp differdiff --git a/site/media/apps/moon-phases.webp b/site/media/apps/moon-phases.webpnew file mode 100644index 0000000..9f91fa6Binary files /dev/null and b/site/media/apps/moon-phases.webp differdiff --git a/site/media/apps/museum.webp b/site/media/apps/museum.webpnew file mode 100644index 0000000..8f6b215Binary files /dev/null and b/site/media/apps/museum.webp differdiff --git a/site/media/apps/refraction.webp b/site/media/apps/refraction.webpnew file mode 100644index 0000000..cc92056Binary files /dev/null and b/site/media/apps/refraction.webp differdiff --git a/site/media/apps/showroom.webp b/site/media/apps/showroom.webpnew file mode 100644index 0000000..02a4e80Binary files /dev/null and b/site/media/apps/showroom.webp differdiff --git a/site/media/openstrike/cover-800.webp b/site/media/openstrike/cover-800.webpnew file mode 100644index 0000000..f7a4b6aBinary files /dev/null and b/site/media/openstrike/cover-800.webp differdiff --git a/site/media/openstrike/cover.webp b/site/media/openstrike/cover.webpnew file mode 100644index 0000000..2a54686Binary files /dev/null and b/site/media/openstrike/cover.webp differdiff --git a/site/media/openstrike/shot-3.webp b/site/media/openstrike/shot-3.webpnew file mode 100644index 0000000..f2e38cbBinary files /dev/null and b/site/media/openstrike/shot-3.webp differdiff --git a/site/media/openstrike/shot-6.webp b/site/media/openstrike/shot-6.webpnew file mode 100644index 0000000..a3387e5Binary files /dev/null and b/site/media/openstrike/shot-6.webp differdiff --git a/site/privacy/index.html b/site/privacy/index.htmlindex 6f0c000..3067b8f 100644--- a/site/privacy/index.html+++ b/site/privacy/index.html@@ -21,7 +21,7 @@<nav class="nav" aria-label="Site"><div class="wrap"><a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="../showcase/">Showcase</a><a href="../download/">Download</a><a href="../docs/">Docs</a></div>+ <div class="links"><a href="https://threert.app/" rel="noopener">Apps<svg class="out" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.2 1H9v5.8M9 1 1.4 8.6"/></svg></a><a href="../download/">Download</a><a href="../docs/">Docs</a></div></div></nav>@@ -34,16 +34,26 @@</header><main class="wrap"><div class="prose">- <p class="date">Last updated 2026-11-12</p>+ <p class="date">Last updated 2026-11-13</p><h2>What the apps send, and where</h2><ul><li><b>Games you open.</b> The apps download a game from the address you give them: a <code>threert dev</code> server on your own network, threert.dev, or a link you open. That server sees the request, as any web server does.</li><li><b>Logs back to your dev server.</b> A game opened from a <code>threert dev</code> server sends its console output back to that server, so it shows in your terminal. Nothing else receives it.</li>- <li><b>Showcase.</b> ThreeRT for macOS reads the list of games and their pictures from threert.dev.</li>+ <li><b>Showcase.</b> ThreeRT for macOS reads the list of apps and games and their pictures from threert.app (versions before 0.4.0: from threert.dev). Playing one from there tells threert.app that it was played, with a random number the app made up on this device, so one device counts once a day. The number says nothing about you and is kept two days.</li>+ <li><b>Multiplayer rooms.</b> A game that plays in a room connects to it on threert.app and sends what the game needs: the name you chose, a random player number kept on this device, and your moves. A room keeps them while it is open and no longer.</li><li><b>Sharing a Mac's GPU</b> (ThreeRT for macOS, only when you turn it on): the frames and input go through the relay you set in Settings, by default one on your own machine.</li></ul>- <p>There is no ThreeRT account, no tracking identifier, no crash or usage reporting, and no third-party SDK in either app.</p>+ <p>Playing needs no account. There is no advertising identifier, no crash or usage reporting, and no third-party SDK in either app.</p>++ <h2>threert.app</h2>+ <p>Browsing and playing on threert.app need no account. Publishing does: you sign in with GitHub, and threert.app keeps your GitHub user number, login, display name and avatar address. It does not ask GitHub for your e-mail address or for access to your repositories.</p>+ <ul>+ <li><b>What you publish</b> (an app's files, its name, description and pictures) is public, with your GitHub login as its author. Deleting an app takes it down.</li>+ <li><b>Sign-ins.</b> A session is one cookie on threert.app in a browser, or a token kept in your home folder by the <code>threert</code> command and ThreeRT for macOS. threert.app keeps only a hash of it, with what asked for it (for example "cli 0.4.0 macOS").</li>+ <li><b>Likes</b> are kept with your account. <b>Reports</b> are kept with their text, and with your account if you were signed in.</li>+ <li>threert.app is served by Cloudflare, which processes requests to deliver it and counts page views for the site's owner without cookies (Cloudflare Web Analytics).</li>+ </ul><h2>What stays on your device</h2><ul>@@ -56,6 +66,7 @@<h2>This site</h2><p>threert.dev is served by Cloudflare, which processes requests to deliver the pages and downloads. The site sets no cookies and runs no analytics.</p>+ <p>Your browser makes three kinds of request to other services when it shows these pages, and each of them sees the request as any web server does: the typefaces come from Google Fonts; the Star buttons ask GitHub’s public API for the repository’s star count; and the front page asks <a href="https://threert.app/" rel="noopener">threert.app</a> for the list of published apps. The star count is kept in your browser’s local storage for a few hours, so it is not asked for on every page. Nothing else is stored.</p><h2>TestFlight</h2><p>If you test ThreeRT for iPhone through TestFlight, Apple shares the information described in <a href="https://www.apple.com/legal/privacy/" rel="noopener">Apple's privacy policy</a> for TestFlight (such as crash reports and feedback you choose to send) with the developer.</p>diff --git a/site/serve.ts b/site/serve.tsindex d3575ab..9f674bb 100644--- a/site/serve.ts+++ b/site/serve.ts@@ -1,9 +1,10 @@// Serves the site locally: bun site/serve.ts [port] [--lan] -> http://localhost:4173/// --lan listen on every interface and print the LAN address, so a phone on the same network can open the pages-// and the QR codes on them (Showcase's packages, as threert://<lan ip>:<port>/play/<id>).+// and the packages in play/ (threert://<lan ip>:<port>/play/<id>).// three.js and the QR encoder come from node_modules (npm install first); site/media is committed (rebuild: bun// site/tools/media.ts). releases/ and play/ are generated by the client repository's release script (site/README.md):-// without them the Download and Showcase pages say that nothing is published on this host.+// without them the Download page says that no build is published on this host (play/ is only read by clients before+// 0.4.0, whose Showcase listed it).import { existsSync, statSync } from "node:fs";import { networkInterfaces } from "node:os";import { extname, join, normalize, resolve } from "node:path";@@ -26,7 +27,7 @@ const TYPES: Record<string, string> = {};for (const f of Object.values(VENDOR)) if (!existsSync(f)) console.warn(`missing ${f}: run npm install at the repo root`);-for (const [f, what] of [["releases/latest.json", "the Download page has no build to offer"], ["play/index.json", "Showcase has no packages to open"]]) {+for (const [f, what] of [["releases/latest.json", "the Download page has no build to offer"], ["play/index.json", "clients before 0.4.0 have no examples to list"]]) {if (!existsSync(join(root, f))) console.warn(`no site/${f}: ${what} (site/README.md)`);}diff --git a/site/showcase/index.html b/site/showcase/index.htmlindex 92c32eb..30a465e 100644--- a/site/showcase/index.html+++ b/site/showcase/index.html@@ -3,267 +3,25 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>ThreeRT Showcase — scenes traced in real time, and examples to open</title>-<meta name="description" content="Amazon Lumberyard Bistro and Beeple's Zero-Day path-traced at 60 fps, and example games you can open in ThreeRT for macOS and iPhone or as three.js in this browser.">+<title>ThreeRT apps and games are on threert.app</title>+<meta name="description" content="The ThreeRT Showcase moved: apps and games made with ThreeRT are published and found at threert.app.">+<meta name="robots" content="noindex">+<link rel="canonical" href="https://threert.app/">+<!-- What Showcase was is now threert.app. On threert.dev the Worker answers this address with a redirect before this+ file is read (site/worker.ts); on any other host, and locally, this page sends the reader on. -->+<meta http-equiv="refresh" content="0; url=https://threert.app/"><link rel="icon" href="../brand/favicon.svg" type="image/svg+xml"><link rel="stylesheet" href="../css/threert.css">-<style>- .feat { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: center; }- .feat + .feat { margin-top: 72px; }- .feat.flip { grid-template-columns: 1fr 1.55fr; }- .feat.flip .txt { order: -1; }- .feat h2 { font: 620 clamp(32px, 3.6vw, 52px)/1 var(--font-sans); letter-spacing: -0.045em; }- .feat .by { display: block; margin-top: 10px; font: 500 12px/1.5 var(--font-mono); color: var(--mute); }- .feat p.d { margin-top: 18px; color: var(--bone-2); font-size: 16px; max-width: 46ch; }- .feat .ticks { margin-top: 20px; }- .feat .ticks li::before { background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }- .feat .more { margin-top: 22px; font-size: 14.5px; color: var(--mute); }- .feat .more a { color: var(--bone); }-- .pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }- .pk .card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }- .pk .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }- .pk .thumb img { width: 100%; height: 100%; object-fit: cover; }- .pk .kind { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 7px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11.5px/1 var(--font-mono); color: var(--bone); }- .pk .body { padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px 18px; align-content: start; }- .pk h3 { font: 600 21px/1.15 var(--font-sans); letter-spacing: -0.025em; }- .pk .cap2 { margin-top: 7px; color: var(--bone-2); font-size: 14.5px; }- .pk .qr { width: 92px; height: 92px; padding: 6px; border-radius: 10px; }- .pk .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }- .pk .addr { grid-column: 1 / -1; font: 400 11.5px/1.5 var(--font-mono); color: var(--mute); overflow-wrap: anywhere; }- /* ---- Cases: what the engine does outside games, by industry ---- */- #cases { scroll-margin-top: 96px; }- .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }- .filters button { appearance: none; font: 500 13.5px/1 var(--font-sans); color: var(--bone-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }- .filters button:hover { color: var(--bone); border-color: var(--bone-2); }- .filters button[aria-pressed="true"] { color: var(--ink-0); background: var(--bone); border-color: var(--bone); }- .cases { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }- .case { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; scroll-margin-top: 88px; }- .case[hidden] { display: none; }- .case .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }- .case .thumb img { width: 100%; height: 100%; object-fit: cover; }- .case .ind { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 9, 11, 0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 12px/1 var(--font-mono); color: var(--bone); }- .case .ind i { width: 7px; height: 7px; border-radius: 50%; background: var(--tungsten); box-shadow: 0 0 8px var(--tungsten); }- .case .body { padding: 24px 26px 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 22px; align-content: start; }- .case h3 { font: 600 27px/1.1 var(--font-sans); letter-spacing: -0.03em; }- .case .blurb { margin-top: 10px; color: var(--bone-2); font-size: 15px; line-height: 1.6; max-width: 54ch; }- .case .ctl { grid-column: 1 / -1; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-size: 13.5px; line-height: 1.5; color: var(--mute); }- .case .ctl b { color: var(--bone-2); font-weight: 500; }- .case .qr { width: 104px; height: 104px; padding: 7px; border-radius: 11px; }- .case .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }- @media (max-width: 1100px) { .cases { grid-template-columns: 1fr; } }- @media (max-width: 700px) { .case .qr { display: none; } .case .body { grid-template-columns: 1fr; padding: 20px; } .case .ctl { grid-template-columns: 1fr; } .case h3 { font-size: 23px; } }- /* Community: what people made, registered as GitHub repositories (showcase/community.json). */- .made { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }- .made:empty { display: none; }- .made .card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }- .made .thumb { display: block; aspect-ratio: 16 / 9; background: #000; }- .made .thumb img { width: 100%; height: 100%; object-fit: cover; }- .made .body { padding: 18px 20px 20px; display: grid; gap: 12px; align-content: start; }- .made h3 { font: 600 19px/1.2 var(--font-sans); letter-spacing: -0.02em; }- .made .by { margin-top: 5px; font: 400 12px/1.4 var(--font-mono); color: var(--mute); }- .made .cap2 { color: var(--bone-2); font-size: 14.5px; }- .made .acts { display: flex; flex-wrap: wrap; gap: 10px; }- .submit { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; padding: 26px 30px; }- .submit h3 { font: 600 21px/1.2 var(--font-sans); letter-spacing: -0.025em; }- .submit p { margin-top: 8px; color: var(--bone-2); font-size: 15px; line-height: 1.6; max-width: 68ch; }- @media (max-width: 1100px) { .made { grid-template-columns: 1fr 1fr; } }- @media (max-width: 700px) { .made { grid-template-columns: 1fr; } .submit { grid-template-columns: 1fr; padding: 22px; } }- .open-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }- .open-note[hidden] { display: none; }- @media (max-width: 1100px) { .feat, .feat.flip { grid-template-columns: 1fr; gap: 22px; } .feat.flip .txt { order: 0; } .pk { grid-template-columns: 1fr 1fr; } }- /* A phone cannot scan its own screen: the codes are for a second device. */- @media (max-width: 700px) { .pk { grid-template-columns: 1fr; } .pk .qr, .open-note .scan { display: none; } .pk .body { grid-template-columns: 1fr; } }-</style></head><body>-<nav class="nav" aria-label="Site">- <div class="wrap">- <a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <div class="links"><a href="../showcase/" aria-current="page">Showcase</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>- </div>-</nav>-<header class="page-head"><div class="wrap"><span class="eyebrow">Showcase</span>- <h1 class="h-1">Production scenes.<br><span class="mute">Every light traced.</span></h1>- <p class="lede">Two scenes the industry uses to test renderers, with the camera moving and all of their lighting path-traced. Then <a href="#cases">what the same engine does outside games</a>, and small scenes you can open yourself.</p>+ <h1 class="h-1">The apps moved.<br><span class="mute">They are on threert.app.</span></h1>+ <p class="lede">Everything that was on this page, and what others have published since, is at <a href="https://threert.app/">threert.app</a>. The comparisons with three.js are on the <a href="../#compare">front page</a>.</p></div></header>-<section class="sec">- <div class="wrap">- <div class="feat rv">- <div class="cmp" data-a="../media/bistro/hero-three.webp" data-b="../media/bistro/hero-rt.webp" data-video="../media/bistro/hero.mp4" data-video-sm="../media/bistro/hero-720.mp4" data-la="three.js" data-lb="ThreeRT · 60 fps" data-x="50"></div>- <div class="txt">- <h2>Bistro night</h2>- <span class="by">Amazon Lumberyard Bistro · ORCA</span>- <p class="d">A street corner after dark. The string lights, the shop signs and the lamps are the light sources: each one lights the square in its own colour.</p>- <ul class="ticks"><li>Every emitter is a light</li><li>Warm light from the shop window and the wall lamp spills across the facade and the pavement</li></ul>- <p class="more">Drag the divider: three.js on the left, ThreeRT on the right, the same camera path, recorded at 60 fps.<sup>1</sup></p>- </div>- </div>- <div class="feat flip rv">- <div class="seqp" data-scene="../media/zero-day" data-la="three.js · 12 fps" data-lb="ThreeRT · 60 fps"></div>- <div class="txt">- <h2>Zero-Day</h2>- <span class="by">Beeple · ORCA</span>- <p class="d">A hall of machines lit by ten thousand small emitters. Each adds its own light, highlight and shadow, and the floor mirrors the machines and their lights.</p>- <ul class="ticks"><li>Ten thousand small lights</li><li>Reflections of the whole scene, including the parts the camera never sees</li></ul>- <p class="more">The stills, side by side with three.js at its strongest: <a href="../#compare">against three.js at full power</a>.</p>- </div>- </div>- </div>-</section>--<section class="sec" id="cases" hidden>- <div class="wrap">- <div class="sec-top rv">- <h2 class="h-2">Not only games.</h2>- <p class="lede">Lighting of this quality used to take a studio, a render farm and a night of waiting. The same engine now runs a physics lesson, a jeweller’s counter, a flat you might buy and a museum hall, live, on the laptop or phone you already own. Each case below is one file of scene code: open it and try it.</p>- </div>- <div class="filters" id="filters" role="group" aria-label="Cases by field"></div>- <div class="cases" id="caseGrid"></div>- </div>-</section>--<section class="sec" id="open">- <div class="wrap">- <div class="sec-top rv">- <h2 class="h-2">Open on your device.</h2>- <p class="lede">The hello-world scenes and a small game. Like the cases above, each is a package on this site: scene code at tutorial size and the files it reads. ThreeRT fetches it and traces it on your GPU. The same package opens as three.js in this browser.</p>- </div>- <div class="pk" id="pk"><p class="fine">Looking for the packages on this host…</p></div>- <div class="open-note fine" id="openNote" hidden>- <span><b style="color:var(--bone-2)">Open in ThreeRT</b> needs the client: <a href="../download/">download it for macOS or iPhone</a>.</span>- <span class="scan">On a phone, scan a code with the ThreeRT app.</span>- </div>- </div>-</section>--<section class="sec" id="community">- <div class="wrap">- <div class="sec-top rv">- <h2 class="h-2">Made by you.</h2>- <p class="lede">Every case and scene on this page can be remixed. In ThreeRT for macOS, press Remix on one: it becomes a project on your Mac with a prompt for your coding agent, and the picture updates as the agent saves. What people made that way, and from scratch, is listed here.</p>- </div>- <div class="made" id="made"></div>- <div class="card submit">- <div>- <h3>Show yours</h3>- <p>An entry is a GitHub repository with your project in it, a line about it and a picture. Register it and it appears here and in the app’s Showcase, where anyone can open it and remix it in turn.</p>- </div>- <a class="btn primary" id="submit" rel="noopener">Submit a project</a>- </div>- </div>-</section>--<footer class="foot">- <div class="wrap cols">- <div>- <a class="logo" href="../" aria-label="ThreeRT home"><img src="../brand/mark.svg" alt=""><span>Three<span class="rt">RT</span></span></a>- <p style="margin-top:14px">Hardware-accelerated ray tracing behind a three.js-style API.</p>- <div class="site"><a href="../showcase/">Showcase</a><a href="../download/">Download</a><a href="../docs/">Docs</a><a class="ic" href="https://github.com/meshy-dev/ThreeRT" rel="noopener" aria-label="ThreeRT on GitHub" title="GitHub"><svg class="si" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 .2a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.34c-2.23.48-2.7-1.07-2.7-1.07-.36-.93-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.77-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"/></svg></a><a class="ic" href="https://discord.gg/n7vsVmAKCK" rel="noopener" aria-label="ThreeRT on Discord" title="Discord"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a><a class="ic" href="https://x.com/ThreeRT3D" rel="noopener" aria-label="ThreeRT on X" title="X"><svg class="si" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a></div>- <p class="legal">A research project from <a href="https://meshy.ai/" rel="noopener">MeshyAI</a> · © 2026 MeshyAI · <a href="../privacy/">Privacy</a></p>- </div>- <div class="note">- <p><sup>1</sup> 60 fps measured on an Apple M5 MacBook at 1280 × 720 output with dynamic resolution, along each scene’s own camera path; three.js r187 in Chrome on the same machine. The Bistro clip is ThreeRT live on an Apple M3 Max at 1920 × 1080 (render scale 0.5), every frame as it drew it: 14.4 ms of GPU time a frame at the median, 14.9 ms at the 95th percentile, none over 16.7 ms.</p>- <p>Amazon Lumberyard Bistro: Amazon Lumberyard (2017). Zero-Day: Mike Winkelmann (Beeple) and Kate Anderson (2019). Both from NVIDIA’s Open Research Content Archive (ORCA), CC BY 4.0, converted from FBX to glTF. Damaged Helmet: Khronos glTF sample models. three.js is an independent open-source project; ThreeRT is not affiliated with it.</p>- <p id="caseCredits" hidden></p>- </div>- </div>-</footer>--<script type="module">- import { $, $$, compare, sequence, reveal } from "../js/threert.js";- import { GITHUB, ROOT, guard, packages, packageLinks, qrSvg, reachable } from "../js/site.js";-- reveal();- guard("camera moves", () => { for (const el of $$(".feat .cmp")) compare(el); for (const el of $$(".seqp")) sequence(el); });-- const esc = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);-- // The community's entries (showcase/community.json: repositories registered through the issue form below).- $("#submit").href = `${GITHUB}/issues/new?template=showcase.yml`;- guard("community", async () => {- const r = await fetch(new URL("showcase/community.json", ROOT), { cache: "no-cache" }); // a fixed path: always revalidate- const items = r.ok ? (await r.json()).items ?? [] : [];- $("#made").innerHTML = items.map((g) => {- const open = g.package ? g.package.replace(/^https:/, "threerts:").replace(/^http:/, "threert:") : null;- return `<article class="card">- <a class="thumb" href="${esc(g.repo)}" rel="noopener" aria-label="${esc(g.title)} on GitHub">${g.image ? `<img src="${esc(g.image)}" alt="${esc(g.title)}" loading="lazy">` : ""}</a>- <div class="body">- <div><h3>${esc(g.title)}</h3>${g.author ? `<p class="by">${esc(g.author)}</p>` : ""}</div>- <p class="cap2">${esc(g.caption ?? "")}</p>- <div class="acts">${open ? `<a class="btn primary sm" href="${esc(open)}">Open in ThreeRT</a>` : ""}<a class="btn ghost sm" href="${esc(g.repo)}" rel="noopener">Repository</a></div>- </div>- </article>`;- }).join("");- });-- // The packages this host carries (play/index.json). A host without them gets a note, not an empty grid.- guard("packages", async () => {- const pk = $("#pk"), index = await packages();- const games = index?.games ?? [];- if (!games.length) {- pk.outerHTML = `<p class="fine">No example packages are published on this host yet. The examples also ship inside the client: <a href="../download/">download ThreeRT</a> and open its library.</p>`;- return;- }- // Cases (a game with an `industry`: the client's release writes it from the engine's showcase/) get their own- // section, with what each shows and how to play with it; the rest are the hello-world packages below.- const cases = games.filter((g) => g.industry), rest = games.filter((g) => !g.industry);- if (cases.length) {- const fields = [...new Set(cases.map((g) => g.industry))];- $("#caseGrid").innerHTML = cases.map((g) => {- const l = packageLinks(g.id);- return `<article class="card case" id="case-${esc(g.id)}" data-field="${esc(g.industry)}">- <a class="thumb" href="${esc(l.web)}" aria-label="${esc(g.title)} as three.js in this browser"><img src="${esc(l.thumb(g.thumb))}" alt="${esc(g.title)}, rendered by ThreeRT" loading="lazy"><span class="ind"><i></i>${esc(g.industry)}</span></a>- <div class="body">- <div><h3>${esc(g.title)}</h3><p class="blurb">${esc(g.blurb ?? g.caption ?? "")}</p></div>- <div class="qr" data-id="${esc(g.id)}"></div>- <div class="acts"><a class="btn primary sm" href="${esc(l.open)}">Open in ThreeRT</a><a class="btn ghost sm" href="${esc(l.web)}">three.js in the browser</a></div>- ${g.controls?.length ? `<ul class="ctl">${g.controls.map((c) => `<li><b>${esc(c.input)}</b> ${esc(c.does)}</li>`).join("")}</ul>` : ""}- </div>- </article>`;- }).join("");- $("#filters").innerHTML = [`<button type="button" aria-pressed="true" data-field="">All</button>`, ...fields.map((f) => `<button type="button" aria-pressed="false" data-field="${esc(f)}">${esc(f)}</button>`)].join("");- $("#filters").addEventListener("click", (e) => {- const b = e.target.closest("button");- if (!b) return;- for (const x of $$("#filters button")) x.setAttribute("aria-pressed", String(x === b));- for (const c of $$("#caseGrid .case")) c.hidden = !!b.dataset.field && c.dataset.field !== b.dataset.field;- });- $("#cases").hidden = false;- // What the cases use that is not ours: named here, as their licences ask.- const seen = new Set(), credits = cases.flatMap((g) => g.credits ?? []).filter((c) => !seen.has(c.what + c.by) && seen.add(c.what + c.by));- if (credits.length) {- $("#caseCredits").innerHTML = "In the cases: " + credits.map((c) => `${c.url ? `<a href="${esc(c.url)}" rel="noopener">${esc(c.what)}</a>` : esc(c.what)}, ${esc(c.by)} (${esc(c.licence)})`).join("; ") + ".";- $("#caseCredits").hidden = false;- }- // Arriving at a case's own address (#case-<id>), now that it exists.- if (location.hash.startsWith("#case")) document.getElementById(location.hash.slice(1))?.scrollIntoView();- }- pk.innerHTML = rest.map((g) => {- const l = packageLinks(g.id);- return `<article class="card">- <a class="thumb" href="${esc(l.web)}" aria-label="${esc(g.title)} as three.js in this browser">${g.thumb ? `<img src="${esc(l.thumb(g.thumb))}" alt="${esc(g.title)}, rendered by ThreeRT" loading="lazy">` : ""}<span class="kind">${g.kind === "game" ? "game" : "scene"}</span></a>- <div class="body">- <div><h3>${esc(g.title)}</h3><p class="cap2">${esc(g.caption ?? "")}</p></div>- <div class="qr" data-id="${esc(g.id)}"></div>- <div class="acts"><a class="btn primary sm" href="${esc(l.open)}">Open in ThreeRT</a><a class="btn ghost sm" href="${esc(l.web)}">three.js in the browser</a></div>- <div class="addr">${esc(l.open)}</div>- </div>- </article>`;- }).join("");- $("#openNote").hidden = false;- if (!reachable()) $("#openNote").insertAdjacentHTML("beforeend", `<span>This page is on ${esc(location.hostname)}, which a phone cannot reach. Serve with <code>bun site/serve.ts --lan</code> and open the LAN address.</span>`);- for (const el of $$("#pk .qr, #caseGrid .qr")) {- const g = games.find((x) => x.id === el.dataset.id), l = packageLinks(g.id);- try { el.innerHTML = await qrSvg(l.qr, `QR code: open ${g.title} on a phone`); } catch (e) { console.error("qr:", e); el.remove(); }- }- });-</script></body></html>diff --git a/site/tools/build.ts b/site/tools/build.tsindex 637fec2..db62599 100644--- a/site/tools/build.ts+++ b/site/tools/build.ts@@ -3,8 +3,9 @@//// Two directories are generated elsewhere and copied when they are there (site/README.md):// site/releases/ latest.json and the client build it names (the Download page), appcast.xml (the apps' update feed)-// site/play/ index.json and the example packages (Showcase's "Open on your device")-// Without them the pages say that nothing is published on this host; the build warns. --require-release makes that+// site/play/ index.json and the example packages (what clients before 0.4.0 list in their Showcase; the+// apps themselves are published on threert.app now)+// Without releases/ the Download page says that no build is published on this host; the build warns. --require-release makes that// (and a file over the host's size limit) an error: what the deploy uses. The disk image itself stays out of the build// (--with-image copies it): threert.dev serves it from R2.import { cpSync, copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync } from "node:fs";@@ -75,7 +76,13 @@ if (existsSync(index)) {cpSync(join(site, "play"), join(out, "play"), { recursive: true });console.log(`packages: ${(p.games ?? []).map((g: { id: string }) => g.id).join(", ")}`);} else {- problems.push("no site/play/index.json: Showcase will have no packages to open");+ problems.push("no site/play/index.json: clients before 0.4.0 will have no examples to list in their Showcase");+}++// The landing page's own pictures (the baked tiles of threert.app's apps, OpenStrikeRT's: site/tools/platform.ts):+// a tile whose copy of the cover is missing would be a hole in the page wherever the platform does not answer.+for (const [, ref] of readFileSync(join(site, "index.html"), "utf8").matchAll(/(?:src|srcset)="(media\/(?:apps|openstrike)\/[^" ]+)/g)) {+ if (!existsSync(join(site, ref))) problems.push(`site/index.html shows ${ref}, which is not in site/media (bun site/tools/platform.ts)`);}const walk = (d: string): string[] => readdirSync(d, { withFileTypes: true }).flatMap((e) => (e.isDirectory() ? walk(join(d, e.name)) : [join(d, e.name)]));diff --git a/site/tools/platform.ts b/site/tools/platform.tsnew file mode 100644index 0000000..f84ca02--- /dev/null+++ b/site/tools/platform.ts@@ -0,0 +1,62 @@+// Bakes what the landing page shows of threert.app into the site: bun site/tools/platform.ts+//+// The page asks the platform for its apps when it loads (js/platform.js, index.html). What this writes is what stands+// until that answer comes, and for good where it does not: no JavaScript, a crawler, the platform out of reach.+// site/index.html the tiles between the two `apps:` comments (the same markup the page builds live)+// site/media/apps/<name>.webp each tile's cover, 640 x 360, so the grid costs a few dozen KiB instead of the+// platform's full-size covers; the page keeps a copy for as long as the app's cover is+// the one it was made from (the tile's data-cover)+// site/media/openstrike/ OpenStrikeRT's cover (two widths) and two of its screenshots: the section's pictures+// are this site's own files, not another host's+// The pictures are the platform's own (first-party apps, or covers their creators published), re-encoded and nothing+// else. Run it when the catalogue has moved on (a new first-party app, a cover that changed), then commit.+import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";+import { join, resolve } from "node:path";+import sharp from "sharp";+import { FEATURED, LIST, PLATFORM, pick, tile } from "../js/platform.js";++const site = resolve(import.meta.dir, "..");+const BEGIN = "<!-- apps:begin (site/tools/platform.ts) -->", END = "<!-- apps:end -->";+/** The featured game's screenshots the section shows next to its cover (1-based, as the platform numbers them). */+const SHOTS = [3, 6];++async function get(url: string): Promise<Response> {+ const r = await fetch(url, { signal: AbortSignal.timeout(60_000) });+ if (!r.ok) throw new Error(`${url}: ${r.status}`);+ return r;+}+const picture = async (url: string) => Buffer.from(await (await get(url)).arrayBuffer());+async function webp(src: Buffer, file: string, width: number, height: number, quality: number) {+ await sharp(src).resize(width, height, { fit: "cover" }).webp({ quality, effort: 6 }).toFile(file);+ return `${file.slice(site.length + 1)} (${Math.round(readFileSync(file).length / 1024)} KiB)`;+}++// 1. The tiles.+const apps = pick((await (await get(LIST)).json()).items);+if (!apps.length) throw new Error(`${LIST} lists nothing the page can show: index.html is left as it was`);+const dir = join(site, "media/apps");+mkdirSync(dir, { recursive: true });+for (const f of readdirSync(dir)) if (!apps.some((a) => `${a.name}.webp` === f)) rmSync(join(dir, f));+for (const a of apps) console.log(await webp(await picture(a.cover), join(dir, `${a.name}.webp`), 640, 360, 78));++const page = join(site, "index.html"), html = readFileSync(page, "utf8");+const from = html.indexOf(BEGIN), to = html.indexOf(END);+if (from < 0 || to < from) throw new Error(`site/index.html: no ${BEGIN} ... ${END}`);+const pad = " ";+const baked = html.slice(0, from + BEGIN.length) + "\n" + apps.map((a) => pad + tile(a, `media/apps/${a.name}.webp`)).join("\n") + "\n" + pad + html.slice(to);+if (baked !== html) writeFileSync(page, baked);+console.log(`site/index.html: ${apps.map((a) => a.name).join(", ")}${baked === html ? " (unchanged)" : ""}`);++// 2. The featured game's pictures.+const game = (await (await get(`${PLATFORM}/api/v1/apps/${FEATURED}`)).json()).app;+const os = join(site, "media/openstrike");+mkdirSync(os, { recursive: true });+const cover = await picture(game.cover);+console.log(await webp(cover, join(os, "cover.webp"), 1600, 900, 80));+console.log(await webp(cover, join(os, "cover-800.webp"), 800, 450, 78));+for (const n of SHOTS) {+ const url = game.screenshots?.[n - 1];+ if (!url) throw new Error(`${FEATURED} has no screenshot ${n}`);+ console.log(await webp(await picture(url), join(os, `shot-${n}.webp`), 960, 540, 78));+}+console.log(`${game.title} ${game.version}${game.listed === false ? " (unlisted on the platform for now)" : ""}`);diff --git a/site/worker.ts b/site/worker.tsindex 5077018..de386a1 100644--- a/site/worker.ts+++ b/site/worker.ts@@ -1,6 +1,6 @@// The site on Cloudflare Workers: static assets (out/site, built by site/tools/build.ts) on threert.dev, the clients'// disk images from R2, and byte ranges for the clips (media/**.mp4), which the assets alone do not answer.-// www.threert.dev redirects to the apex.+// www.threert.dev redirects to the apex, and the old Showcase page to threert.app.//// Why R2: the disk image (releases/ThreeRT-<version>-macos-arm64.dmg, about 32 MiB with the `threert` command line in// it) is over the 25 MiB a file that static assets take, and the client is closed source, so it has no public@@ -109,6 +109,14 @@ async function clip(request: Request, env: Env): Promise<Response> {return new Response(bytes.slice(range[0], range[1] + 1), { status: 206, headers: out });}+/**+ * The Showcase page's address: /showcase, /showcase/, /showcase/index.html. What it listed is now published on+ * threert.app, so old links (the npm packages' READMEs, the pages of packages built before, earlier apps) go to the+ * catalogue there. Only the page: showcase/community.json stays an asset, because clients before 0.4.0 read it.+ */+export const isShowcase = (pathname: string) => /^\/showcase(\/(index\.html)?)?$/.test(pathname);+export const PLATFORM = "https://threert.app/";+export default {async fetch(request: Request, env: Env): Promise<Response> {const url = new URL(request.url);@@ -116,6 +124,7 @@ export default {url.hostname = "threert.dev";return Response.redirect(url.toString(), 301);}+ if (isShowcase(url.pathname)) return Response.redirect(PLATFORM, 301);const key = imageKey(url.pathname);if (key) return image(request, env, key);if (isClip(url.pathname)) return clip(request, env);