Technical notes
สิ่งที่คอมพิวเตอร์ทำจริง ๆ ตอนตัดฉากเขียว
ในคลิปผมเล่าแบบง่าย ๆ ว่าคอมพิวเตอร์ "หาสีเขียวแล้วลบทิ้ง" แต่ถ้าเปิดดูข้างใน Keyer (ตัวตัดฉาก) อย่าง Keylight หรือ IBK ใน Nuke มันไม่ได้มองหาสีเขียวตรง ๆ ครับ
มันเทียบว่าในแต่ละพิกเซล ช่องสีเขียวสูงกว่าช่องแดงและช่องฟ้าแค่ไหน ยิ่งเขียวนำห่าง พิกเซลนั้นก็ยิ่งเป็นฉากหลัง ผลที่ได้คือ Alpha (ช่องความโปร่งใส) ที่บอกว่าตรงไหนเก็บไว้ ตรงไหนทิ้ง และตรงไหนโปร่งครึ่ง ๆ อย่างเส้นผมหรือ Motion Blur (ภาพเบลอตามการเคลื่อนไหว)
เพราะมันวัดจาก "ส่วนต่าง" แบบนี้ สีอะไรที่บนตัวนักแสดงมีน้อยที่สุด ก็จะตัดได้สะอาดที่สุดครับ
ทำไมเขียวถึงชนะในยุคดิจิทัล
- เซนเซอร์กล้องดิจิทัลส่วนใหญ่ใช้ Bayer filter (ตารางกรองสีหน้าเซนเซอร์) ซึ่งมีจุดรับแสงสีเขียว 50% ส่วนแดงกับฟ้าได้อย่างละ 25% ช่องเขียวเลยคมที่สุดและ noise น้อยที่สุด Keyer ได้ข้อมูลดีที่สุดจากช่องนี้
- สีเขียวกินสัดส่วนความสว่างของภาพเยอะที่สุด (ในมาตรฐาน Rec.709 ราว 72%) เลยใช้ไฟน้อยกว่าในการทำให้ฉากสว่างพอ
- ผิวคน ผม และเสื้อผ้าส่วนใหญ่มีสีเขียวน้อย ส่วนต่างระหว่างคนกับฉากเลยกว้าง
แล้วเมื่อไหร่ยังควรใช้ฉากสีฟ้า
- นักแสดงหรือ props มีสีเขียว เช่น ชุดทหาร ต้นไม้ หรือโลโก้สีเขียว
- ฉากกลางคืนหรือฉากโทนเย็น: แสงสีฟ้าที่สะท้อนกลับมาโดนตัวนักแสดง (Spill) ดูเป็นธรรมชาติกว่าแสงเขียว
- คนผมบลอนด์: ผมสีอ่อนรับแสงเขียวสะท้อนง่ายมาก
- ยุคฟิล์มใช้ฉากฟ้าเป็นหลัก เทคนิคหลายอย่างที่เราใช้วันนี้ก็เริ่มมาจากยุคนั้นครับ
ข้อเสียของเขียวที่ผมเจอบ่อยในงานคอมพ์
ตัวปัญหาหลักคือ Spill ครับ ฉากเขียวสว่างมาก เลยสะท้อนแสงเขียวกลับมาอาบขอบตัวนักแสดง ขอบแขน ไหล่ เส้นผม จะติดเขียวจาง ๆ ต่อให้ Key ออกมาสวยแค่ไหน ถ้าไม่ Despill (ดึงสีเขียวส่วนเกินออก) ภาพจะดูหลอกตาทันที
ผมแยก Despill ออกจาก Key เสมอ ให้ Key ทำหน้าที่สร้าง Alpha อย่างเดียว ส่วนการแก้สีขอบทำอีกสาขานึง จะได้คุมแต่ละอย่างได้เต็มที่ ไม่ต้องไปบีบ Keyer จนขอบผมหาย
ถ้าคุณต้องถ่ายฉากเขียวเอง
- ให้ไฟบนฉากเรียบเสมอกันทั้งผืน รอยยับกับมุมมืดคือสิ่งที่ทำให้ Key ยากที่สุด
- ให้นักแสดงยืนห่างจากฉากเท่าที่ทำได้ Spill จะลดลงเยอะ และเบลอฉากหลังได้ง่ายขึ้น
- อย่าเปิดไฟฉากสว่างเกินตัวนักแสดง ฉากที่สว่างไปจะยิ่งสะท้อนแสงเขียวกลับมา
- ถ่ายด้วยไฟล์ที่บีบอัดน้อยและเก็บสีครบที่สุดเท่าที่กล้องทำได้ ไฟล์แบบ 4:2:0 เก็บรายละเอียดสีแค่ส่วนเดียว ขอบเส้นผมจะแตกเป็นบล็อก
- ถ้าใช้ Tracking Marker (จุดอ้างอิงสำหรับตามกล้อง) ให้ใช้สีที่ใกล้ฉาก แค่ต่างพอให้ Tracker เห็น จะลบออกทีหลังง่ายกว่าครับ
What the computer actually does when it keys green
In the video I keep it simple: the computer "finds the green and deletes it." Open up a real keyer, like Keylight or IBK in Nuke, and that’s not quite what happens.
For every pixel, the keyer measures how far the green channel sits above red and blue. The bigger the lead, the more that pixel belongs to the background. The result is an alpha (the transparency channel) that says what to keep, what to drop, and what is partly see-through, like hair or motion blur.
Because it works on that difference, the cleanest key always comes from the colour your subject has the least of.
Why green won the digital era
- Most digital camera sensors sit behind a Bayer filter (a grid of colour filters over the photosites). Half of those photosites are green; red and blue get a quarter each. So the green channel is the sharpest and the least noisy, and that’s exactly the data a keyer leans on.
- Green carries most of an image’s brightness (about 72% in Rec.709). You need less light to get the screen bright enough.
- Skin, hair and most wardrobe contain very little green, so the gap between subject and screen is wide.
When blue still makes sense
- Your talent or props are green: army uniforms, plants, a green logo.
- Night or cool-toned scenes. Blue light bouncing back onto the actor (spill) reads as natural moonlight. Green spill never does.
- Blond hair. Light hair picks up green bounce very easily.
- Film was a blue-screen world. A lot of what we still do today started there.
The downside I fight most: spill
A green screen is bright, so it bounces green light back onto the edges of your subject: arms, shoulders, hair. Even with a perfect key, if you don’t despill (pull out the extra green), the shot gives itself away instantly.
I always keep the despill separate from the key. The key builds the alpha and nothing else. Edge colour gets fixed on its own branch. That way you control each one fully, and you never have to crush the keyer until the hair disappears.
If you have to shoot green screen yourself
- Light the screen evenly, edge to edge. Wrinkles and dark corners are what make a key hard.
- Keep your talent as far from the screen as the space allows. Spill drops a lot, and the background is easier to defocus.
- Don’t light the screen brighter than the talent. An over-lit screen throws even more green back.
- Record the least compressed, fullest-colour format your camera offers. 4:2:0 keeps only a fraction of the colour detail, and hair edges break into blocks.
- If you need tracking markers (reference points for matching the camera), pick a colour close to the screen, just different enough for the tracker to see. They’re far easier to paint out later.

