Why we split a character's original portrait from its 3-view sheet in our AI video pipeline
DEV Community

Why we split a character's original portrait from its 3-view sheet in our AI video pipeline

When building a multi-shot vertical drama studio (disclosure: I work on AlphaDrama, a web studio that orchestrates third-party video models rather than training its own), two recurring bugs kept showing up in finished episodes:

  • Close-up facial drift: even when a character had a clean 3-view turnaround sheet, close-up shots lost facial sharpness compared to the user's original portrait.
  • Unintended lip movement on voiceover shots: a character silently listening during narration would suddenly start moving their lips because dialogue metadata leaked into the motion prompt.

Here is the lightweight structural change we just shipped to address both issues.

Stop overwriting the original portrait with the 3-view turnaround sheet

In an earlier schema, each character stored a single imageUrl. Once we generated a 3-view turnaround sheet (front, side, back), it replaced the original uploaded front portrait.

That creates a subtle resolution trade-off:

  • Wide and turning shots need the 3-view sheet to keep outfit silhouettes, hair length, and side profiles consistent.
  • Close-ups and first-frame locks need high-resolution facial detail, which shrinks to less than a third of the pixels inside a combined 3-view sheet.

Separating them explicitly in the asset contract fixes the conflict:

export interface CharacterVisualAnchor {
  characterId: string;
  originalPortraitUrl?: string; // High-detail front portrait for facial identity
  turnaroundSheetUrl?: string; // Full-body 3-view sheet for outfit & angle continuity
  negativeTraits?: string[]; // Guardrails to filter recurring unwanted artifacts
}

When assembling reference images for a shot, close-ups prioritize originalPortraitUrl first, while full-body shots pair both anchors (within each video model's reference-image budget).

Make voiceover an explicit flag, not a text heuristic

Checking dialogue.length > 0 to decide whether a character is speaking breaks as soon as a script uses narration or internal monologue. If the prompt builder appends speaking cues on a voiceover shot, the video model animates the character's mouth.

We added an explicit isVoiceover toggle at the shot level and stripped auto-generated lip-movement tokens before compiling the final video prompt:

export interface ShotDialogue {
  text: string;
  isVoiceover: boolean;
}

export function buildMotionPrompt(basePrompt: string, dialogue: ShotDialogue): string {
  if (!dialogue.isVoiceover) return basePrompt;
  return basePrompt
    .replace(/\b(speaking|talking|lip[- ]?sync|mouth moving)\b/gi, '')
    .replace(/\s{2,}/g, ' ')
    .trim();
}

Trade-offs and limitations

  • Reference-image budgets: most third-party video models cap how many reference images you can pass per shot. In scenes with 3+ characters, you still need a priority rule (for example, keep both portrait + 3-view for the lead, and portrait-only for background characters).
  • Model randomness still exists: prompt sanitization cuts down accidental lip movement significantly, but doing a quick muted playback pass before final export is still the most reliable QA check.
Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.