4-Step AI VFX Workflow for Full Environment Replacement Preserving Camera Motion
A step-by-step AI VFX pipeline by creator seungho__yeo that replaces an urban street with a fantasy kingdom while keeping original camera movement, actors, and
Visual creator seungho__yeo (Instagram: @seungho__yeo) has demonstrated a production-ready four-step AI VFX workflow that transforms a live-action shot filmed on a modern city street into a cinematic fantasy coastal kingdom, keeping the camera's original motion path and actor performance completely intact. Curated and shared by ComfyUI on September 11, 2026, this pipeline provides a practical blueprint for tackling two of the most persistent issues in generative video workflows: camera trajectory distortion and actor identity warping.

Image source: @ComfyUI / seungho__yeo via X
The Core Challenge of Full Environment Replacement and the Layer Separation Model
In traditional visual effects (VFX) pipelines, replacing a live-action background with a completely synthetic digital matte painting or 3D environment demands extensive 3D camera matchmoving, meticulous rotoscoping, and carefully balanced green screen lighting. While recent generative video foundation models produce impressive standalone visuals from text prompts, attempting to replace only the background of pre-existing live-action footage often ruins the shot: facial features morph unpredictably, and organic camera pans, tilts, or handheld motions are flattened or redrawn.
Rather than running the entire composition through an all-in-one AI video generator, seungho__yeo's methodology adopts the fundamental principle of professional digital compositing: strict layer isolation and modular control. By locking the original camera vectors and actor performance as the primary base layer, the workflow isolates asset generation, segmentation tracking, spatial relighting, and edge inpainting into distinct sequential operations. This architectural discipline produces full environment replacement that meets commercial cinematic standards.
The 4-Step Practical AI VFX Environment Replacement Workflow
The demonstrated shot begins with raw live-action camera footage of actors walking along a paved modern city road and culminates in an epic sequence where characters ride horses while overlooking an ancient fortress city on a fantasy coastline. The complete pipeline is organized into four core stages.
Step 1: Adding Foreground Assets (Horses) via R2V and Text Prompts
The opening stage integrates contextual assets not present in the physical shoot—in this case, horses. Using an R2V (Render-to-Video / Real-to-Video) framework guided by targeted text prompts, moving horses are synthesized directly into the scene matching the speed, focal length, and spatial perspective of the raw live-action plate. This ensures the newly introduced elements integrate naturally with the temporal rhythm of the shot rather than appearing as static overlays.
Step 2: Extracting Precision Alpha Mattes via SAM 3.1 Tracking
To clear the plate for environment substitution, every foreground subject destined for the final composite must be cleanly separated from the original urban background. The workflow deploys a high-precision segmentation tracker based on SAM 3.1 (Segment Anything Model 3.1). SAM 3.1 tracks both the physical actors and the newly synthesized horses across every frame, generating sharp alpha mattes. This automated tracking achieves high temporal consistency without requiring hundreds of manual rotoscoping hours.
Step 3: Environment Replacement, 3D Relighting, and Grading in Beeble Switch X
With clean alpha mattes isolating the foreground subjects onto transparent layers, the scene is imported into Beeble Switch X. Here, the modern street plate is completely swapped for the fantasy coastal kingdom backdrop. The critical breakthrough at this stage is true 3D relighting. Using Switch X's spatial lighting tools, digital artists project new directional sunlight, ambient sky fill, and ocean reflections onto the live-action actors and horses to match the sunset color temperature and angle of the fantasy matte painting, followed by unified color grading.
Step 4: Refining Edges and Detail with an Inpainting Pass
In the final polishing phase, a targeted inpainting pass cleans up composite boundaries. High-frequency edge regions such as hair strands, fabric motion blur, and the contact zones between the subjects and the new environment are refined through inpainting. This pass dissolves matte artifacts, harmonizes edge transitions, and delivers a coherent visual finish.
Original source
This workflow was created and shared by visual artist seungho__yeo on Instagram and curated by the official ComfyUI team on September 11, 2026, as an exemplary demonstration of hybrid AI visual effects pipelines. The original social announcement includes full comparison footage showing the raw live-action capture side-by-side with the final composited fantasy shot. Artists and visual effects supervisors exploring generative plate reconstruction can inspect the original thread, review the technical pipeline nodes, and explore additional creative experiments across the creator's portfolio.