How Corridor Crew Solved the Green Screen Chroma Key Transparency Problem with AI
Corridor Crew
Summary:
Corridor Crew VFX artist Niko addresses the persistent challenges of green screen keying, particularly the "transparency problem" that has plagued filmmakers for decades.
- Green Screen Limitations: Traditional chroma keying struggles with semi-transparent objects, hair, motion blur, and spill, making the process tedious and imperfect.
- Historical Solutions: Early film techniques involved physical film manipulation, while Disney developed a proprietary sodium vapor process for perfect mathematical cutouts.
- The AI Approach: Niko proposes using neural networks to automatically and perfectly cut subjects from green screens. This involves training an AI with a massive dataset of 3D rendered green screen footage and corresponding transparent masks.
- Procedural Generation: To overcome the need for 10,000+ clips, the team uses procedural generation in Houdini and Blender to create diverse synthetic datasets with varied objects, lighting, and materials, ensuring mathematical precision.
- Testing and Refinement: Initial results with the AI model showed promise but struggled with green fringe on semi-transparent areas. Niko refined the training by compositing predicted outputs onto random and gray backgrounds, forcing the model to unmix background colors perfectly.
- Success and Release: The improved AI, named "Corridor Key," successfully tackled difficult green screen shots, including hair, motion blur, and reflective/transparent objects, producing world-class keys with minimal human intervention. The tool, which requires high VRAM, is released open-source and free for non-commercial use.
The Inherent Problems with Green Screens [0:00]
Green screens, while foundational for visual effects, often present significant challenges, making the VFX process more arduous than enjoyable.
Historical Solutions to Transparency [2:29]
Early Film Techniques: Transparency Mats [2:29]
- Filmmakers used physical film where exposed silver crystals would stick, and unexposed ones were washed off, creating actual transparent areas.
- This allowed for layering film, but it was limited to black and white values, making fuzzy edges or transparent materials impossible.
Color Film: Blue Screen and Optical Printers [3:00]
- For color films like "Star Wars," artists had to split individual color channels (red, green, blue).
- By shooting on a blue background, the blue channel could be isolated to create a black-and-white mat of the subject.
- This laborious process involved optical printers and extensive filtering and recombining.
- A significant drawback was that any blue in the subject would also be cut out.
Disney's Proprietary Sodium Vapor Process [4:10]
- Petro Vahos developed a method using sodium vapor light, which emits light within a tiny, specific wavelength.
- This allowed for lighting the background with sodium vapor while the subject was lit normally.
- A custom crystal in the camera would expose two pieces of film simultaneously: one for the sodium vapor backdrop and one for all other light.
- This yielded mathematically perfect cutouts, preserving semi-transparent details.
- However, this technology was exclusive to Disney.
The Rise of Chroma Keying and Its Persistent Problems [5:00]
Niko's Vision for an AI-Powered Solution [7:08]
Procedural Generation for Training Data [12:25]
- Overcoming Data Limitations [12:25]
- To generate the vast amount of mathematically perfect training data, the team leverages procedural generation, primarily using Houdini and Blender.
- This allows for automatically creating diverse 3D rendered scenes with various objects, lighting environments, materials, and parameters.
- Interns Shane and Lucas contribute by developing Blender-based procedural systems for characters and hair, complementing Jordan Allen's Houdini work on hard-edged objects.
- This collaborative effort creates a "dedicated wing of machines" constantly generating renders for Niko's AI.
Initial Results and Iterative Refinement [15:12]
The Success of Corridor Key [19:54]
"Son of a Dungeon" Timeline [19:54]
- With Season 3 of "Son of a Dungeon" approaching, the new tool needed to be ready for production-level compositing within weeks.
- Niko reflects on his 30-year journey with green screens, from high school dreams of "Star Wars" effects to the continued frustration with imperfect tools.
Demonstration to the Crew [21:49]
- Niko presented the refined Corridor Key to the Corridor Crew, starting with the original "Viking" test footage.
- He then revealed that the "original" footage shown moments earlier (featuring difficult green screen elements like hair, motion blur, and semi-transparent objects) was actually already processed by the AI.
- The crew was shocked and impressed by the seamless keys, especially with challenging elements like hair, motion blur, and transparent/reflective objects (e.g., water in a glass).
Sam's Approval and Final Product [25:27]
- Sam, the head of the "Son of a Dungeon" pipeline, was "in shock" and called the results "magic" and "world-class keys."
- Niko demonstrated the full pipeline:
- Alpha Hint: Auto-generated clean mask of the subject.
- FG (Foreground): A straight, unmixed, 100% opaque color version of the subject, impossible to capture directly with a camera.
- Matte: A black-and-white transparency map.
- Processed (EXR): The final, professionally keyed output, ready for compositing.
- The processed output seamlessly removed tracking markers, eliminated green spill, and preserved intricate details like hair and chain mail transparency.
- When composited into After Effects with a background, the results were "better than any key I've ever pulled."
Accessibility and Future of Corridor Key [29:18]
- Open-Source Release [29:18]
- Niko released "Corridor Key" as an open-source tool on GitHub, allowing anyone to use it for free for non-commercial purposes.
- The tool currently requires high VRAM (23.9 GB), accessible on high-end gaming GPUs or via rented hyper-powerful computers.
- The hope is that the open-source community will help optimize it for wider accessibility.
- Comparison to Sodium Vapor: While Corridor Key performs exceptionally well, it's noted that sodium vapor keying is still arguably the "best matting system," though Corridor Key is a significant leap for digital methods.
- Community Engagement: Users are encouraged to contribute to the project on Discord and share feedback.