# Draw Material To Render Target impossible to control alpha - always fully transparent

**URL:** <https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 18, 2020, 9:21am UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704 "2020-01-18T09:21:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [January 18, 2020, 9:21am UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/1 "2020-01-18T09:21:20Z")

</div>

Hi,

I have a simple blueprint where I am trying to render some EXRs using Draw Material to Render Target and then saving them to disk. It works fine with JPGs as those don’t have an alpha channel, but it’s completely broken for any format that supports alpha as alpha is always 0 (fully transparent). I am already stuck for second day on this and still can’t find solutions. I have tried things like messing with the material which is being drawn to the render target, changing shading and blending modes, messing around with channels, etc… but just no matter what I do, the alpha for any alpha supported image formats is always 0, so the image always ends up blank unless I open it in an image editor and discard/change the alpha channel.

![Annotation-20200118-102044.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa7f2da1f912ee65ed4fe7f49e458696d6461b30.jpeg)

Is there any way to control/override the alpha channel so that I can actually use any other formats than JPG? ☹

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1223962_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [January 18, 2020, 1:12pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/2 "2020-01-18T13:12:57Z")

</div>

> [@Rawalanche](#):
>
> Is there any way to control/override the alpha channel so that I can actually use any other formats than JPG? ☹
> 
> Thanks in advance.

So I am not sure about texture formats, but perhaps all you need to do is invert the alpha channel, which requires a OneMinus node from the texture alpha to your opacity material pin, as I outline here in some context on rendering the player to the UI [https://www.youtube.com/watch?v=XvhtSwXp8D8](https://www.youtube.com/watch?v=XvhtSwXp8D8)

---

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [January 18, 2020, 2:13pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/3 "2020-01-18T14:13:22Z")

</div>

> [@unit23](#):
>
> So I am not sure about texture formats, but perhaps all you need to do is invert the alpha channel, which requires a OneMinus node from the texture alpha to your opacity material pin, as I outline here in some context on rendering the player to the UI [https://www.youtube.com/watch?v=XvhtSwXp8D8](https://www.youtube.com/watch?v=XvhtSwXp8D8)

Did not work. I tried all those shenanigans, inverting it, all the different shading and blend modes with alpha being 1,0 or -1. Only thing that worked was additive mode, but that _added_ the image contribution so each frame was subsequently brighter.

---

<div class="post-metadata">

**Author:** ![wolflow94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wolflow94](https://forums.unrealengine.com/u/wolflow94)\
**Post date:** [March 2, 2020, 4:08pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/4 "2020-03-02T16:08:05Z")

</div>

I got the same error. Whatever material I plug to the DrawMaterial node, this will result in a fully transparent result.

---

<div class="post-metadata">

**Author:** ![wolflow94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wolflow94](https://forums.unrealengine.com/u/wolflow94)\
**Post date:** [March 2, 2020, 6:19pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/5 "2020-03-02T18:19:58Z")

</div>

I finally managed to get rid of this transparency overriding behavior. What you need to do is check UsedWithEditorCompositing in the material you want to use for drawing into a Render target.

 ![FixTransparencyWithRT.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a8ee268bd8901cc9b40219c97fa619a77d63e0d9.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b26307c3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b26307c3](https://forums.unrealengine.com/u/anonymous_user_b26307c3)\
**Post date:** [July 28, 2020, 5:25pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/7 "2020-07-28T17:25:42Z")

</div>

I have a Surface Masked material, as wolflow94 suggested enable used with editor Compositing, and on top of that I had to put the Opacity Mask Clip Value to 0

---

<div class="post-metadata">

**Author:** ![Suthriel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/suthriel/32/1195643_2.png) [@Suthriel](https://forums.unrealengine.com/u/Suthriel)\
**Post date:** [March 20, 2022, 3:25am UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/8 "2022-03-20T03:25:44Z")

</div>

You are such a lifesaver 🙂 Had the same problem and after way to many tries i found your solution, and it worked.

---

<div class="post-metadata">

**Author:** ![PlarifyLimited](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlarifyLimited](https://forums.unrealengine.com/u/PlarifyLimited)\
**Post date:** [July 5, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/9 "2023-07-05T15:30:47Z")

</div>

Thank you so much! I’ve just spent 3 hours to get proper RT to texture exporting)))

---

<div class="post-metadata">

**Author:** ![Bad\_Vices\_Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bad_vices_games/32/753862_2.png) [@Bad\_Vices\_Games](https://forums.unrealengine.com/u/Bad_Vices_Games)\
**Post date:** [January 7, 2025, 8:30am UTC](https://forums.unrealengine.com/t/draw-material-to-render-target-impossible-to-control-alpha-always-fully-transparent/136704/10 "2025-01-07T08:30:27Z")

</div>

This is the only solution that I found works to save a PNG. Having the brush material set to masked, enabling “Used with Edito Compositing” in the material options. The alpha clip value doesn’t have to be 0, if you need a circular brush and not a square one you can make the Alpha clip higher in order to have transparency.
