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.

13.5 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 name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
	<title data-i18n="render_lab.page_title">Render Lab · three.ws</title>
	<meta name="description" data-i18n-attr="content:render_lab.meta_desc" content="Compose a real avatar render in the browser and copy the exact API call. Render Lab reads what each model can actually do (ARKit morphs, skeleton coverage, geometry) and only offers controls it will honor, so nothing you build here silently fails in production." />
	<link rel="canonical" href="https://three.ws/render-lab" />
	<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="/mobile.css" />
	<link rel="stylesheet" href="/src/render-lab.css" />
	<meta property="og:type" content="website" />
	<meta property="og:title" data-i18n-attr="content:render_lab.share_title" content="Render Lab · three.ws" />
	<meta property="og:description" data-i18n-attr="content:render_lab.og_desc" content="Compose a real avatar render, see what the model can actually do, and copy the exact API call. No signup." />
	<meta property="og:url" content="https://three.ws/render-lab" />
	<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Render+Lab&amp;d=Compose+a+real+avatar+render+in+the+browser+and+copy+the+exact+API+call.+Reads+each+model+first+%28ARKit+morph+targets%2C+canonical-skeleton+coverage%2C+geometry%29&amp;p=%2Frender-lab" />
	<meta name="twitter:card" content="summary_large_image" />
	<meta name="twitter:title" data-i18n-attr="content:render_lab.share_title" content="Render Lab · three.ws" />
	<meta name="twitter:description" data-i18n-attr="content:render_lab.tw_desc" content="Compose a real avatar render, see what the model can actually do, and copy the exact API call." />
	<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Render+Lab&amp;d=Compose+a+real+avatar+render+in+the+browser+and+copy+the+exact+API+call.+Reads+each+model+first+%28ARKit+morph+targets%2C+canonical-skeleton+coverage%2C+geometry%29&amp;p=%2Frender-lab" />
	<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="Render Lab / three.ws" />
	<meta name="twitter:site" content="@trythreews" />

	<meta property="og:site_name" content="three.ws">
	<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Render Lab","description":"Compose a real avatar render in the browser and copy the exact API call. Reads each model first (ARKit morph targets, canonical-skeleton coverage, geometry) and only offers controls that model will actually honor, so nothing you build here silently fails in production. Contact-sheet mode renders every framing, pose, or expression at once.","url":"https://three.ws/render-lab","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Render+Lab&d=Compose+a+real+avatar+render+in+the+browser+and+copy+the+exact+API+call.+Reads+each+model+first+%28ARKit+morph+targets%2C+canonical-skeleton+coverage%2C+geometry%29&p=%2Frender-lab"}]}</script>
</head>
<body>
	<header class="site-header"><div id="nav-container"></div></header>
	<script src="/nav.js"></script>

	<main class="rl-wrap">
		<section class="rl-hero">
			<h1 data-i18n="render_lab.hero_title">Render Lab</h1>
			<p data-i18n-html="render_lab.hero_p">
				Compose a real render against the live API, then copy the exact call. Every control here maps to
				one parameter of <a href="/docs/media-api">GET /api/avatar/render</a>, and the lab reads each model
				first: shapes it does not have and poses its skeleton cannot hold are switched off with the reason,
				instead of failing quietly at render time. No account, no SDK, no key.
			</p>
		</section>

		<div class="rl-grid">
			<!-- ── stage ──────────────────────────────────────────────────── -->
			<section class="rl-stage-col">
				<div class="rl-stage" id="stage" data-state="idle">
					<div class="rl-stage-frame" id="stageFrame">
						<img id="stageImg" alt="" hidden />
						<div class="rl-skeleton" id="stageSkeleton" aria-hidden="true"></div>
						<p class="rl-stage-msg" id="stageMsg" data-i18n="render_lab.stage_msg">Pick an avatar to start.</p>
					</div>
					<div class="rl-stage-bar">
						<span class="rl-stage-meta" id="stageMeta"></span>
						<div class="rl-stage-actions">
							<button type="button" class="rl-btn rl-btn-ghost" id="btnSheet" aria-expanded="false" aria-controls="sheet" data-tip="Render this configuration across every camera framing and pose at once. Click any tile to adopt it." data-i18n="render_lab.contact_sheet_btn">Contact sheet</button>
							<button type="button" class="rl-btn rl-btn-ghost" id="btnPermalink" data-tip="Copy a link that reopens this exact configuration." data-i18n="render_lab.copy_link_btn">Copy link</button>
							<a class="rl-btn rl-btn-primary" id="btnOpen" target="_blank" rel="noopener" aria-disabled="true" tabindex="-1" data-tip="Open the raw image the API returned, in a new tab." data-i18n="render_lab.open_image_btn">Open image</a>
						</div>
					</div>
				</div>

				<div class="rl-sheet" id="sheet" hidden>
					<div class="rl-sheet-head">
						<h2 id="sheetTitle" data-i18n="render_lab.sheet_title">Contact sheet</h2>
						<div class="rl-seg" role="group" aria-label="Contact sheet axis" data-i18n-attr="aria-label:render_lab.sheet_axis_aria">
							<button type="button" class="rl-seg-btn is-on" data-axis="scene" data-i18n="render_lab.axis_framing">Framing</button>
							<button type="button" class="rl-seg-btn" data-axis="pose" data-i18n="render_lab.axis_poses">Poses</button>
							<button type="button" class="rl-seg-btn" data-axis="expression" data-i18n="render_lab.axis_expressions">Expressions</button>
						</div>
						<button type="button" class="rl-btn rl-btn-ghost" id="btnSheetClose" aria-label="Close contact sheet" data-i18n="render_lab.close_btn" data-i18n-attr="aria-label:render_lab.close_aria">Close</button>
					</div>
					<div class="rl-sheet-grid" id="sheetGrid"></div>
					<p class="rl-sheet-note" id="sheetNote"></p>
				</div>

				<!-- ── code ───────────────────────────────────────────────── -->
				<section class="rl-code">
					<div class="rl-code-head">
						<div class="rl-tabs" role="tablist" aria-label="Code format" data-i18n-attr="aria-label:render_lab.code_format_aria">
							<button type="button" class="rl-tab is-on" role="tab" aria-selected="true" aria-controls="codePanel" data-lang="url">URL</button>
							<button type="button" class="rl-tab" role="tab" aria-selected="false" aria-controls="codePanel" data-lang="html">HTML</button>
							<button type="button" class="rl-tab" role="tab" aria-selected="false" aria-controls="codePanel" data-lang="curl">curl</button>
							<button type="button" class="rl-tab" role="tab" aria-selected="false" aria-controls="codePanel" data-lang="js">JavaScript</button>
							<button type="button" class="rl-tab" role="tab" aria-selected="false" aria-controls="codePanel" data-lang="component" data-i18n="render_lab.tab_component">Web component</button>
							<button type="button" class="rl-tab" role="tab" aria-selected="false" aria-controls="codePanel" data-lang="mcp">MCP</button>
						</div>
						<button type="button" class="rl-btn rl-btn-secondary" id="btnCopyCode" data-i18n="render_lab.copy_code_btn">Copy</button>
					</div>
					<pre class="rl-code-body" id="codePanel" role="tabpanel" tabindex="0"><code id="codeOut"></code></pre>
					<p class="rl-code-note" id="codeNote"></p>
				</section>
			</section>

			<!-- ── controls ───────────────────────────────────────────────── -->
			<aside class="rl-rail">
				<section class="rl-panel">
					<h2 class="rl-panel-h" data-i18n="render_lab.panel_model">Model</h2>
					<div class="rl-avatars" id="avatarStrip" role="radiogroup" aria-label="Choose an avatar" data-i18n-attr="aria-label:render_lab.avatars_aria"></div>
					<label class="rl-field">
						<span class="rl-label" data-tip="Any three.ws avatar ID, or a public .glb URL from anywhere on the web." data-i18n="render_lab.avatar_id_label">Avatar ID or GLB URL</span>
						<span class="rl-input-row">
							<input type="text" id="customInput" class="rl-input" placeholder="13f259c7-… or https://…/model.glb" spellcheck="false" autocomplete="off" />
							<button type="button" class="rl-btn rl-btn-secondary" id="btnLoadCustom" data-i18n="render_lab.load_btn">Load</button>
						</span>
					</label>
				</section>

				<section class="rl-panel" id="capPanel" hidden>
					<h2 class="rl-panel-h" data-i18n="render_lab.panel_caps">What this model can do</h2>
					<div class="rl-cap-head" id="capHead"></div>
					<div class="rl-meters" id="capMeters"></div>
					<ul class="rl-verdicts" id="capVerdicts"></ul>
					<p class="rl-cap-src" data-i18n-html="render_lab.cap_src">Read from the GLB itself via <a href="/docs/media-api#model-capabilities">/api/avatar/capabilities</a>.</p>
				</section>

				<section class="rl-panel">
					<h2 class="rl-panel-h" data-i18n="render_lab.panel_framing">Framing</h2>
					<div class="rl-chips" id="sceneChips" role="radiogroup" aria-label="Camera framing" data-i18n-attr="aria-label:render_lab.framing_aria"></div>

					<label class="rl-field">
						<span class="rl-label" data-tip="Square output dimension in pixels. width/height override it when you need a non-square image.">Size <b id="sizeVal">512</b> px</span>
						<input type="range" id="sizeInput" min="128" max="2048" step="64" value="512" class="rl-range" />
					</label>

					<label class="rl-field">
						<span class="rl-label" data-tip="Any CSS color, or transparent for a cut-out PNG you can drop on any background." data-i18n="render_lab.bg_label">Background</span>
						<span class="rl-input-row">
							<input type="color" id="bgColor" class="rl-color" value="#0a0a0a" aria-label="Background color" data-i18n-attr="aria-label:render_lab.bg_color_aria" />
							<input type="text" id="bgInput" class="rl-input" value="transparent" spellcheck="false" autocomplete="off" />
						</span>
					</label>

					<label class="rl-field">
						<span class="rl-label" data-tip="PNG keeps transparency. WebP and JPEG are smaller; quality applies to those two only." data-i18n="render_lab.format_label">Format</span>
						<span class="rl-input-row">
							<select id="formatInput" class="rl-select">
								<option value="png">png</option>
								<option value="webp">webp</option>
								<option value="jpeg">jpeg</option>
							</select>
							<input type="number" id="qualityInput" class="rl-input rl-input-num" min="1" max="100" value="90" disabled aria-label="Quality" data-i18n-attr="aria-label:render_lab.quality_aria" />
						</span>
					</label>
				</section>

				<section class="rl-panel" id="posePanel">
					<h2 class="rl-panel-h">
						Pose
						<span class="rl-panel-state" id="poseState"></span>
					</h2>
					<div class="rl-chips rl-chips-scroll" id="poseChips" role="radiogroup" aria-label="Pose preset" data-i18n-attr="aria-label:render_lab.pose_aria"></div>
				</section>

				<section class="rl-panel" id="exprPanel">
					<h2 class="rl-panel-h">
						Expression
						<span class="rl-panel-state" id="exprState"></span>
					</h2>
					<div class="rl-presets" id="exprPresets"></div>
					<div class="rl-sliders" id="exprSliders"></div>
					<p class="rl-empty" id="exprEmpty" hidden></p>
				</section>

				<button type="button" class="rl-btn rl-btn-secondary rl-reset" id="btnReset" data-i18n="render_lab.reset_btn">Reset everything</button>
			</aside>
		</div>

		<section class="rl-next">
			<h2 data-i18n="render_lab.next_h">Next</h2>
			<div class="rl-next-grid">
				<a class="rl-next-card" href="/docs/media-api">
					<strong data-i18n="render_lab.next_media_title">Media API reference</strong>
					<span data-i18n="render_lab.next_media_body">Every parameter, response header, and cache rule for the render and capability endpoints.</span>
				</a>
				<a class="rl-next-card" href="/docs/tutorials/render-avatar-images">
					<strong data-i18n="render_lab.next_tut_title">Tutorial: render avatar images</strong>
					<span data-i18n="render_lab.next_tut_body">Ship avatar images into a real page, from first request to CDN-cached production use.</span>
				</a>
				<a class="rl-next-card" href="/create">
					<strong data-i18n="render_lab.next_make_title">Make your own avatar</strong>
					<span data-i18n="render_lab.next_make_body">Generate a rigged avatar from a prompt or a photo, then render it here.</span>
				</a>
			</div>
		</section>
	</main>

	<script type="module" src="/src/render-lab.js"></script>
	<script type="module" src="/i18n.js"></script>
</body>
</html>