Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

25.2 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<title data-i18n="capture.meta_title">Scene Capture: Video to 3D Point Cloud · three.ws</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="Turn a phone video of any space into an explorable 3D point cloud in the browser. Streaming feed-forward reconstruction (LingBot-Map) → coloured .ply, rendered live with WebGL."  data-i18n-attr="content:capture.meta_description"/>
		<meta name="theme-color" content="#000000" />
		<link rel="canonical" href="https://three.ws/capture" />

		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:title" content="Scene Capture — Video to 3D Point Cloud · three.ws"  data-i18n-attr="content:capture.meta_og_title"/>
		<meta property="og:description" content="Film a space, get an explorable 3D point cloud. Streaming feed-forward reconstruction → coloured .ply, rendered live in the browser."  data-i18n-attr="content:capture.meta_og_description"/>
		<meta property="og:url" content="https://three.ws/capture" />
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture%3A+Video+to+3D+Point+Cloud&amp;d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the&amp;p=%2Fcapture" />
		<meta name="twitter:card" content="summary_large_image" />
		<meta name="twitter:site" content="@trythreews" />
		<meta name="twitter:title" content="Scene Capture — Video to 3D Point Cloud · three.ws"  data-i18n-attr="content:capture.meta_twitter_title"/>
		<meta name="twitter:description" content="Film a space, get an explorable 3D point cloud — rendered live in the browser."  data-i18n-attr="content:capture.meta_twitter_description"/>
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Scene+Capture%3A+Video+to+3D+Point+Cloud&amp;d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the&amp;p=%2Fcapture" />

		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<link rel="stylesheet" href="/style.css" />
		<link rel="stylesheet" href="/nav.css" />
		<link rel="stylesheet" href="/footer.css" />
		<link rel="stylesheet" href="/fonts/fonts.css" />

		<style>
			/* Monochrome by design — greyscale tokens only, white as the single accent. */
			.pc-page {
				min-height: 100vh;
				background: var(--bg, #060606);
				color: var(--text, #f6f6f6);
				font-family: var(--font-body, 'Inter', system-ui, sans-serif);
				-webkit-font-smoothing: antialiased;
			}
			.pc-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 72px; }

			.pc-chip {
				display: inline-flex; align-items: center; gap: 7px;
				padding: 4px 11px; background: var(--surface-1, #141414);
				border: 1px solid var(--hairline, #1f1f1f); border-radius: 20px;
				font-size: 11px; color: var(--text-2, #b4b4b4); letter-spacing: 0.06em;
				text-transform: uppercase; margin-bottom: 16px;
			}
			.pc-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text, #f6f6f6); }
			.pc-head h1 {
				font-family: var(--font-display, 'Space Grotesk', sans-serif);
				font-size: clamp(26px, 4.4vw, 42px); font-weight: 700;
				letter-spacing: -0.025em; margin: 0 0 12px; line-height: 1.06;
			}
			.pc-head p { color: var(--text-2, #a8a8a8); font-size: 15px; line-height: 1.6; margin: 0; max-width: 660px; }
			.pc-head a { color: var(--text, #f6f6f6); }

			.pc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin-top: 28px; align-items: start; }
			/* Grid items default to min-width:auto, so the stage's aspect-ratio plus its
			   min-height would force a 553px min-content width and scroll the page
			   sideways on a phone. Let the track win instead. */
			.pc-layout > * { min-width: 0; }

			/* Stage */
			.pc-stage {
				position: relative; aspect-ratio: 16 / 11;
				background:
					radial-gradient(circle at 50% 30%, #141414 0%, #070707 72%);
				border: 1px solid var(--hairline, #1f1f1f);
				border-radius: 16px; overflow: hidden; min-height: 380px;
			}
			.pc-host { position: absolute; inset: 0; }
			.pc-host canvas { display: block; width: 100% !important; height: 100% !important; }
			.pc-stage.is-dragover { border-color: var(--text, #f6f6f6); }

			/* Overlays */
			.pc-overlay {
				position: absolute; inset: 0; display: flex; flex-direction: column;
				align-items: center; justify-content: center; gap: 14px;
				text-align: center; padding: 24px; pointer-events: none;
			}
			.pc-overlay[hidden] { display: none; }
			.pc-spinner {
				width: 34px; height: 34px; border-radius: 50%;
				border: 2px solid rgba(255,255,255,0.14); border-top-color: var(--text, #f6f6f6);
				animation: pc-spin 0.8s linear infinite;
			}
			@keyframes pc-spin { to { transform: rotate(360deg); } }
			.pc-overlay h3, .pc-overlay-title { font-family: var(--font-display, 'Space Grotesk', sans-serif); font-size: 17px; font-weight: 700; margin: 0; color: var(--text, #f6f6f6); }
			.pc-overlay p, .pc-overlay-sub { font-size: 13px; color: var(--text-3, #8a8a8a); margin: 0; max-width: 380px; line-height: 1.5; }
			.pc-overlay--drop {
				pointer-events: auto; cursor: pointer; transition: background var(--duration-fast);
				width: 100%; border: 0; background: transparent; font: inherit; color: inherit;
			}
			.pc-overlay--drop:hover, .pc-stage.is-dragover .pc-overlay--drop { background: rgba(255,255,255,0.03); }
			.pc-overlay--drop:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: -4px; }
			.pc-glyph {
				width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
				color: var(--text, #f6f6f6); background: var(--surface-1, #141414); border: 1px solid var(--hairline-strong, #2a2a2a);
			}
			.pc-err-actions { display: flex; gap: 8px; pointer-events: auto; }

			/* HUD */
			.pc-hud {
				position: absolute; left: 12px; right: 12px; bottom: 12px;
				display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
			}
			.pc-hud-label {
				font-size: 11.5px; color: var(--text-2, #cfcfcf);
				background: rgba(0,0,0,0.6); border: 1px solid var(--hairline, #1f1f1f);
				padding: 6px 11px; border-radius: 8px; backdrop-filter: blur(6px);
				max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
			}
			.pc-hud-right { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
			.pc-size-wrap {
				display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,0.6);
				border: 1px solid var(--hairline, #1f1f1f); border-radius: 8px; padding: 5px 9px; backdrop-filter: blur(6px);
			}
			.pc-size-wrap svg { color: var(--text-3, #8a8a8a); }
			.pc-size { width: 84px; accent-color: var(--text, #f6f6f6); cursor: pointer; }
			.pc-size:disabled { opacity: 0.4; cursor: default; }
			.pc-icon-btn {
				width: 32px; height: 32px; display: grid; place-items: center;
				background: rgba(0,0,0,0.6); border: 1px solid var(--hairline, #1f1f1f);
				border-radius: 8px; color: var(--text-2, #cfcfcf); cursor: pointer;
				backdrop-filter: blur(6px); transition: color var(--duration-fast), border-color var(--duration-fast);
			}
			.pc-icon-btn:hover { color: #fff; border-color: var(--hairline-strong, #2a2a2a); }
			.pc-icon-btn:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
			.pc-icon-btn:disabled { opacity: 0.4; cursor: default; }
			.pc-icon-btn.is-active { color: #fff; border-color: var(--text, #f6f6f6); }
			.pc-icon-btn[hidden] { display: none; }

			/* Side panel */
			.pc-panel { display: flex; flex-direction: column; gap: 14px; }
			.pc-card {
				background: var(--surface-1, #111); border: 1px solid var(--hairline, #1f1f1f);
				border-radius: 13px; padding: 16px;
			}
			.pc-card h2 { font-family: var(--font-display, 'Space Grotesk', sans-serif); font-size: 13px; font-weight: 700; margin: 0 0 12px; letter-spacing: 0.01em; display: flex; align-items: center; gap: 7px; }
			.pc-field { display: flex; flex-direction: column; gap: 8px; }
			.pc-label { font-size: 11px; color: var(--text-3, #8a8a8a); letter-spacing: 0.03em; text-transform: uppercase; }
			.pc-input, .pc-select {
				width: 100%; background: var(--surface-0, #0b0b0b);
				border: 1px solid var(--hairline, #1f1f1f); border-radius: 9px;
				color: var(--text, #f6f6f6); font-size: 13px; font-family: inherit;
				padding: 9px 11px; outline: none; transition: border-color var(--duration-fast); box-sizing: border-box;
			}
			.pc-input:focus, .pc-select:focus { border-color: var(--text, #f6f6f6); }
			/* `outline: none` above kills the ring a keyboard user needs, and a 1px
			   border tint is not enough to find on a dark panel. Restore a real
			   focus ring on keyboard focus, matching .pc-btn:focus-visible. */
			.pc-input:focus-visible, .pc-select:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
			.pc-sample-btn:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
			.pc-input::placeholder { color: var(--text-4, #6e6e6e); }
			.pc-btn {
				display: inline-flex; align-items: center; justify-content: center; gap: 7px;
				width: 100%; padding: 10px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
				border: 1px solid var(--hairline-strong, #2a2a2a); background: transparent;
				color: var(--text, #f6f6f6); cursor: pointer; font-family: inherit;
				transition: background var(--duration-fast), border-color var(--duration-fast), opacity var(--duration-fast);
			}
			.pc-btn:hover { background: var(--surface-2, #1a1a1a); }
			.pc-btn:focus-visible { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
			.pc-btn:disabled { opacity: 0.5; cursor: default; }
			.pc-btn--primary { background: var(--text, #f6f6f6); color: #000; border-color: var(--text, #f6f6f6); }
			.pc-btn--primary:hover { background: #fff; }
			.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
			.pc-adv { margin-top: 10px; }
			.pc-adv summary { font-size: 11.5px; color: var(--text-3, #8a8a8a); cursor: pointer; list-style: none; user-select: none; padding: 4px 0; }
			.pc-adv summary::-webkit-details-marker { display: none; }
			.pc-adv summary::before { content: '▸ '; color: var(--text-4, #6e6e6e); }
			.pc-adv[open] summary::before { content: '▾ '; }
			.pc-adv-body { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
			.pc-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2, #b4b4b4); cursor: pointer; }
			.pc-check input { accent-color: var(--text, #f6f6f6); width: 15px; height: 15px; }
			.pc-or { display: flex; align-items: center; gap: 10px; color: var(--text-4, #6e6e6e); font-size: 11px; margin: 12px 0; }
			.pc-or::before, .pc-or::after { content: ''; flex: 1; height: 1px; background: var(--hairline, #1f1f1f); }
			.pc-hint { font-size: 11.5px; color: var(--text-4, #6e6e6e); line-height: 1.5; margin: 10px 0 0; }
			.pc-sample-btn {
				display: flex; align-items: center; gap: 9px; text-align: left; width: 100%;
				padding: 9px 11px; border-radius: 9px; cursor: pointer; font-family: inherit;
				background: var(--surface-0, #0b0b0b); border: 1px solid var(--hairline, #1f1f1f);
				color: var(--text-2, #a8a8a8); font-size: 12.5px; transition: border-color var(--duration-fast), color var(--duration-fast);
			}
			.pc-sample-btn:hover { border-color: var(--hairline-strong, #2a2a2a); color: var(--text, #f6f6f6); }
			.pc-sample-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text, #f6f6f6); flex: 0 0 auto; }
			.pc-note { font-size: 11.5px; color: var(--text-3, #8a8a8a); line-height: 1.55; }
			.pc-note a { color: var(--text-2, #cfcfcf); }

			@media (max-width: 880px) { .pc-layout { grid-template-columns: 1fr; } }
			/* Below ~640px the 16:11 stage would be shorter than its min-height, which
			   is what re-introduces the sideways scroll. Give it a plain viewport-
			   relative height there so width always follows the column. */
			@media (max-width: 640px) {
				.pc-stage { aspect-ratio: auto; height: 62vh; min-height: 300px; }
				.pc-hud-label { max-width: 44%; }
			}

			/* Embed mode (?embed=1) — chrome-less full-bleed stage for the MCP /
			   agent point-cloud artifact iframe. Hide nav, footer, header, panel. */
			body.pc-embed #nav-container,
			body.pc-embed #footer-container,
			body.pc-embed .pc-head,
			body.pc-embed .pc-panel { display: none !important; }
			body.pc-embed .pc-wrap { max-width: none; padding: 0; }
			body.pc-embed .pc-layout { grid-template-columns: 1fr; margin: 0; gap: 0; }
			body.pc-embed .pc-stage { aspect-ratio: auto; height: 100vh; border: 0; border-radius: 0; }
		</style>
	
	<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Scene Capture — Video to 3D Point Cloud — three.ws">
	<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Scene Capture - Video to 3D Point Cloud","description":"Turn a phone video of any space into an explorable 3D point cloud. Streaming feed-forward reconstruction (LingBot-Map Geometric Context Transformer) fuses the frames into a coloured .ply, rendered live in the browser with WebGL. Or load a point cloud you already have.","url":"https://three.ws/capture","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Scene+Capture+-+Video+to+3D+Point+Cloud&d=Turn+a+phone+video+of+any+space+into+an+explorable+3D+point+cloud.+Streaming+feed-forward+reconstruction+%28LingBot-Map+Geometric+Context+Transformer%29+fuses+the+f&p=%2Fcapture"}]}</script>
</head>
	<body>
		<div class="pc-page">
			<div id="nav-container"></div>
			<script type="module" src="/nav.js"></script>

			<div class="pc-wrap">
				<div class="pc-head">
					<span class="pc-chip" data-i18n-html="capture.streaming_reconstruction_lingbot_map"><span class="pc-chip-dot"></span> Streaming reconstruction · LingBot-Map</span>
					<h1 data-i18n="capture.video_3d_scene">Video → 3D scene.</h1>
					<p data-i18n-html="capture.film_a_room_a_street_an_object">
						Film a room, a street, an object — and get back an explorable 3D point cloud.
						A feed-forward <a href="/avatar-engines">Geometric Context Transformer</a> reconstructs
						dense world-space geometry from the frames, then streams a coloured <code>.ply</code> you
						can orbit right here. Already have a point cloud? Drop it in or paste a URL.
					</p>
				</div>

				<div class="pc-layout">
					<div class="pc-stage" id="pc-stage">
						<div class="pc-host" id="pc-host"></div>

						<!-- Idle / drop -->
						<button class="pc-overlay pc-overlay--drop" id="pc-idle" type="button" aria-label="Choose a .ply file to render" data-i18n-attr="aria-label:capture.choose_a_ply_file_to_render_arialabel">
							<span class="pc-glyph">
								<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M12 2 2 7l10 5 10-5-10-5Z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
							</span>
							<span class="pc-overlay-title" data-i18n="capture.capture_a_scene_to_begin">Capture a scene to begin</span>
							<span class="pc-overlay-sub" data-i18n-html="capture.paste_a_video_url_on_the_right">Paste a video URL on the right to reconstruct, drop a <code>.ply</code> here, or try the sample cloud.</span>
						</button>

						<!-- Loading -->
						<div class="pc-overlay" id="pc-loading" role="status" aria-live="polite" hidden>
							<div class="pc-spinner"></div>
							<h3 id="pc-loading-title" data-i18n="capture.working">Working…</h3>
							<p id="pc-loading-sub"></p>
						</div>

						<!-- Error -->
						<div class="pc-overlay" id="pc-error" role="alert" hidden>
							<div class="pc-glyph" style="color:#f0f0f0">
								<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M12 9v4 M12 17h.01"/><circle cx="12" cy="12" r="9"/></svg>
							</div>
							<h3 id="pc-error-title" data-i18n="capture.something_went_wrong">Something went wrong</h3>
							<p id="pc-error-sub"></p>
							<div class="pc-err-actions">
								<button class="pc-btn" id="pc-error-retry" type="button" style="width:auto" data-i18n="capture.try_the_sample">Try the sample</button>
							</div>
						</div>

						<!-- HUD -->
						<div class="pc-hud" id="pc-hud" hidden>
							<div class="pc-hud-label" id="pc-hud-label" role="status" aria-live="polite"></div>
							<div class="pc-hud-right">
								<div class="pc-size-wrap" title="Point size ( [ and ] )">
									<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="7" cy="7" r="1.5" fill="currentColor"/><circle cx="17" cy="17" r="3.5" fill="currentColor"/></svg>
									<input class="pc-size" id="pc-size" type="range" min="0.25" max="4" step="0.05" value="1" disabled aria-label="Point size" />
								</div>
								<button class="pc-icon-btn" id="pc-color" type="button" disabled title="Cycle colour mode (C)" aria-label="Cycle colour mode" data-i18n-attr="aria-label:capture.cycle_colour_mode_arialabel;title:capture.cycle_colour_mode_c_title">
									<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18Z" fill="currentColor"/></svg>
								</button>
								<button class="pc-icon-btn" id="pc-rotate" type="button" disabled title="Auto-rotate (Space)" aria-label="Toggle auto-rotate" data-i18n-attr="aria-label:capture.toggle_auto_rotate_arialabel;title:capture.auto_rotate_space_title">
									<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7M21 4v4h-4"/></svg>
								</button>
								<button class="pc-icon-btn" id="pc-shot" type="button" disabled title="Save PNG (S)" aria-label="Save screenshot" data-i18n-attr="aria-label:capture.save_screenshot_arialabel;title:capture.save_png_s_title">
									<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 7h3l2-2h8l2 2h3v12H3z"/><circle cx="12" cy="13" r="3.5"/></svg>
								</button>
								<button class="pc-icon-btn" id="pc-recenter" type="button" disabled title="Recenter camera (R)" aria-label="Recenter camera" data-i18n-attr="aria-label:capture.recenter_camera_arialabel;title:capture.recenter_camera_r_title">
									<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M12 2v3 M12 19v3 M2 12h3 M19 12h3"/></svg>
								</button>
								<a class="pc-icon-btn" id="pc-download" title="Download .ply" aria-label="Download point cloud" hidden data-i18n-attr="aria-label:capture.download_point_cloud_arialabel;title:capture.download_ply_title">
									<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3v12 M7 11l5 4 5-4 M5 21h14"/></svg>
								</a>
							</div>
						</div>
					</div>

					<aside class="pc-panel">
						<div class="pc-card">
							<h2>
								<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m22 8-6 4 6 4V8Z"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>
								Capture from video
							</h2>
							<div class="pc-field">
								<label class="pc-label" for="pc-url" data-i18n="capture.video_url">Video URL</label>
								<input class="pc-input" id="pc-url" type="url" placeholder="https://…/walkthrough.mp4" autocomplete="off" />
								<button class="pc-btn pc-btn--primary" id="pc-run" type="button">
									<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 12h14 M13 5l7 7-7 7"/></svg>
									Reconstruct scene
								</button>
								<button class="pc-btn" id="pc-video-pick" type="button">
									<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m22 8-6 4 6 4V8Z"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>
									Upload a video
								</button>
								<input id="pc-video-file" type="file" accept="video/mp4,video/quicktime,video/webm" hidden aria-label="Video file to reconstruct" data-i18n-attr="aria-label:capture.video_file_to_reconstruct_arialabel" />
							</div>
							<details class="pc-adv">
								<summary data-i18n="capture.reconstruction_settings">Reconstruction settings</summary>
								<div class="pc-adv-body">
									<div class="pc-row">
										<div class="pc-field">
											<label class="pc-label" for="pc-mode" data-i18n="capture.mode">Mode</label>
											<select class="pc-select" id="pc-mode">
												<option value="streaming" selected data-i18n="capture.streaming">Streaming</option>
												<option value="windowed" data-i18n="capture.windowed_3k_frames">Windowed (&gt;3k frames)</option>
											</select>
										</div>
										<div class="pc-field">
											<label class="pc-label" for="pc-fps" data-i18n="capture.sample_fps">Sample FPS</label>
											<select class="pc-select" id="pc-fps">
												<option value="4">4</option>
												<option value="8" selected>8</option>
												<option value="12">12</option>
											</select>
										</div>
									</div>
									<div class="pc-field">
										<label class="pc-label" for="pc-kf" data-i18n="capture.keyframe_interval">Keyframe interval</label>
										<select class="pc-select" id="pc-kf">
											<option value="2" data-i18n="capture.2_denser_slower">2 · denser, slower</option>
											<option value="4" selected data-i18n="capture.4_balanced">4 · balanced</option>
											<option value="8" data-i18n="capture.8_faster_lighter">8 · faster, lighter</option>
										</select>
									</div>
									<label class="pc-check"><input type="checkbox" id="pc-sky" checked /> Mask out sky</label>
								</div>
							</details>
							<p class="pc-hint" data-i18n="capture.steady_well_lit_footage_that_orbits_or">Steady, well-lit footage that orbits or walks through a space works best. Long clips run in minutes — the view updates the moment it's ready.</p>
						</div>

						<div class="pc-card">
							<h2>
								<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg>
								Load a point cloud
							</h2>
							<div class="pc-field">
								<label class="pc-label" for="pc-ply-url" data-i18n="capture.point_cloud_url">Point cloud URL</label>
								<input class="pc-input" id="pc-ply-url" type="url" placeholder="https://…/scene.ply" autocomplete="off" />
								<button class="pc-btn" id="pc-load-url" type="button" data-i18n="capture.render_url">Render URL</button>
							</div>
							<div class="pc-or">or</div>
							<button class="pc-btn" id="pc-pick" type="button">
								<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3v12 M7 11l5 4 5-4 M5 21h14"/></svg>
								Upload a .ply
							</button>
							<input id="pc-file" type="file" accept=".ply" hidden aria-label="Point cloud .ply file" data-i18n-attr="aria-label:capture.point_cloud_ply_file_arialabel" />
							<div class="pc-or">or</div>
							<button class="pc-sample-btn" id="pc-sample" type="button" data-i18n-html="capture.sample_interior_90k_points"><span class="pc-sample-dot"></span> Sample interior · 90k points</button>
							<p class="pc-hint" data-i18n="capture.files_stay_on_your_device_decoding_and">Files stay on your device — decoding and rendering run entirely in your browser.</p>
						</div>

						<div class="pc-card">
							<h2 data-i18n="capture.how_it_works">How it works</h2>
							<p class="pc-note" data-i18n-html="capture.frames_stream_through_a_feed_forward_transfo">
								Frames stream through a feed-forward transformer that grounds coordinates, reads dense
								geometry, and corrects drift across the whole clip — no per-scene optimisation. The result
								is a world-space coloured point cloud. Output renders with WebGL <code>THREE.Points</code>;
								this is a point cloud, not a <a href="/splat">Gaussian splat</a>.
							</p>
						</div>
					</aside>
				</div>
			</div>

			<div id="footer-container"></div>
			<script src="/footer.js" defer></script>
		</div>

		<script type="module" src="/src/scene-capture.js"></script>
		<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>