# 4.17 Chroma Key for Render Target

**URL:** <https://forums.unrealengine.com/t/4-17-chroma-key-for-render-target/408402>\
**Category:** Rendering\
**Tags:** Render, UE4-17, Scene-Capture, unreal-engine, render-target, question\
**Created:** [October 31, 2017, 1:49pm UTC](https://forums.unrealengine.com/t/4-17-chroma-key-for-render-target/408402 "2017-10-31T13:49:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SenseiHaketon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SenseiHaketon](https://forums.unrealengine.com/u/SenseiHaketon)\
**Post date:** [October 31, 2017, 1:49pm UTC](https://forums.unrealengine.com/t/4-17-chroma-key-for-render-target/408402/1 "2017-10-31T13:49:18Z")

</div>

Hello guys!

So I’m trying to get portraits for my characters after the player finished customizing them. I do this by using the SceneCapture2D object and a greenscreen. Then I get a Render Taget out of it, but I can’t seem to figure out how I can remove the green background… This has to happen during runtime if that helps…  
So can you guys help me out?

Thanks!

---

<div class="post-metadata">

**Author:** ![SenseiHaketon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SenseiHaketon](https://forums.unrealengine.com/u/SenseiHaketon)\
**Post date:** [November 4, 2017, 4:43pm UTC](https://forums.unrealengine.com/t/4-17-chroma-key-for-render-target/408402/2 "2017-11-04T16:43:31Z")

</div>

So I resolved the issue myself with a material.  
If anyone has the same issue, here you go:

 ![219096-unbenannt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/a/7ea6ae6aa5fa0d0cdee595bae86bd95c646047dc.png)

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [July 4, 2019, 10:43pm UTC](https://forums.unrealengine.com/t/4-17-chroma-key-for-render-target/408402/3 "2019-07-04T22:43:52Z")

</div>

There may be a slightly better way to achieve cleaner edges following tutorial here:

> **[Setting Up A Chroma Key Material in UE4](https://www.unrealengine.com/en-US/tech-blog/setting-up-a-chroma-key-material-in-ue4)**
>
> With AR and mixed reality content creation on the rise, Epic Games’ Principal Technical Artist Ryan Brucks breaks down the process of crafting a basic chroma key function in UE4.

By Ryan Brucks

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/8/008102a643bba9cc441f690036520fa8abe4cdca.jpeg) ](https://cdn2.unrealengine.com/Unreal+Engine/blogAssets/2017/SEPTEMBER+2017/Ryan+Brucks+Chroma+Key/770_RyanBrucks_GreenScreen_Pic7-770x253-59f858884bacbec47411b37ea73c6c098e6dd635.jpg)
