Live2D Creator Pipeline (2D Illustration → Commercial & v3.0 Ultimate Live2D)
This skill encodes two proven, end-to-end production tiers for turning any 2D anime character illustration into a ready-to-stream VTube Studio (Standard + VBridger ARKit) & Live2D animation package:
- Tier 1 — Fast Commercial Baseline (
v1.4, one-command): Symmetrical half-body front portrait → remote RTX 5090See-through21-layer decomposition → single-arm 3-segment articulated wave with outlined elbows + half-angle fold patch + peak-velocity palm swap + petite "丁香小舌" tongue-out + BanG-Dream-benchmarked motions & full multi-format exports viarun_pipeline.py. - Tier 2 — 40k-RMB Showcase Ultimate (
v3.0 Ultimate, 157 params / 56 physics): Retains 100% of Tier 1 and upgrades to flagship commercial fidelity:- Silky Multi-Strand Hair (13 strands) + Alternate Silky Twin-Tails (
parallel=0.03–0.15, staggered delays & lift). - Top-Tier Eyes & Micro-Expressions: 2D highlight jelly physics, 5 toggleable FX eye modes (Normal / Starry / Heart / Dark Yandere / Spiral Dizzy), real modifier-safe cheek puff, and built-in ambient particles (Hearts / Sparkle Stars / Anime Anger Vein).
- Full Alternate Outfit with 2-Layer Collar/Neck Split: Back collar + collarbone fill (
draw_order=45) strictly behindl05_neck (70), front collar flaps (125) strictly in front, plus dual-outfit articulated sleeves. - Real-Photo-Guided Hands & Non-Linear 4-Layer Handheld Props: Dual 3-segment arms (
ArmRA/RB/WristR,ArmLA/LB/WristL), 7 hand gestures, and true 4-layer occlusion (hand_grip_back < sleeve_cuff < prop < hand_grip_front) with unclipped circumscribed-radius pivot rotation. - Bulletproof Shoulder Lock & Multi-Joint Cervical Neck: Pure canvas-pixel
RotationDeformer1:1 measured shoulder-tracking chain (0.00pxdrift &0.00pxforearm dislocation) + 2-segment curved cervical neck spine (swing_putbottom-pinned) +DeformFaceContour-parented 9-axis chin-castMultiplyneck shadow.
- Silky Multi-Strand Hair (13 strands) + Alternate Silky Twin-Tails (
Project Directory Convention
Create a dedicated folder per character under projects/<character_slug>/:
projects/<character_slug>/
├── 00_ref/ # Original user-provided character reference art & real hand photos
├── 01_portrait/ # Symmetrical front half-body portrait + open-mouth RGBA (+ alt outfit/hair)
├── 02_layers/ # See-through 21-layer decomposed PSD(s) from RTX 5090
├── 03_layout/ # Tier 1 psd2live-layout JSON + parts + arm_joints.json + debug QA
├── 03_layout_v3_0/ # (Tier 2) Multi-strand hair, alt outfit/hair, 4-layer hands/props, FX parts
├── 04_model/ # Tier 1 <slug>.psd2live + qa_renders/ + exports/
└── 10_model_v3_0/ # (Tier 2) v3.0 Ultimate <slug>.psd2live + qa_renders/ + exports/
Tier 1: Fast Commercial Baseline (v1.4 One-Command Pipeline)
Stage 1: Front Portrait & Open-Mouth RGBA Preparation
- Generate a symmetrical, front-facing half-body portrait on pure white (
#FFFFFF) usingimage-generatorand the prompt template in prompts.md. - STOP & get user approval on the front portrait before continuing.
- Generate a pixel-aligned open-mouth variant (see prompts.md) so
See-throughproduces a complete open mouth layer for 3-layer splitting + tongue-out. - Mat to clean transparent RGBA and visually inspect the checkerboard preview via
read_file:python3 .agents/skills/live2d-creator/scripts/step1_remove_bg.py \ projects/<slug>/01_portrait/portrait_open_mouth.jpg \ projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \ --preview projects/<slug>/01_portrait/matting_qa.png- Check: Exterior & hair-gap pockets are cleanly green-checkerboarded; white clothes, eyewhites, and teeth remain 100% opaque.
Stage 2: Remote GPU See-through Layer Decomposition
Run the remote GPU decomposition wrapper (uploads RGBA → runs See-through at 1280 with
--save_to_psd --tblr_split on $LIVE2D_GPU_HOST configured in .env → pulls .psd locally):
bash .agents/skills/live2d-creator/scripts/step2_seethrough_remote.sh \
projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \
projects/<slug>/02_layers \
1280
- Verify: Confirm
projects/<slug>/02_layers/*.psdexists and is non-empty (~5–15 MB).
Stage 3 & Stage 4: One-Command Commercial Layout, Rigging & Export
Run run_pipeline.py (executes step3_build_layout.py → auto-starts
headless psd2live MCP --profile full on port 23871 → runs step4_rig_and_export.py →
automatically terminates MCP server in finally:):
python3 .agents/skills/live2d-creator/scripts/run_pipeline.py \
--psd projects/<slug>/02_layers/portrait_open_mouth_rgba.psd \
--ref projects/<slug>/01_portrait/portrait_open_mouth_rgba.png \
--name <slug> \
--project-dir projects/<slug>
Optional flags:
--no-ribbon,--joints-override joints.json,--skip-exports.
Tier 2: Upgrading to v3.0 Ultimate (40k-RMB Showcase Workflow)
Before editing or rigging any Tier 2 assets, read both hands_props_layering_and_neck_guide.md and psd2live_mcp_gotchas.md.
Step A: Generate Pixel-Aligned Alternate Assets & Real-Photo-Guided Hands
- Second Outfit & Alternate Hairstyle: Generate sub-pixel aligned variants referencing the
approved front portrait (templates in prompts.md), matte with
step1_remove_bg.py, and runstep2_seethrough_remote.shon each to extract cleantopwear,skirt,left/right_arm, andback_hair/twin_tailparts. - Real-Photo-Guided Handheld Props & Hands:
- Never use procedural ovals for gripping hands. Capture or source a real hand photo matching the raised arm's exact forearm entry angle (Right hand = forearm from bottom-right; Left hand = forearm from bottom-left).
- Generate bare-wrist anime hand + prop on flat
#FFFFFFusing the real-photo prompt templates in prompts.md.
Step B: Prepare 4-Layer Hands/Props, 2-Layer Collar Split & Dynamic Neck Shadow
Use the reusable utilities in v3_hand_prop_4layer_splitter.py:
- 4-Layer Handheld Split (
split_shaft_prop_hand_4layer/split_cup_prop_hand_4layer):- Splits each hand+prop image into
hand_grip_back(wrist + rear palm),prop(complete prop with shaft cleanly inpainted behind fingers), andhand_grip_front(ONLY thumb + 4 curled fingers with soft upper-palm feather strictly above the sleeve cuff). - Always place rest-pose rotated parts with
place_part_unclipped()(circumscribed max-corner radiusR = ceil(2 * max_r) + 48, never clamping rest-pose hanging props to[0, 1280]). - For extended-finger procedural hands (e.g., Peace Sign), use
LW >= 320so fingertips never clip.
- Splits each hand+prop image into
- 2-Layer Shirt Collar Split (
split_outfit_collar_back_front):- Extracts shaded back-collar + paints warm collarbone skin behind lower V-placket into
outfit_b_collar_back.png, and clears the neck hole inoutfit_b_topwear.pngtoalpha = 0.
- Extracts shaded back-collar + paints warm collarbone skin behind lower V-placket into
- Dynamic Chin-Cast Neck Shadow (
generate_dynamic_neck_shadow):- Generates soft V-curved warm rose-plum
fx_neck_shadow.pngforMultiplyclipping ontol05_neck.
- Generates soft V-curved warm rose-plum
Step C: Full v3.0 Ultimate MCP Rigging & Export
Adapt v3_ultimate_reference_rig.py for the character's
layout directory and coordinates, ensuring these 6 non-negotiable engineering invariants:
- Enforce
layer_draw_order(NOTrig_edit_structure) after ALL modifiers, and assert zero ties:outfit_b_collar_back (45) < l05_neck (70) < fx_neck_shadow (72) < outfit_b_topwear (125) < l11_face (130)- Right arm 4-layer stack:
hand_grip_r_back (416) < forearm_r_cuff (420–423) < prop_mic (426) < hand_grip_r_front (430) - Left arm 4-layer stack:
hand_grip_l_back (446) < forearm_l_cuff (450–453) < prop_boba (456) < hand_grip_l_front (460)
- Pure Canvas-Pixel 1:1 Shoulder-Tracking Chain:
- NEVER move
RotationDeformers insideDeformBodyZBreath([0..1]WarpDeformerteleports child forearms+530px!) and NEVER put torso-onlyswing_puton topwear without arms. - Keep
DeformShoulderR/LBodyXY → DeformShoulderR/LBodyZ → DeformArmR/LUpper → Fore → Wristat canvas root, driven by 1:1 template-matched shoulder(dx, dy)shifts acrossBodyAngleX/Y/Z&Breath.
- NEVER move
- Multi-Joint Cervical Neck Spine:
- Add bottom-pinned 2-segment
swing_put(fulcrum="bottom", preset="hair", parallel=0.14, delay=0.60)onl05_neck, parentfx_neck_shadowdirectly toDeformFaceContour(masked_by=[ArtMeshNeck],Multiply), and lagParamBodyAngleX/Y/Zbehind head angles by0.12–0.15swith overshoot.
- Add bottom-pinned 2-segment
- Silky Hair / Twin-Tails
parallelOverride:- Always pass explicit
parallel=0.03–0.15inswing_put(default0.70makes hair rigid!).
- Always pass explicit
- Re-Query
back_hair_parentAfter Disablingm7:- Disabling
m7removes its deformer chain; queryl00_1_back_hair_center'sparentIdafterward before binding alternate hair / twin-tails.
- Disabling
- Hide Cross-Outfit Patches via Rigid Off-Canvas
translate=[0.0, 60.0]:- Never use
scale=[0.001, 0.001](GEOMETRY_NEW_DEGENERATE) or duplicate opacity BlendShapes.
- Never use
Mandatory Visual QA Checklist (Direct-from-MP4 + Pose Sheets)
Before presenting ANY deliverable to the user, inspect ALL of the following via read_file:
Tier 1 (v1.4) Checks
03_layout/debug/elbow_bend_check.png— crisp continuous outer sleeve outline at 120° bend on white bg.04_model/qa_renders/qa_01_wave_and_poses.png— rest pose (zero elbow seam), raised open-palm wave, wrist lag, Dingxiang tongue.04_model/qa_renders/contact_preview_wave_big.png,contact_preview_tongue.png,contact_preview_blink.png— hand stays 100% in frame, ghost-free 4-frame hand swap, clean asymmetric blink.
Tier 2 (v3.0 Ultimate) Additional Mandatory Direct-from-MP4 Checks
CRITICAL:
view_render_posesand exported.mp4/.moc3can tie-break equaldraw_ordervalues differently, and zoomed shoulder crops alone can miss full-body arm dislocations!
- Full-body
qa_01pose sheet AND full-body 20-frame contact sheet extracted directly fromShowcaseV3_PhaseC.mp4— verify shoulders, elbows, forearms, wrists, and hands stay 100% connected across every single frame in BOTH outfits! - Zoomed crops extracted directly from exported
.mp4:- Collar + Neck + Chin Shadow (
Outfit B) — verify bare skin neck rises cleanly from behind white front collar flaps, with soft dark inner back-collar behind the neck. - Right Mic Grip + Cuff, Right Peace Sign, and Left Boba Cup + Cuff — verify true
4-layer occlusion (
wrist < cuff < prop < fingers) and zero clipping on Peace fingertips, Boba dome lid, and straw tip! - 6 consecutive Twin-Tail swing frames — verify fluid S-curve tip whip (never rigid sticks!).
- Collar + Neck + Chin Shadow (
NeckFluidityV3full-body + closeup MP4 frames — verify curved cervical neck flex, gliding 9-axis chin shadow, and head-leads-body S-curve lag.
Deep Technical References & Reusable Scripts
References
- hands_props_layering_and_neck_guide.md — Read first for Tier 2: 4-layer handheld occlusion stack, real-photo hand prep & unclipped pivot math, 2-layer collar split, pure-rotation 1:1 shoulder lock, multi-joint cervical spine,
parallelhair physics trap, and direct-from-MP4 QA. - psd2live_mcp_gotchas.md — 11 verified
psd2liveMCP rules (layer_draw_ordervsrig_edit_structure, noRotationDeformerinsideWarpDeformer,m7parent re-query, off-canvas[0, 60]hide trick,swing_putlowercase enums ¶llel,keyform_apply,modifier_add(type="motion")). - commercial_benchmarks.md — BanG Dream! 2023 & v3.0 Ultimate 40k-RMB showcase parameter, physics, timing, and calibration benchmarks.
- prompts.md — Battle-tested prompt templates for front portrait, open-mouth, sub-pixel aligned alternate outfit/hairstyle, and real-photo-guided bare anime hands + props.
Scripts
- Tier 1 (v1.4 Baseline):
run_pipeline.py,step1_remove_bg.py,step2_seethrough_remote.sh,step3_build_layout.py,step4_rig_and_export.py,hand_generator.py,pipeline_config.py. - Tier 2 (v3.0 Ultimate):
v3_hand_prop_4layer_splitter.py— Reusable 4-layer handheld prop splitter, unclipped pivot-centered rotation placer, 2-layer collar splitter, and dynamic chin-cast neck shadow generator.v3_ultimate_reference_rig.py— Full production-verified 157-parameter / 56-physicsv3.0 UltimateMCP rigging & export reference script.