# Stencil rendering in MovieSquencer

**URL:** <https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine\
**Created:** [February 21, 2022, 10:20am UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530 "2022-02-21T10:20:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Decorix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Decorix](https://forums.unrealengine.com/u/Decorix)\
**Post date:** [February 21, 2022, 10:20am UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/1 "2022-02-21T10:20:47Z")

</div>

hello All.

I was watching WilliamFaucher he did great stencil tutorial. So I did the same steps added my character and test sphere, but when I render out… and check exr. The backdrop of the MTH is renderd too. That should be in the default layer as I turned it on. That’s what’s william mentioned all other meshes will be rendered in that default layer. So now

 ![stencil_question](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/9/979060f307fb5e0aa3997bd5d850d574bdf185c4.png)  
I need to select my backdrop and turn it off so it won’t render. But it shouldnt be like that. I should have exr with character and sphere as those two meshes I added to a ney layer. Shouldn’t this be renderd on a transparant BG? Or am I missing something?

---

<div class="post-metadata">

**Author:** ![scottunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scottunreal](https://forums.unrealengine.com/u/scottunreal)\
**Post date:** [February 21, 2022, 6:49pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/2 "2022-02-21T18:49:45Z")

</div>

If you wish to render layers out with an EXR alpha:  
In Project settings search for Alpha. Rendering-\>PostProcessing → Enable Alpha channel support  
to Linear Color Space Only  
And set Frame Buffer Pixel Format to 10RGB, 2bit alpha (More display but maybe needed?)  
If the EXR isn’t multilayered then I tend to turn that checkbox off in the movie render que.

---

<div class="post-metadata">

**Author:** ![Decorix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Decorix](https://forums.unrealengine.com/u/Decorix)\
**Post date:** [February 21, 2022, 8:06pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/3 "2022-02-21T20:06:34Z")

</div>

Hello Scottunreal,

Thanks for your kind help. I already had these settings in my project set, but I went wrong as I was following the tut instructions, I only have one mesh I turn on multilayerd that was causing it. If you have more meshes then you turn it on. So its working now.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/3/d1344f1d7276d856f954b4a817a8f3d255c74b60.png)

---

<div class="post-metadata">

**Author:** ![robat1402](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robat1402](https://forums.unrealengine.com/u/robat1402)\
**Post date:** [March 16, 2022, 10:45am UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/4 "2022-03-16T10:45:52Z")

</div>

When i use stencil render , the alpha of each stencil layer are not included ( pure black ), i have turn on the Alpha Channel Support to Linear color space only, and also set the frame buffer format, but still no luck with the alpha on the stencil when i put it inside Nuke, Althou, I can separate the layer using Shuffle nodes inside Nuke just Like Will did on his video, but when i switch my viewport to Alpha inside Nuke, it was all black. Any thought or idea on what i did wrong inside unreal?

Here is my setting inside Unreal:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/9/b2933b8e484f23e4549088bc2917ee64e7d74df5.png)

I can seperate this using Shuffle nodes inside Nuke when Viewport RGB:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/f/5ff061f1158ae4286038685fdcd82a225f703346.jpeg)

but no luck when i try to view the Alpha:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/a/f5abe5166bb8b4aeacbf19ca86084325f3a28dce.jpeg)

Any help will be much appriciated…

---

<div class="post-metadata">

**Author:** ![Aphexx100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aphexx100](https://forums.unrealengine.com/u/Aphexx100)\
**Post date:** [January 27, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/5 "2023-01-27T16:14:13Z")

</div>

so, did you ever solve this?  
i run into the same issue 😕

---

<div class="post-metadata">

**Author:** ![OldSalty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OldSalty](https://forums.unrealengine.com/u/OldSalty)\
**Post date:** [January 29, 2023, 6:00am UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/6 "2023-01-29T06:00:03Z")

</div>

I’ve also found that stencil layers are not working as intended, some objects can be added to a layer and render with alpha, while some cannot. Even rendering the same object in a different layer, sometimes the alpha is black when it previously worked.

---

<div class="post-metadata">

**Author:** ![OldSalty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OldSalty](https://forums.unrealengine.com/u/OldSalty)\
**Post date:** [January 29, 2023, 4:11pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/7 "2023-01-29T16:11:13Z")

</div>

Okay so I’ve figured out what the issue was for me. NANITE! It seems that static meshes with nanite enabled will not show up in stencil layers at all in UE 5.0. Hope this helps some of y’all.

---

<div class="post-metadata">

**Author:** ![mcapprotti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mcapprotti](https://forums.unrealengine.com/u/mcapprotti)\
**Post date:** [October 25, 2023, 4:30pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/8 "2023-10-25T16:30:22Z")

</div>

Using the console variable “r.Nanite” set to Zero in the Movie Render Queue seems to take care of the issue with stencil layers not rendering without you having to manually disable nanite on each mesh. Hope that helps anyone dealing with this issue.

---

<div class="post-metadata">

**Author:** ![Polygon84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Polygon84](https://forums.unrealengine.com/u/Polygon84)\
**Post date:** [February 19, 2024, 6:12pm UTC](https://forums.unrealengine.com/t/stencil-rendering-in-moviesquencer/500530/9 "2024-02-19T18:12:51Z")

</div>

Thanks, I was getting crazy…even though I heard nanite can cause this, I didnt think that all my meshes had nanite enabled automatically.

This console command is gold!
