Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Make the Live entry prominent and add a button to open the stream view

shinshin860b936c102abf
diff --git a/src/editor/App.tsx b/src/editor/App.tsx
index b08ccb9..02dfd06 100644
--- a/src/editor/App.tsx
+++ b/src/editor/App.tsx
@@ -360,7 +360,7 @@ function Workspace() {
<span className="toolbar-divider" />
<a className="live-link" href={localProject || listedProject || !pickedName ? `/live.html?project=${encodeURIComponent(localProject?.name ?? listedProject?.name ?? 'sample-miko-qipao')}` : undefined}
target="_blank" rel="noreferrer" aria-disabled={!!pickedName && !localProject && !listedProject}
- title={pickedName && !localProject && !listedProject ? liveText[language].liveUnavailable : liveText[language].title}>{liveText[language].title}</a>
+ title={pickedName && !localProject && !listedProject ? liveText[language].liveUnavailable : liveText[language].title}><Icon name="live" />{liveText[language].title}</a>
<button className="icon-button" aria-label={t.help} title={t.help} aria-expanded={help} onClick={() => setHelp(current => !current)}><Icon name="help" /></button>
<div className="language-toggle" role="group" aria-label={t.language}>
<button aria-label={t.english} aria-pressed={language === 'en'} onClick={() => setLanguage('en')}>{t.enCode}</button>
diff --git a/src/editor/Icon.tsx b/src/editor/Icon.tsx
index 0ae3dcc..52901a7 100644
--- a/src/editor/Icon.tsx
+++ b/src/editor/Icon.tsx
@@ -9,6 +9,8 @@ const paths = {
chevron: 'm7 10 5 5 5-5', close: 'm6 6 12 12 M6 18 18 6',
folder: 'M3 7V4h6l2 3h10v13H3V7Z',
copy: 'M8 8h13v13H8V8Z M16 8V3H3v13h5',
+ live: 'M3 7h12v10H3V7Z M15 10l6-3v10l-6-3',
+ external: 'M14 4h6v6 M20 4l-9 9 M18 14v6H4V6h6',
};
export function Icon({ name }: { name: keyof typeof paths }) {
return <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7"
diff --git a/src/editor/style.css b/src/editor/style.css
index 06ba305..3c2e572 100644
--- a/src/editor/style.css
+++ b/src/editor/style.css
@@ -27,8 +27,9 @@ button.primary:hover { color: white; background: #1d4ed8; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.toolbar nav { display: flex; align-items: center; gap: 8px; }
.toolbar-divider { height: 24px; width: 1px; background: var(--line); }
-.live-link { color: var(--accent); text-decoration: none; padding: 6px; white-space: nowrap; }
-.live-link[aria-disabled="true"] { color: var(--muted); cursor: default; }
+.live-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: white; font-weight: 600; text-decoration: none; white-space: nowrap; }
+.live-link:hover { filter: brightness(1.08); }
+.live-link[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; filter: none; }
.language-toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
.language-toggle button { border: 0; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
.language-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
diff --git a/src/live/LiveApp.tsx b/src/live/LiveApp.tsx
index dea177a..789960a 100644
--- a/src/live/LiveApp.tsx
+++ b/src/live/LiveApp.tsx
@@ -89,7 +89,8 @@ export function LiveApp() {
<option value="transparent">{t.transparent}</option><option value="#00ff00">{t.green}</option><option value="#0000ff">{t.blue}</option>{!['transparent', '#00ff00', '#0000ff'].includes(settings.background) && <option value={settings.background}>{t.custom}</option>}
</select><label>{t.custom}<input type="color" value={settings.background === 'transparent' ? '#ffffff' : settings.background} onChange={event => setSettings(current => ({ ...current, background: event.target.value }))} /></label>
<label>{t.fit}<select value={settings.fit} onChange={event => setSettings(current => ({ ...current, fit: event.target.value as 'contain' | 'cover' }))}><option value="contain">{t.contain}</option><option value="cover">{t.cover}</option></select></label>
- <button className="live-primary" onClick={() => { void navigator.clipboard.writeText(url).then(() => setCopyState('copied')).catch(() => setCopyState('copyError')); }}>{t.obs}</button>
+ <div className="live-buttons"><button className="live-primary" onClick={() => { void navigator.clipboard.writeText(url).then(() => setCopyState('copied')).catch(() => setCopyState('copyError')); }}>{t.obs}</button>
+ <a className="live-open" href={url} target="_blank" rel="noreferrer">{t.openStream}</a></div>
{copyState && <p role="status">{t[copyState]}</p>}<input className="obs-url" aria-label={t.obs} readOnly value={url} onFocus={event => event.target.select()} /><small>{t.obsHelp}</small>
</section><p className="live-privacy">{t.privacy}</p>
</aside></div>
diff --git a/src/live/i18n.ts b/src/live/i18n.ts
index 70e08ee..2dd3d6d 100644
--- a/src/live/i18n.ts
+++ b/src/live/i18n.ts
@@ -5,7 +5,7 @@ export const liveEn = {
mirror: 'Mirror', sensitivity: 'Sensitivity', smoothing: 'Smoothing', cameraPreview: 'Show camera preview',
microphone: 'Microphone lip sync', gain: 'Microphone gain', privacy: 'Camera video and microphone audio stay on this machine. Only avatar motion values are shared with the stream view.',
background: 'Background', transparent: 'Transparent', green: 'Green', blue: 'Blue', custom: 'Custom color',
- fit: 'Framing', contain: 'Fit whole avatar', cover: 'Fill frame', obs: 'Copy OBS URL', copied: 'URL copied', copyError: 'Could not copy. Select and copy the URL below.',
+ fit: 'Framing', contain: 'Fit whole avatar', cover: 'Fill frame', obs: 'Copy OBS URL', openStream: 'Open stream view in a new tab', copied: 'URL copied', copyError: 'Could not copy. Select and copy the URL below.',
obsHelp: 'Keep this page open. Add the URL as a Browser Source in OBS, for example at 1080 × 1080.',
loading: 'Loading avatar…', ready: 'Avatar ready', projectError: 'Could not load this project. Open a readable local project in the editor first.',
stopped: 'Camera stopped', starting: 'Starting camera…', running: 'Camera ready', tracking: 'Tracking face', lost: 'Face lost · returning to idle',
@@ -25,7 +25,7 @@ const liveJa: typeof liveEn = {
mirror: '左右反転', sensitivity: '感度', smoothing: '動きをなめらかにする', cameraPreview: 'カメラ映像を表示',
microphone: 'マイクで口を動かす', gain: 'マイクの感度', privacy: 'カメラ映像とマイクの音声は、この端末内で処理します。配信用画面に渡すのはアバターの動きの数値だけです。',
background: '背景', transparent: '透明', green: '緑', blue: '青', custom: '指定した色',
- fit: '画面への収め方', contain: '全体を表示', cover: '画面を埋める', obs: 'OBS用URLをコピー', copied: 'URLをコピーしました', copyError: 'コピーできませんでした。下のURLを選択してコピーしてください。',
+ fit: '画面への収め方', contain: '全体を表示', cover: '画面を埋める', obs: 'OBS用URLをコピー', openStream: 'OBS用の画面を別タブで開く', copied: 'URLをコピーしました', copyError: 'コピーできませんでした。下のURLを選択してコピーしてください。',
obsHelp: 'この画面を開いたまま、OBSの「ブラウザ」ソースにURLを追加してください。サイズは1080 × 1080などに設定します。',
loading: 'アバターを読み込み中…', ready: 'アバターの準備完了', projectError: 'プロジェクトを読み込めませんでした。エディタの一覧から、読み取り可能なローカルプロジェクトを開いてください。',
stopped: 'カメラ停止中', starting: 'カメラを開始中…', running: 'カメラの準備完了', tracking: '顔を追跡中', lost: '顔が見つかりません・待機動作に戻ります',
@@ -45,7 +45,7 @@ const liveZh: typeof liveEn = {
mirror: '镜像', sensitivity: '灵敏度', smoothing: '动作平滑度', cameraPreview: '显示摄像头画面',
microphone: '麦克风口型同步', gain: '麦克风增益', privacy: '摄像头画面和麦克风音频仅在本机处理。直播画面只接收虚拟形象的动作数值。',
background: '背景', transparent: '透明', green: '绿色', blue: '蓝色', custom: '自定义颜色',
- fit: '画面适配', contain: '显示完整形象', cover: '填满画面', obs: '复制OBS地址', copied: '地址已复制', copyError: '复制失败。请选中并复制下方地址。',
+ fit: '画面适配', contain: '显示完整形象', cover: '填满画面', obs: '复制OBS地址', openStream: '在新标签页打开OBS画面', copied: '地址已复制', copyError: '复制失败。请选中并复制下方地址。',
obsHelp: '保持此页面打开,在OBS中添加“浏览器”来源并粘贴地址,例如将尺寸设为1080 × 1080。',
loading: '正在加载形象…', ready: '形象已就绪', projectError: '无法加载项目。请先从编辑器的列表中打开可读取的本地项目。',
stopped: '摄像头已停止', starting: '正在启动摄像头…', running: '摄像头已就绪', tracking: '正在追踪面部', lost: '未检测到面部,正在恢复待机动作',
diff --git a/src/live/live.css b/src/live/live.css
index f2ed276..0d23355 100644
--- a/src/live/live.css
+++ b/src/live/live.css
@@ -28,6 +28,7 @@ input[type="range"] { width: 100%; accent-color: #3977d8; }
input[type="color"] { width: 100%; height: 32px; border: 0; padding: 0; }
.live-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.live-primary { background: #2d67b2; color: white; border-color: #2d67b2; }
+.live-open { display: inline-block; border: 1px solid #2d67b2; border-radius: 7px; padding: 8px 10px; color: #2d67b2; text-decoration: none; }
.camera-preview { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; background: #162132; }
.camera-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.obs-url { font-size: 11px; margin: 10px 0; }