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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
<!doctype html>
<html lang="en">
<head>
<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(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" />
<title data-i18n="avatar_studio.meta_title">Avatar Studio · three.ws</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="description" content="Build a custom 3D avatar from scratch. Choose body type, sculpt face and body, add outfits and accessories. No selfie required." data-i18n-attr="content:avatar_studio.meta_description"/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
<meta property="og:url" content="https://three.ws/avatar-studio" />
<meta property="og:title" content="Avatar Studio · three.ws" data-i18n-attr="content:avatar_studio.meta_og_title"/>
<meta property="og:description" content="Build a custom 3D avatar from scratch. Choose body type, sculpt face and body, add outfits and accessories." data-i18n-attr="content:avatar_studio.meta_og_description"/>
<meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Avatar+Studio&d=Build+a+custom+3D+avatar+from+scratch.+Sculpt+the+face+and+body%2C+dress+it+from+the+closet%2C+add+accessories%2C+and+walk+it+around+the+stage.+No+selfie+required.&p=%2Favatar-studio" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/pricing.css" />
<link rel="stylesheet" href="/mobile.css" />
<style>
:root {
--bg: var(--bg-0);
--panel: #111;
--panel-2: #161616;
--border: #1f1f1f;
--border-2: #2a2a2a;
--text: #fafafa;
--text-2: #a1a1aa;
--text-3: #71717a;
--accent: #ffffff;
--accent-dim: rgba(255, 255, 255, 0.10);
--accent-ink: #000000;
--success: var(--ink);
--danger: #f43f5e;
--radius: 14px;
}
html, body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: 'Inter', system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
}
body {
display: flex;
flex-direction: column;
/* Lock the app shell to the viewport so the 3D stage stays put
and only the controls panel scrolls (set per-axis to avoid
clipping fixed-position modals/overlays). */
height: 100vh;
height: 100dvh;
overflow-y: hidden;
}
/* ── Top bar ──────────────────────────────────────────── */
.as-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 24px;
border-bottom: 1px solid var(--border);
background: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(8px);
position: sticky;
top: 0;
z-index: 20;
}
.as-back {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--text-2);
text-decoration: none;
font-size: 13px;
}
.as-back:hover { color: var(--text); }
.as-bar-title {
margin: 0;
font-family: var(--font-display);
font-size: 14px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text);
text-align: center;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.as-actions { display: flex; gap: 8px; }
.as-btn {
background: transparent;
border: 1px solid var(--border-2);
color: var(--text-2);
padding: 7px 14px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-family: inherit;
font-weight: 500;
transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}
.as-btn:hover { color: var(--text); border-color: var(--text-3); }
.as-btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }
.as-btn.primary {
background: var(--accent);
color: var(--accent-ink);
border-color: var(--accent);
font-weight: 600;
}
.as-btn.primary:hover { filter: brightness(1.06); }
.as-btn.primary[disabled] { filter: none; opacity: 0.4; }
/* ── Main layout ──────────────────────────────────────── */
.as-shell {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
flex: 1;
min-height: 0;
}
.as-stage {
border-right: 1px solid var(--border);
background:
radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.04), transparent 60%),
radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.03), transparent 50%),
var(--bg);
position: relative;
min-height: 500px;
}
.as-stage-loading {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-3);
font-size: 13px;
pointer-events: none;
}
.as-side {
display: flex;
flex-direction: column;
min-height: 0;
}
/* ── Color customization panel ────────────────────────── */
.as-color-group { margin-bottom: 22px; }
.as-color-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin: 0 0 10px;
}
.as-color-title {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.as-color-current {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--text-3);
font-variant-numeric: tabular-nums;
}
.as-color-current .dot {
width: 12px; height: 12px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.25);
}
.as-swatches {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
gap: 8px;
}
.as-swatch {
position: relative;
aspect-ratio: 1 / 1;
border-radius: 9px;
border: 1px solid var(--border-2);
cursor: pointer;
padding: 0;
transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
outline: none;
}
.as-swatch:hover { transform: translateY(-1px); border-color: var(--text-3); }
.as-swatch:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.as-swatch[aria-pressed="true"] {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(0, 0, 0, 0.6);
}
.as-swatch[aria-pressed="true"]::after {
content: '';
position: absolute;
inset: 0;
margin: auto;
width: 7px; height: 7px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.as-swatch-default {
background:
linear-gradient(135deg, transparent 46%, var(--danger) 46%, var(--danger) 54%, transparent 54%),
var(--panel-2);
}
.as-swatch-custom {
display: inline-flex;
align-items: center;
justify-content: center;
background:
conic-gradient(from 0deg, #f43f5e, #f59e0b, #eab308, #22c55e, #3b82f6, #ffffff, #f43f5e);
color: #fff;
overflow: hidden;
}
.as-swatch-custom input[type='color'] {
position: absolute;
inset: 0;
width: 100%; height: 100%;
opacity: 0;
cursor: pointer;
border: 0;
padding: 0;
}
.as-swatch-custom svg {
width: 14px; height: 14px;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
pointer-events: none;
}
/* ── Name input ───────────────────────────────────────── */
.as-name-row {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
background: var(--panel);
}
.as-name-input {
flex: 1;
background: var(--panel-2);
border: 1px solid var(--border-2);
border-radius: 8px;
color: var(--text);
padding: 8px 12px;
font-size: 13px;
font-family: inherit;
outline: none;
transition: border-color var(--duration-fast);
}
.as-name-input:focus { border-color: var(--accent); }
.as-name-input::placeholder { color: var(--text-3); }
.as-base-switch {
display: flex; align-items: center; gap: 6px;
padding: 0 16px 10px;
}
.as-base-label {
font-size: 11px; color: var(--text-3); text-transform: uppercase;
letter-spacing: 0.06em; margin-right: 2px;
}
.as-base-btn {
flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
padding: 6px 10px; font-size: 12px; color: var(--text-2);
background: var(--surface-2); border: 1px solid var(--border);
border-radius: 8px; cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.as-base-btn:hover { color: var(--text); border-color: var(--text-3); }
.as-base-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.as-base-btn.active {
color: var(--text); border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
}
/* Ink, not #fff: --accent is white in the dark theme, so a hardcoded
white label rendered the badge as a blank pill. */
.as-base-new {
font-size: 10px; padding: 1px 6px; border-radius: 999px;
background: var(--accent); color: var(--accent-ink); line-height: 1.5;
}
/* ── Tabs ─────────────────────────────────────────────── */
.as-tabs {
display: flex;
border-bottom: 1px solid var(--border);
background: var(--panel);
padding: 0 8px;
overflow-x: auto;
}
.as-tab {
background: transparent;
border: 0;
color: var(--text-3);
padding: 12px 14px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
font-family: inherit;
border-bottom: 2px solid transparent;
transition: color var(--duration-fast), border-color var(--duration-fast);
white-space: nowrap;
}
.as-tab:hover { color: var(--text-2); }
.as-tab.active { color: var(--text); border-color: var(--accent); }
.as-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Shown only in the narrow layout, where the word labels are hidden. */
.as-tab-icon { display: none; }
/* ── Chips ────────────────────────────────────────────── */
.as-chips {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
border-bottom: 1px solid var(--border);
background: var(--panel);
min-height: 44px;
overflow-x: auto;
white-space: nowrap;
}
.as-chips:empty::before {
content: 'Nothing on yet. Pick something below.';
color: var(--text-3);
font-size: 12px;
}
.as-chip {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--panel-2);
border: 1px solid var(--border-2);
border-radius: 999px;
padding: 4px 6px 4px 10px;
font-size: 12px;
color: var(--text);
white-space: nowrap;
font-family: inherit;
}
.as-chip .as-chip-kind {
color: var(--text-3);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.as-chip .as-chip-dot {
width: 11px; height: 11px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.3);
flex-shrink: 0;
}
.as-chip button {
background: transparent;
border: 0;
color: var(--text-3);
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 2px 6px;
border-radius: 999px;
font-family: inherit;
}
.as-chip button:hover { color: var(--danger); background: rgba(244, 63, 94, 0.08); }
/* ── Panel (tile grid + sculpt) ────────────────────────── */
.as-panel {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 16px;
}
.as-search-wrap {
position: sticky;
top: -16px;
margin: -16px -16px 12px;
padding: 12px 16px;
background: var(--bg);
border-bottom: 1px solid var(--border);
z-index: 2;
}
.as-search {
width: 100%;
background: var(--panel-2);
border: 1px solid var(--border-2);
border-radius: 8px;
color: var(--text);
padding: 8px 12px;
font-size: 13px;
font-family: inherit;
outline: none;
transition: border-color var(--duration-fast);
}
.as-search:focus { border-color: var(--accent); }
.as-search::placeholder { color: var(--text-3); }
.as-empty {
color: var(--text-3);
font-size: 13px;
padding: 24px 4px;
text-align: center;
}
/* While an accessory is loading onto the rig, the grid stops taking
input: a second click during the fetch queued a competing op that
landed after the first and undid it. */
.as-grid, .as-swatches { transition: opacity var(--duration-fast); }
.as-panel[aria-busy='true'] .as-grid,
.as-panel[aria-busy='true'] .as-swatches {
opacity: 0.55;
pointer-events: none;
}
.as-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 10px;
}
.as-tile {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 10px 10px 8px;
cursor: pointer;
transition: border-color var(--duration-fast), transform var(--duration-fast), background var(--duration-fast);
color: inherit;
text-align: left;
font-family: inherit;
}
.as-tile:hover {
border-color: var(--accent);
transform: translateY(-1px);
background: rgba(255, 255, 255, 0.03);
}
.as-tile.selected {
border-color: var(--accent);
background: rgba(255, 255, 255, 0.05);
}
.as-tile.previewing {
border-color: #ffffff;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.as-tile-preview {
aspect-ratio: 1 / 1;
border-radius: 8px;
background:
radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 70%),
var(--panel-2);
margin-bottom: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
overflow: hidden;
position: relative;
}
.as-tile-preview img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.as-tile-name {
font-size: 12px;
font-weight: 600;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.as-tile-kind {
font-size: 10px;
color: var(--text-3);
text-transform: uppercase;
letter-spacing: 0.06em;
margin-top: 1px;
}
.as-tile-none {
background: transparent;
border-style: dashed;
}
/* ── Animate panel ──────────────────────────────────────── */
.as-animate-intro {
font-size: 12px;
line-height: 1.45;
color: var(--text-2, var(--text-3));
margin: 2px 2px 12px;
}
.as-anim-grid {
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.as-anim-tile {
text-align: center;
}
.as-anim-tile .as-tile-preview {
font-size: 30px;
margin-bottom: 6px;
}
.as-anim-tile.selected .as-tile-preview {
background:
radial-gradient(ellipse at center, rgba(255,255,255,0.12), transparent 70%),
var(--panel-2);
}
.as-anim-tile .as-tile-name { white-space: normal; }
.as-skeleton {
pointer-events: none;
min-height: 120px;
background:
linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 70%)
var(--panel);
background-size: 200% 100%;
animation: as-shimmer 1.2s ease-in-out infinite;
}
@keyframes as-shimmer {
from { background-position: 200% 0; }
to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
.as-skeleton { animation: none; }
}
/* ── Status bar ────────────────────────────────────────── */
.as-status {
padding: 10px 16px;
border-top: 1px solid var(--border);
background: var(--panel);
font-size: 12px;
color: var(--text-3);
display: flex;
align-items: center;
gap: 8px;
min-height: 36px;
}
.as-status.ok { color: var(--success); }
.as-status.err { color: var(--danger); }
.as-status .spin {
width: 11px; height: 11px;
border-radius: 50%;
border: 2px solid rgba(255,255,255,0.2);
border-top-color: var(--accent);
animation: as-spin 0.9s linear infinite;
}
@keyframes as-spin { to { transform: rotate(360deg); } }
.as-error {
padding: 80px 24px;
text-align: center;
color: var(--text-3);
font-size: 14px;
}
.as-error-actions {
margin-top: 16px; display: flex; gap: 12px; justify-content: center; align-items: center;
}
.as-error-actions button, .as-error-actions a {
padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
cursor: pointer; text-decoration: none; border: 1px solid var(--border, rgba(255,255,255,0.16));
color: var(--text, #e8e8e8); background: transparent; transition: background var(--duration-fast), border-color var(--duration-fast);
}
.as-error-actions button { background: var(--accent); color: #08111e; border-color: transparent; }
.as-error-actions button:hover { filter: brightness(1.08); }
.as-error-actions a:hover { border-color: var(--text-3); }
.as-error-actions button:focus-visible, .as-error-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.as-skel {
width: 86px; height: 210px; border-radius: 44px 44px 28px 28px;
background: linear-gradient(100deg, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 70%);
background-size: 220% 100%; animation: as-shimmer 1.4s ease-in-out infinite; margin-bottom: 14px;
}
#as-loading { flex-direction: column; }
/* The spinner classes are `spin` / `spin-lg`; an `.as-spin` rule here
matched nothing, so reduced-motion users kept getting the spin. */
@media (prefers-reduced-motion: reduce) {
.spin, .spin-lg, .as-skel { animation: none; }
}
@media (max-width: 980px) {
/* Stacked layout: let the document scroll, but keep the avatar
pinned below the top bar so it stays visible while the user
scrolls through the controls beneath it. */
body { height: auto; overflow-y: visible; }
.as-shell { grid-template-columns: 1fr; }
.as-stage {
border-right: 0;
border-bottom: 1px solid var(--border);
height: 42vh;
min-height: 300px;
position: sticky;
top: 49px;
z-index: 10;
}
.as-panel { overflow-y: visible; }
}
/* ── Reuse avatar-edit sculpt styles ─────────────────── */
.ae-sculpt-head {
display: flex;
gap: 8px;
margin-bottom: 10px;
}
.ae-sculpt-capture {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.ae-sculpt-capture-icon { font-size: 14px; line-height: 1; }
.ae-sculpt-note {
font-size: 12px;
color: var(--text-3);
line-height: 1.55;
margin: 0 0 14px;
}
.ae-sculpt-mirror {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0 0 8px;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
cursor: pointer;
font-size: 12px;
color: var(--text-2);
user-select: none;
}
.ae-sculpt-mirror input { accent-color: var(--accent); }
.ae-sculpt-mirror:hover { color: var(--text); border-color: var(--border-2); }
.ae-sculpt-group {
border: 1px solid var(--border);
border-radius: 10px;
background: var(--panel);
margin-bottom: 8px;
overflow: hidden;
}
.ae-sculpt-group summary {
list-style: none;
cursor: pointer;
padding: 10px 14px;
font-size: 13px;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
justify-content: space-between;
transition: background var(--duration-fast);
user-select: none;
}
.ae-sculpt-group summary::-webkit-details-marker { display: none; }
.ae-sculpt-group summary::before {
content: '\25B8';
color: var(--text-3);
font-size: 11px;
margin-right: 8px;
display: inline-block;
transition: transform var(--duration-fast);
}
.ae-sculpt-group[open] summary::before { transform: rotate(90deg); }
.ae-sculpt-group summary:hover { background: var(--panel-2); }
.ae-sculpt-count {
font-size: 10px;
color: var(--text-3);
background: var(--panel-2);
border: 1px solid var(--border-2);
padding: 2px 7px;
border-radius: 999px;
margin-left: auto;
}
.ae-sculpt-rows {
padding: 6px 14px 14px;
display: flex;
flex-direction: column;
gap: 6px;
border-top: 1px solid var(--border);
background: rgba(0, 0, 0, 0.2);
}
.ae-sculpt-row {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 36px;
align-items: center;
gap: 10px;
padding: 6px 0;
}
.ae-sculpt-label {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.ae-sculpt-name {
font-size: 12px;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ae-sculpt-meta {
font-size: 9px;
color: var(--text-3);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.ae-sculpt-row input[type='range'] {
appearance: none;
-webkit-appearance: none;
width: 100%;
background: transparent;
height: 16px;
cursor: pointer;
}
.ae-sculpt-row input[type='range']::-webkit-slider-runnable-track {
height: 4px;
border-radius: 999px;
background: var(--border-2);
}
.ae-sculpt-row input[type='range']::-moz-range-track {
height: 4px;
border-radius: 999px;
background: var(--border-2);
}
.ae-sculpt-row input[type='range']::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--accent);
margin-top: -5px;
border: 0;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
cursor: pointer;
}
.ae-sculpt-row input[type='range']::-moz-range-thumb {
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--accent);
border: 0;
cursor: pointer;
}
.ae-sculpt-value {
font-family: ui-monospace, 'SF Mono', monospace;
font-size: 11px;
color: var(--text-3);
text-align: right;
font-variant-numeric: tabular-nums;
}
/* ── Blend wheel ──────────────────────────────────────── */
.ae-blend-group > .ae-blend-body {
padding: 16px 14px 14px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.ae-blend-canvas {
position: relative;
width: 220px;
height: 220px;
border: 1px solid var(--border-2);
border-radius: 50%;
background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(255,255,255,0.015) 60%, transparent 100%);
cursor: crosshair;
flex-shrink: 0;
outline: none;
}
.ae-blend-canvas::before, .ae-blend-canvas::after {
content: '';
position: absolute;
background: rgba(255, 255, 255, 0.07);
pointer-events: none;
}
.ae-blend-canvas::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.ae-blend-canvas::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.ae-blend-canvas:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ae-blend-label {
position: absolute;
transform: translate(-50%, -50%);
font-size: 9px;
font-weight: 600;
color: rgba(255, 255, 255, 0.45);
letter-spacing: 0.07em;
text-transform: uppercase;
white-space: nowrap;
pointer-events: none;
user-select: none;
}
.ae-blend-puck {
position: absolute;
left: 50%; top: 50%;
width: 20px; height: 20px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0,0,0,0.5);
transform: translate(-50%, -50%);
cursor: grab;
touch-action: none;
z-index: 2;
transition: box-shadow var(--duration-fast);
}
.ae-blend-puck:active { cursor: grabbing; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35), 0 3px 12px rgba(0,0,0,0.6); }
.ae-blend-desc {
font-size: 11px;
color: var(--text-3);
text-align: center;
margin: 0;
min-height: 16px;
}
/* ── Face capture modal ─────────────────────────────── */
.ae-face-backdrop {
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: asFaceFade 0.18s ease-out;
}
@keyframes asFaceFade { from { opacity: 0 } to { opacity: 1 } }
.ae-face-dialog {
background: var(--panel);
border: 1.5px solid var(--border-2);
border-radius: 14px;
width: 100%;
max-width: 520px;
max-height: calc(100vh - 40px);
overflow-y: auto;
padding: 24px;
position: relative;
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
font-family: inherit;
}
.ae-face-dialog h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ae-face-lede { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.ae-face-close {
position: absolute;
top: 12px; right: 12px;
background: var(--panel-2);
border: 1px solid var(--border-2);
color: var(--text-2);
width: 28px; height: 28px;
border-radius: 999px;
cursor: pointer;
font: inherit;
font-size: 13px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ae-face-close:hover { color: var(--text); border-color: var(--text-3); }
.ae-face-stage {
position: relative;
aspect-ratio: 1 / 1;
background: #000;
border: 1px solid var(--border-2);
border-radius: 10px;
overflow: hidden;
}
.ae-face-stage video {
width: 100%; height: 100%;
object-fit: cover;
transform: scaleX(-1);
display: block;
}
.ae-face-status {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: 8px 12px;
font-size: 12px;
color: rgba(255,255,255,0.85);
background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
text-align: center;
}
.ae-face-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* ── Icon-only buttons ────────────────────────────────── */
.as-icon-btn {
padding: 7px 9px;
}
/* ── Draft restore bar ─────────────────────────────────── */
#as-draft-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 20px;
background: rgba(234, 179, 8, 0.08);
border-bottom: 1px solid rgba(234, 179, 8, 0.25);
font-size: 12px;
color: #eab308;
flex-wrap: wrap;
}
#as-draft-bar span { flex: 1; min-width: 0; }
.as-draft-btn {
background: transparent;
border: 1px solid rgba(234, 179, 8, 0.4);
color: #eab308;
padding: 4px 10px;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
font-family: inherit;
font-weight: 600;
transition: background var(--duration-fast);
}
.as-draft-btn:hover { background: rgba(234, 179, 8, 0.12); }
.as-draft-dismiss { border-color: transparent; color: var(--text-3); }
.as-draft-dismiss:hover { background: rgba(255,255,255,0.05); color: var(--text-2); border-color: var(--border-2); }
/* ── Empty-state action button ─────────────────────────── */
.as-empty-action {
display: inline-block;
margin-top: 10px;
background: transparent;
border: 1px solid var(--border-2);
color: var(--text-2);
padding: 6px 14px;
border-radius: 8px;
cursor: pointer;
font: 500 12px/1 inherit;
transition: border-color var(--duration-fast), color var(--duration-fast);
}
.as-empty-action:hover { border-color: var(--text-3); color: var(--text); }
/* ── Save-success toast ────────────────────────────────── */
.as-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(24px);
opacity: 0;
transition: opacity var(--duration-base), transform var(--duration-base);
background: #1a2e1a;
border: 1px solid rgba(34, 197, 94, 0.35);
color: #86efac;
padding: 10px 18px;
border-radius: 10px;
font-size: 13px;
display: flex;
align-items: center;
gap: 10px;
z-index: 400;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
pointer-events: none;
white-space: nowrap;
}
.as-toast.visible {
opacity: 1;
transform: translateX(-50%) translateY(0);
pointer-events: auto;
}
.as-toast-icon { flex-shrink: 0; color: #4ade80; }
.as-toast-link {
color: #4ade80;
text-decoration: none;
font-weight: 600;
margin-left: 4px;
}
.as-toast-link:hover { text-decoration: underline; }
/* ── Mobile: icon tabs + a top bar that fits 320px ─────── */
@media (max-width: 480px) {
.as-tab-label { display: none; }
.as-tab-icon {
display: inline-block;
font-size: 16px;
line-height: 1;
}
.as-btn-label { display: none; }
/* At 320px the full bar (Back label + centred title + five
actions) overflowed the viewport and pushed "Save avatar"
off-screen entirely. Drop the two redundant labels, tighten
the padding, and everything fits with room to spare. The
title stays in the a11y tree as the page's only h1. */
.as-bar { padding: 10px 12px; gap: 8px; }
.as-back-label { display: none; }
.as-bar-title {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.as-actions { gap: 6px; }
.as-btn { padding: 7px 10px; }
}
/* ── Save overlay ─────────────────────────────────────── */
.as-save-overlay {
position: fixed;
inset: 0;
z-index: 300;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(12px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
}
.as-save-overlay .spin-lg {
width: 40px; height: 40px;
border-radius: 50%;
border: 3px solid rgba(255,255,255,0.12);
border-top-color: var(--accent);
animation: as-spin 0.8s linear infinite;
}
.as-save-label {
font-size: 15px;
font-weight: 500;
color: var(--text);
}
.as-save-sublabel {
font-size: 12px;
color: var(--text-3);
margin-top: -8px;
}
.as-progress-bar {
width: 260px;
height: 4px;
border-radius: 999px;
background: var(--border-2);
overflow: hidden;
}
.as-progress-fill {
height: 100%;
border-radius: 999px;
background: var(--accent);
transition: width var(--duration-base) var(--ease-standard);
width: 0%;
}
/* The Wardrobe tab stacks the closet racks under the layer cards;
both panels ship their own CSS from src/avatar-wardrobe.js and
src/garment-closet.js, this only sets the gap between them. */
.as-closet-mount { margin-top: 18px; }
</style>
<link rel="canonical" href="https://three.ws/avatar-studio">
<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="Avatar Studio — three.ws">
<meta name="twitter:site" content="@trythreews">
<meta name="twitter:title" content="Avatar Studio · three.ws" data-i18n-attr="content:avatar_studio.meta_twitter_title">
<meta name="twitter:description" content="Build a custom 3D avatar from scratch. Choose body type, sculpt face and body, add outfits and accessories. No selfie required." data-i18n-attr="content:avatar_studio.meta_twitter_description">
<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Avatar+Studio&d=Build+a+custom+3D+avatar+from+scratch.+Sculpt+the+face+and+body%2C+dress+it+from+the+closet%2C+add+accessories%2C+and+walk+it+around+the+stage.+No+selfie+required.&p=%2Favatar-studio">
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Avatar Studio","description":"Build a custom 3D avatar from scratch. Choose body type, sculpt face and body, add outfits and accessories. No selfie required.","url":"https://three.ws/avatar-studio","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Avatar+Studio&d=Build+a+custom+3D+avatar+from+scratch.+Choose+body+type%2C+sculpt+face+and+body%2C+add+outfits+and+accessories.+No+selfie+required.&p=%2Favatar-studio"}]}</script>
</head>
<body>
<header class="as-bar">
<a class="as-back" id="as-back" href="/create" aria-label="Back to Create">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>
<span class="as-back-label">Back</span>
</a>
<h1 class="as-bar-title">Avatar Studio</h1>
<div class="as-actions">
<button class="as-btn as-icon-btn" id="as-undo" type="button" title="Undo (Ctrl+Z)" aria-label="Undo" disabled data-i18n-attr="aria-label:avatar_studio.undo_arialabel;title:avatar_studio.undo_ctrl_z_title">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7v6h6"/><path d="M3 13C5.5 7.5 12 5 17 8s6 9 3 13"/></svg>
</button>
<button class="as-btn as-icon-btn" id="as-redo" type="button" title="Redo (Ctrl+Shift+Z)" aria-label="Redo" disabled data-i18n-attr="aria-label:avatar_studio.redo_arialabel;title:avatar_studio.redo_ctrl_shift_z_title">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 7v6h-6"/><path d="M21 13C18.5 7.5 12 5 7 8S1 17 4 21"/></svg>
</button>
<button class="as-btn" id="as-randomize" type="button" title="Randomise look" data-i18n-attr="title:avatar_studio.randomise_look_title">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="margin-right:5px" aria-hidden="true"><polyline points="16 3 21 3 21 8"/><line x1="4" y1="20" x2="21" y2="3"/><polyline points="21 16 21 21 16 21"/><line x1="15" y1="15" x2="21" y2="21"/></svg>
<span class="as-btn-label">Randomise</span>
</button>
<button class="as-btn" id="as-reset" type="button" data-i18n="avatar_studio.reset">Reset</button>
<button class="as-btn" id="as-play" type="button" hidden title="Drop into /play as this avatar" data-i18n="avatar_studio.play_as_this" data-i18n-attr="title:avatar_studio.drop_into_play_as_this_avatar_title">▶ Play as this</button>
<button class="as-btn primary" id="as-save" type="button" data-i18n="avatar_studio.save_avatar">Save avatar</button>
</div>
</header>
<main class="as-shell" id="as-shell">
<div class="as-stage" id="as-stage">
<div class="as-stage-loading" id="as-loading">
<div class="as-skel" aria-hidden="true"></div>
<span data-i18n="avatar_studio.loading_avatar">Loading avatar…</span>
</div>
</div>
<aside class="as-side">
<div class="as-name-row">
<input class="as-name-input" id="as-name" type="text" placeholder="Name your avatar" maxlength="60" autocomplete="off" aria-label="Avatar name" />
</div>
<div class="as-base-switch" id="as-base-switch" role="group" aria-label="Base body">
<span class="as-base-label" data-i18n="avatar_studio.base">Base</span>
<button type="button" class="as-base-btn" data-base="default" aria-pressed="false" data-i18n="avatar_studio.stylized">Stylized</button>
<button type="button" class="as-base-btn" data-base="parametric" aria-pressed="false" data-i18n-html="avatar_studio.parametric_sliders_count">Parametric <span class="as-base-new">300+ sliders</span></button>
</div>
<nav class="as-tabs" id="as-tabs" role="tablist"></nav>
<div class="as-chips" id="as-chips" aria-label="Selected items"></div>
<div class="as-panel" id="as-panel" role="tabpanel" tabindex="0"></div>
<div class="as-status" id="as-status">Choose a style below to get started.</div>
<avatar-actions id="as-actions" mode="wallet" style="display:none;margin-top:12px"></avatar-actions>
<a href="/pricing" class="upgrade-banner" style="margin:12px 16px;text-decoration:none;">
<div class="upgrade-banner-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg></div>
<div class="upgrade-banner-text">
<div class="upgrade-banner-title">Unlock unlimited avatars</div>
<div class="upgrade-banner-desc">Pro gives you unlimited custom avatars, voice cloning, and priority rendering.</div>
</div>
<span class="upgrade-banner-btn" data-i18n="avatar_studio.see_plans">See plans</span>
</a>
</aside>
</main>
<script src="/avatar-actions.js" type="module"></script>
<script src="/src/avatar-studio.js" type="module"></script>
<script src="/brand.js" defer></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>