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.

19.0 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="video_to_motion.meta_title">Video to Motion: Turn Any Video into an Animation File · three.ws</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="Upload a video of a person and download the motion as a GLB, BVH, or FBX animation file. Preview it on a default avatar or your own rig, trim it, and save it to your animation library." data-i18n-attr="content:video_to_motion.meta_description" />
		<meta name="theme-color" content="#000000" />
		<link rel="canonical" href="https://three.ws/video-to-motion" />

		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:title" content="Video to Motion: Turn Any Video into an Animation File · three.ws" data-i18n-attr="content:video_to_motion.meta_og_title" />
		<meta property="og:description" content="Turn any video into a downloadable animation file: GLB, BVH, or FBX. Preview on any rigged avatar, trim it, save it to your library." data-i18n-attr="content:video_to_motion.meta_og_description" />
		<meta property="og:url" content="https://three.ws/video-to-motion" />
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Video+to+Motion%3A+Turn+Any+Video+into+an+Animation+File&amp;d=Upload+a+video+of+a+person+and+download+the+motion+as+a+GLB%2C+BVH%2C+or+FBX+animation+file&amp;p=%2Fvideo-to-motion" />
		<meta name="twitter:card" content="summary_large_image" />
		<meta name="twitter:site" content="@trythreews" />
		<meta name="twitter:title" content="Video to Motion: Turn Any Video into an Animation File · three.ws" data-i18n-attr="content:video_to_motion.meta_twitter_title" />
		<meta name="twitter:description" content="Turn any video into a downloadable animation file: GLB, BVH, or FBX. Preview on any rigged avatar, trim it, save it to your library." data-i18n-attr="content:video_to_motion.meta_twitter_description" />
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Video+to+Motion%3A+Turn+Any+Video+into+an+Animation+File&amp;d=Upload+a+video+of+a+person+and+download+the+motion+as+a+GLB%2C+BVH%2C+or+FBX+animation+file&amp;p=%2Fvideo-to-motion" />

		<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>
			.vtm-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;
			}
			.vtm-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 72px; }
			.vtm-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;
			}
			.vtm-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a2; }
			.vtm-head h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 12px; letter-spacing: -0.02em; }
			.vtm-head p { max-width: 680px; color: var(--text-2, #b4b4b4); line-height: 1.6; margin: 0 0 28px; }
			.vtm-head a { color: var(--text, #f6f6f6); }

			.vtm-stage {
				position: relative; border: 1px solid var(--hairline, #1f1f1f);
				border-radius: 14px; background: var(--surface-0, #0b0b0b); overflow: hidden;
			}
			#vtm-canvas-wrap { width: 100%; min-height: 320px; display: flex; justify-content: center; }
			#vtm-canvas { max-width: 100%; height: auto; display: block; }

			.vtm-overlay {
				position: absolute; inset: 0; display: flex; flex-direction: column;
				align-items: center; justify-content: center; text-align: center;
				padding: 32px; gap: 10px; background: var(--surface-0, #0b0b0b);
			}
			.vtm-overlay[hidden] { display: none; }
			.vtm-overlay h3 { margin: 0; font-size: 18px; }
			.vtm-overlay p { margin: 0; color: var(--text-2, #b4b4b4); max-width: 460px; line-height: 1.55; font-size: 14px; }

			.vtm-dropzone {
				border: 1.5px dashed var(--hairline-2, #2c2c2c); border-radius: 12px;
				padding: 42px 32px; cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast);
				display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(520px, 90%);
			}
			.vtm-dropzone:hover, .vtm-dropzone:focus-visible, .vtm-dropzone.is-drag {
				border-color: var(--text-2, #b4b4b4); background: var(--surface-1, #121212); outline: none;
			}
			.vtm-glyph {
				width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
				background: var(--surface-1, #161616); border: 1px solid var(--hairline, #1f1f1f);
			}
			.vtm-spinner {
				width: 26px; height: 26px; border-radius: 50%;
				border: 2.5px solid var(--hairline-2, #2c2c2c); border-top-color: var(--text, #f6f6f6);
				animation: vtm-spin 0.9s linear infinite;
			}
			@keyframes vtm-spin { to { transform: rotate(360deg); } }
			.vtm-progress {
				width: min(320px, 90%); height: 4px; border-radius: 2px; background: var(--surface-1, #161616);
				overflow: hidden; margin-top: 4px;
			}
			.vtm-progress > span { display: block; height: 100%; background: #6ee7a2; width: 0%; transition: width var(--duration-base) var(--ease-standard); }

			.vtm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 26px; }
			@media (max-width: 900px) { .vtm-layout { grid-template-columns: 1fr; } }

			.vtm-card {
				border: 1px solid var(--hairline, #1f1f1f); border-radius: 12px;
				background: var(--surface-0, #0d0d0d); padding: 18px;
			}
			.vtm-card + .vtm-card { margin-top: 16px; }
			.vtm-card h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2, #b4b4b4); }
			.vtm-note { color: var(--text-2, #b4b4b4); font-size: 13.5px; line-height: 1.6; margin: 0; }
			.vtm-note + .vtm-note { margin-top: 8px; }
			.vtm-note code { font-size: 12px; }

			.vtm-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--hairline, #1f1f1f); }
			.vtm-trim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--hairline, #1f1f1f); font-size: 12.5px; color: var(--text-2, #b4b4b4); }
			.vtm-trim input[type='range'] { flex: 1; min-width: 120px; accent-color: #6ee7a2; }
			.vtm-trim output { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

			.vtm-btn {
				appearance: none; border: 1px solid var(--hairline-2, #2c2c2c); border-radius: 8px;
				background: var(--surface-1, #151515); color: var(--text, #f6f6f6);
				padding: 8px 14px; font-size: 13px; cursor: pointer;
				transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-instant);
			}
			.vtm-btn:hover { background: var(--surface-2, #1d1d1d); border-color: var(--text-3, #555); }
			.vtm-btn:active { transform: translateY(1px); }
			.vtm-btn:focus-visible { outline: 2px solid var(--text-2, #b4b4b4); outline-offset: 1px; }
			.vtm-btn[disabled] { opacity: 0.55; cursor: default; }
			.vtm-btn--primary { background: var(--text, #f6f6f6); color: var(--bg, #060606); border-color: var(--text, #f6f6f6); font-weight: 600; }
			.vtm-btn--primary:hover { background: #dcdcdc; }

			#vtm-avatars { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
			.vtm-avatar-chip {
				appearance: none; border: 1px solid var(--hairline-2, #2c2c2c); border-radius: 18px;
				background: var(--surface-1, #141414); color: var(--text-2, #b4b4b4);
				padding: 6px 13px; font-size: 12.5px; cursor: pointer; transition: all var(--duration-fast);
			}
			.vtm-avatar-chip:hover { color: var(--text, #f6f6f6); border-color: var(--text-3, #555); }
			.vtm-avatar-chip[aria-pressed='true'] { background: var(--text, #f6f6f6); color: var(--bg, #060606); border-color: var(--text, #f6f6f6); font-weight: 600; }
			.vtm-url-row { display: flex; gap: 7px; }
			.vtm-url-row input {
				flex: 1; min-width: 0; background: var(--surface-1, #121212); color: var(--text, #f6f6f6);
				border: 1px solid var(--hairline-2, #2c2c2c); border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
			}
			.vtm-url-row input:focus { outline: none; border-color: var(--text-3, #555); }

			.vtm-export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
			@media (max-width: 420px) { .vtm-export-grid { grid-template-columns: 1fr; } }
			.vtm-export-grid .vtm-btn { width: 100%; }

			.vtm-save-row { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
			.vtm-save-row select { background: var(--surface-1, #121212); color: var(--text, #f6f6f6); border: 1px solid var(--hairline-2, #2c2c2c); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }

			#vtm-status { margin-top: 12px; font-size: 13.5px; color: var(--text-2, #b4b4b4); }
			#vtm-status[data-kind='error'] { color: #ff7a7a; }
			#vtm-status[data-kind='success'] { color: #6ee7a2; }
			#vtm-status[hidden] { display: none; }

			.vtm-related { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-2, #b4b4b4); }
			.vtm-related a { color: var(--text, #f6f6f6); border: 1px solid var(--hairline, #1f1f1f); border-radius: 8px; padding: 6px 12px; text-decoration: none; }
			.vtm-related a:hover { border-color: var(--text-3, #555); }
		</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="Video to Motion: Turn Any Video into an Animation File, three.ws">
		<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Video to Motion: Turn Any Video into an Animation File","description":"Upload a video of a person and download the motion as a GLB, BVH, or FBX animation file. Preview it on a default avatar or your own rig, trim it, and save it to your animation library.","url":"https://three.ws/video-to-motion","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Video+to+Motion%3A+Turn+Any+Video+into+an+Animation+File&d=Upload+a+video+of+a+person+and+download+the+motion+as+a+GLB%2C+BVH%2C+or+FBX+animation+file&p=%2Fvideo-to-motion"}]}</script>
	</head>
	<body>
		<div class="vtm-page">
			<div id="nav-container"></div>
			<script type="module" src="/nav.js"></script>

			<div class="vtm-wrap">
				<div class="vtm-head">
					<span class="vtm-chip" data-i18n-html="video_to_motion.video_motion_capture_export"><span class="vtm-chip-dot"></span> Video motion capture, animation export</span>
					<h1 data-i18n="video_to_motion.turn_any_video_into_an_animation_file">Turn any video into an animation file.</h1>
					<p data-i18n-html="video_to_motion.upload_a_video_of_someone_moving_get">
						Upload a video of someone moving and get the motion itself back: a GLB, a BVH, and an
						FBX if the shape of your clip supports it. Preview it on a default avatar or drop in
						your own rig, trim the clip, and download the files. Signed-in users can also save a
						clip straight to their <a href="/animations">animation library</a> and apply it to an agent.
					</p>
				</div>

				<div class="vtm-layout">
					<div>
						<div class="vtm-stage">
							<div id="vtm-canvas-wrap"><canvas id="vtm-canvas" width="960" height="540" aria-label="Avatar motion preview"></canvas></div>

							<div class="vtm-overlay" id="vtm-stage-empty">
								<div class="vtm-dropzone" id="vtm-drop" role="button" tabindex="0" aria-label="Upload a video">
									<div class="vtm-glyph">
										<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="m22 8-6 4 6 4V8Z"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>
									</div>
									<h3 data-i18n="video_to_motion.drop_a_video_of_one_person">Drop a video of one person</h3>
									<p data-i18n="video_to_motion.mp4_mov_or_webm_up_to_256">MP4, MOV, or WebM up to 256 MB. The first 90 seconds are processed. Full body in frame tracks best.</p>
								</div>
								<input id="vtm-file" type="file" accept="video/mp4,video/quicktime,video/webm" hidden />
							</div>

							<div class="vtm-overlay" id="vtm-stage-processing" hidden>
								<div class="vtm-spinner" role="status" aria-label="Processing"></div>
								<h3 id="vtm-processing-title" data-i18n="video_to_motion.capturing_your_motion">Capturing the motion</h3>
								<p id="vtm-processing-note" class="vtm-note" data-i18n="video_to_motion.tracking_pose_frame_by_frame">Tracking pose frame-by-frame. A 30-second clip takes about two minutes.</p>
								<div class="vtm-progress"><span id="vtm-progress-bar"></span></div>
							</div>

							<div class="vtm-overlay" id="vtm-stage-failed" hidden>
								<h3 data-i18n="video_to_motion.that_capture_failed">That capture failed</h3>
								<p id="vtm-fail-reason" class="vtm-note">Make sure one person is clearly visible and well lit.</p>
								<button class="vtm-btn vtm-btn--primary" id="vtm-retry" type="button" data-i18n="video_to_motion.try_again">Try again</button>
							</div>

							<div class="vtm-overlay" id="vtm-stage-limit" hidden>
								<h3 data-i18n="video_to_motion.limit_reached">Capture limit reached</h3>
								<p class="vtm-note" data-i18n="video_to_motion.too_many_captures_from_this_connection">Too many captures from this connection recently. Wait a bit and try again.</p>
							</div>

							<div id="vtm-stage-ready" hidden></div>

							<div class="vtm-controls">
								<button class="vtm-btn" id="vtm-play" type="button" data-i18n="video_to_motion.play_pause">Play / Pause</button>
								<button class="vtm-btn" id="vtm-restart" type="button" data-i18n="video_to_motion.restart">Restart</button>
								<button class="vtm-btn" id="vtm-new" type="button" data-i18n="video_to_motion.new_video">New video</button>
							</div>
							<div class="vtm-trim" id="vtm-trim-row" hidden>
								<span data-i18n="video_to_motion.trim">Trim</span>
								<input id="vtm-trim-start" type="range" min="0" max="1" step="0.01" value="0" aria-label="Trim start" />
								<output id="vtm-trim-start-out">0.0s</output>
								<input id="vtm-trim-end" type="range" min="0" max="1" step="0.01" value="1" aria-label="Trim end" />
								<output id="vtm-trim-end-out">0.0s</output>
							</div>
						</div>
						<p id="vtm-status" hidden></p>
						<video id="vtm-video" playsinline hidden></video>
					</div>

					<aside>
						<div class="vtm-card">
							<h2 data-i18n="video_to_motion.avatar">Avatar</h2>
							<div id="vtm-avatars"></div>
							<div class="vtm-url-row">
								<input id="vtm-avatar-url" type="url" placeholder="…or paste a rigged GLB URL" aria-label="Avatar GLB URL" />
								<button class="vtm-btn" id="vtm-avatar-url-go" type="button" data-i18n="video_to_motion.load">Load</button>
							</div>
							<div class="vtm-url-row" style="margin-top: 7px">
								<input id="vtm-avatar-file" type="file" accept=".glb,model/gltf-binary" aria-label="Upload a rigged GLB" />
							</div>
							<p class="vtm-note" style="margin-top: 10px" data-i18n-html="video_to_motion.any_rigged_humanoid_glb_works">
								Any rigged humanoid GLB works, including rigs from other platforms: Mixamo,
								Avaturn, VRM/VRoid, Daz, MakeHuman, or one you <a href="/create">generated here</a>.
							</p>
						</div>

						<div class="vtm-card">
							<h2 data-i18n="video_to_motion.download">Download</h2>
							<div class="vtm-export-grid">
								<button class="vtm-btn" id="vtm-export-glb" type="button" disabled>GLB</button>
								<button class="vtm-btn" id="vtm-export-bvh" type="button" disabled>BVH</button>
								<button class="vtm-btn" id="vtm-export-fbx" type="button" disabled>FBX</button>
							</div>
							<p class="vtm-note" style="margin-top: 10px" data-i18n="video_to_motion.glb_carries_the_clip_on_your_chosen">
								GLB carries the clip on your chosen avatar. BVH carries the clip on the platform's
								own skeleton proportions, the standard format for re-retargeting in a DCC tool.
								FBX is a server-side conversion (Blender) that preserves the rig; it can take
								up to a minute.
							</p>
						</div>

						<div class="vtm-card">
							<h2 data-i18n="video_to_motion.save_to_library">Save to library</h2>
							<div id="vtm-save-signed-out">
								<p class="vtm-note" data-i18n-html="video_to_motion.sign_in_to_save_this_clip">
									<a href="/login">Sign in</a> to save this clip to your animation library and apply
									it to one of your agents.
								</p>
							</div>
							<div id="vtm-save-signed-in" hidden>
								<div class="vtm-save-row">
									<select id="vtm-save-agent" aria-label="Agent to attach this clip to"></select>
									<button class="vtm-btn vtm-btn--primary" id="vtm-save-go" type="button" data-i18n="video_to_motion.save_clip">Save clip</button>
								</div>
							</div>
						</div>

						<div class="vtm-card">
							<h2 data-i18n="video_to_motion.how_it_works">How it works</h2>
							<p class="vtm-note" data-i18n="video_to_motion.a_server_worker_tracks_pose_every">
								A server worker tracks pose in every frame and solves it onto the platform's
								canonical skeleton, the same retarget engine that drives every avatar animation
								here, including hands.
							</p>
							<p class="vtm-note" data-i18n="video_to_motion.the_clip_retargets_onto_whichever_rig">
								The clip retargets onto whichever rig you preview it on, right in your browser.
								Trim it, then export; nothing is uploaded except the video itself and, for FBX
								only, the chosen avatar's mesh for conversion.
							</p>
						</div>
					</aside>
				</div>

				<div class="vtm-related">
					<a href="/motion-swap" data-i18n="video_to_motion.related_motion_swap">Want a composited video instead? Try Motion Swap →</a>
					<a href="/animations" data-i18n="video_to_motion.related_animations">Browse the animation library →</a>
					<a href="/mocap-studio" data-i18n="video_to_motion.related_mocap_studio">Face mocap? Try Mocap Studio →</a>
				</div>
			</div>

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

		<script type="module" src="/src/video-to-motion.js"></script>
		<script type="module" src="/i18n.js"></script>
	</body>
</html>