# \#stencil

**URL:** https://forums.unrealengine.com/tag/stencil/9862.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [\[SceneCapture2D\] Can stencil IDs be read directly from render target without post process material?](https://forums.unrealengine.com/t/scenecapture2d-can-stencil-ids-be-read-directly-from-render-target-without-post-process-material/2200236)

<div class="topic-metadata">

**Author:** [@amjcrawford](https://forums.unrealengine.com/u/amjcrawford)\
**Replies:** 8\
**Last updated:** [October 15, 2026, 9:49am UTC](https://forums.unrealengine.com/t/scenecapture2d-can-stencil-ids-be-read-directly-from-render-target-without-post-process-material/2200236 "2026-10-15T09:49:43Z")

</div>

I’m prototyping a photography mode / ID system where players can photograph the world and essentially unlock a codex of info about subject(s) that exist in the game’s database (think pokemon snap). When the player snaps…

---

## [Stencil Test feature is broken?](https://forums.unrealengine.com/t/stencil-test-feature-is-broken/2531813)

<div class="topic-metadata">

**Author:** [@X-perto](https://forums.unrealengine.com/u/X-perto)\
**Replies:** 7\
**Last updated:** [February 23, 2026, 2:37pm UTC](https://forums.unrealengine.com/t/stencil-test-feature-is-broken/2531813 "2026-02-23T14:37:14Z")

</div>

Hey is anyone able to use the Stencil Test setting in post process materials? It seems to be broken or I’m just not using it correctly, because it’s always testing against 0 instead of the actual custom stencil values U…

---

## [Changing Custom Stencil Value At Runtime Doesn't Work?](https://forums.unrealengine.com/t/changing-custom-stencil-value-at-runtime-doesnt-work/370044)

<div class="topic-metadata">

**Author:** [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Replies:** 3\
**Last updated:** [November 26, 2025, 3:04pm UTC](https://forums.unrealengine.com/t/changing-custom-stencil-value-at-runtime-doesnt-work/370044 "2025-11-26T15:04:34Z")

</div>

Is changing the stencil value of a static mesh component at runtime not supported? I am finding that if I change the value (say from 0 to 200) while viewing a post process effect that uses it, the object in question does…

---

## [Custom Depth Stencil Write Mask not work on Mobile](https://forums.unrealengine.com/t/custom-depth-stencil-write-mask-not-work-on-mobile/487755)

<div class="topic-metadata">

**Author:** [@Xiangming\_Lu](https://forums.unrealengine.com/u/Xiangming_Lu)\
**Replies:** 7\
**Last updated:** [September 23, 2025, 10:31am UTC](https://forums.unrealengine.com/t/custom-depth-stencil-write-mask-not-work-on-mobile/487755 "2025-09-23T10:31:47Z")

</div>

On Mobile, Custom Depth Stencil Write Mask is not respected at all. For example, stencil value = 3. write mask = first bit. it should write out 1. but it write out 3. When can this be fixed?

---

## [Rendering issues with Stencils and Path Tracing](https://forums.unrealengine.com/t/rendering-issues-with-stencils-and-path-tracing/1346367)

<div class="topic-metadata">

**Author:** [@nateagfsy](https://forums.unrealengine.com/u/nateagfsy)\
**Replies:** 5\
**Last updated:** [December 27, 2024, 10:50pm UTC](https://forums.unrealengine.com/t/rendering-issues-with-stencils-and-path-tracing/1346367 "2024-12-27T22:50:03Z")

</div>

hello to all who pass by, I have an issue when I try to render sequences with Path Tracer when I want to render several passes using stencils. When I don’t use Path Tracer for rendering, I don’t have this problem. As …

---

## [By-pass for excluding deferred decal from Post Processing Volume](https://forums.unrealengine.com/t/by-pass-for-excluding-deferred-decal-from-post-processing-volume/2086229)

<div class="topic-metadata">

**Author:** [@2hTu2](https://forums.unrealengine.com/u/2hTu2)\
**Replies:** 1\
**Last updated:** [October 25, 2024, 12:39am UTC](https://forums.unrealengine.com/t/by-pass-for-excluding-deferred-decal-from-post-processing-volume/2086229 "2024-10-25T00:39:28Z")

</div>

From what I’m reading online it’s currently not possible to use a custom depth stencil for deferred decals, because they don’t have any depth. It’s apparently also not possible to pass in a custom tags or custom values t…

---

## [Enable project setting programatically: Custom Depth-Stencil Pass](https://forums.unrealengine.com/t/enable-project-setting-programatically-custom-depth-stencil-pass/383172)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_24cff47d](https://forums.unrealengine.com/u/anonymous_user_24cff47d)\
**Replies:** 4\
**Last updated:** [October 20, 2024, 6:58am UTC](https://forums.unrealengine.com/t/enable-project-setting-programatically-custom-depth-stencil-pass/383172 "2024-10-20T06:58:09Z")

</div>

If it possible to set “Custom Depth-Stencil Pass” setting (in Project Settings \> Rendering \> Postprocessing) programmatically using either C++ or Blueprint at runtime?

---

## [Is it possible to have 16-bit stencils instead of 8-bit?](https://forums.unrealengine.com/t/is-it-possible-to-have-16-bit-stencils-instead-of-8-bit/473979)

<div class="topic-metadata">

**Author:** [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Replies:** 2\
**Last updated:** [September 28, 2024, 12:42pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-have-16-bit-stencils-instead-of-8-bit/473979 "2024-09-28T12:42:38Z")

</div>

Hi, I have more than 256 meshes in level and I want to assign a unique stencil for each mesh. See images, UE4 caps max value to 255, I know stencil value is of type uint8. Is there any work around to achieve 16-bit ste…

---

## [How to use stencil buffer with the foliage on UE5](https://forums.unrealengine.com/t/how-to-use-stencil-buffer-with-the-foliage-on-ue5/2014769)

<div class="topic-metadata">

**Author:** [@JungVVV](https://forums.unrealengine.com/u/JungVVV)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 2:36pm UTC](https://forums.unrealengine.com/t/how-to-use-stencil-buffer-with-the-foliage-on-ue5/2014769 "2024-09-10T14:36:54Z")

</div>

how to use stencil buffer with the foliage on UE5? is it passable to do that? because I couldn’t find any values setting it up on Derails tab material editor and mesh. I found below image but it’s been disabled like i…

---

## [Overriding Stencil Test With Depth Test](https://forums.unrealengine.com/t/overriding-stencil-test-with-depth-test/856300)

<div class="topic-metadata">

**Author:** [@5Daydreams](https://forums.unrealengine.com/u/5Daydreams)\
**Replies:** 4\
**Last updated:** [August 25, 2024, 7:03pm UTC](https://forums.unrealengine.com/t/overriding-stencil-test-with-depth-test/856300 "2024-08-25T19:03:08Z")

</div>

Hey there - I’m using stencils to make these purple particles render behind a quad, but I had to check the “Disable Depth Test” option within the particles’ material to get them to render below my floor (since…

---

## [Custom stencil filtering for DBuffer decals](https://forums.unrealengine.com/t/custom-stencil-filtering-for-dbuffer-decals/427974)

<div class="topic-metadata">

**Author:** [@Vvoz](https://forums.unrealengine.com/u/Vvoz)\
**Replies:** 4\
**Last updated:** [October 22, 2019, 2:24pm UTC](https://forums.unrealengine.com/t/custom-stencil-filtering-for-dbuffer-decals/427974 "2019-10-22T14:24:03Z")

</div>

What I want is to have a decal that ignores certain meshes. Turning off “receive decals” is not an option, since I want these meshes to be affected by other decals. So instead I enabled custom stencil and used it like th…

---

## [Stencil Layers lighting and proper blending](https://forums.unrealengine.com/t/stencil-layers-lighting-and-proper-blending/1819278)

<div class="topic-metadata">

**Author:** [@Czaja](https://forums.unrealengine.com/u/Czaja)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 3:12pm UTC](https://forums.unrealengine.com/t/stencil-layers-lighting-and-proper-blending/1819278 "2024-04-24T15:12:16Z")

</div>

Hi, I never successfully made any render using Movie Render Queue with the use of Stencil Layers that would be free of issues. Although I followed many tutorials and guides I always ended up having some issues with the d…

---

## [Render Stencil on top of other stencil?](https://forums.unrealengine.com/t/render-stencil-on-top-of-other-stencil/1512603)

<div class="topic-metadata">

**Author:** [@RobertoCosta\_Dev](https://forums.unrealengine.com/u/RobertoCosta_Dev)\
**Replies:** 2\
**Last updated:** [December 10, 2023, 1:31pm UTC](https://forums.unrealengine.com/t/render-stencil-on-top-of-other-stencil/1512603 "2023-12-10T13:31:44Z")

</div>

Heya potential answerers. So I’m trying to do something similar to how you can superimpose custom depth on top of postprocess0 but I want to have multiple layers to this. For example I’d want one color in stencil 1 and…

---

## [MRQ, Pathtracer and Alpha outputs with motion](https://forums.unrealengine.com/t/mrq-pathtracer-and-alpha-outputs-with-motion/1506362)

<div class="topic-metadata">

**Author:** [@StrataHomes](https://forums.unrealengine.com/u/StrataHomes)\
**Replies:** 0\
**Last updated:** [December 8, 2023, 3:37pm UTC](https://forums.unrealengine.com/t/mrq-pathtracer-and-alpha-outputs-with-motion/1506362 "2023-12-08T15:37:43Z")

</div>

Hi all, I’ve been trying for a couple of days to get the cleanest most effcient method to create an alpha from a moving / animated turntable object, and I must say I’m struggling! My set up - I’m using the DynamicSky pl…

---

## [Movie Render Queue - Render alpha channel for media plate and ignore fog and sky](https://forums.unrealengine.com/t/movie-render-queue-render-alpha-channel-for-media-plate-and-ignore-fog-and-sky/1163035)

<div class="topic-metadata">

**Author:** [@0scar\_0](https://forums.unrealengine.com/u/0scar_0)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 5:53pm UTC](https://forums.unrealengine.com/t/movie-render-queue-render-alpha-channel-for-media-plate-and-ignore-fog-and-sky/1163035 "2023-12-01T17:53:26Z")

</div>

Hi there. I just want to make a request to allow for the Movie Render Queue to render stencil layers with the alpha accumulator enabled, as well as enabling alpha channel support in post processing but without having to …

---

## [Use stencils (maybe) to always render an actor above water](https://forums.unrealengine.com/t/use-stencils-maybe-to-always-render-an-actor-above-water/1333835)

<div class="topic-metadata">

**Author:** [@eje2111](https://forums.unrealengine.com/u/eje2111)\
**Replies:** 6\
**Last updated:** [October 19, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/use-stencils-maybe-to-always-render-an-actor-above-water/1333835 "2023-10-19T16:01:26Z")

</div>

I have a boat actor that goes on water. When it is partially submerged, the water can be seen at the bottom of the boat. I would like for that water (from the Water Experimental plugin) not to be rendered. I’m pretty su…

---

## [Post Processing material (see through wall) doesn't overlap other materials with same property](https://forums.unrealengine.com/t/post-processing-material-see-through-wall-doesnt-overlap-other-materials-with-same-property/783329)

<div class="topic-metadata">

**Author:** [@Suundumused](https://forums.unrealengine.com/u/Suundumused)\
**Replies:** 5\
**Last updated:** [October 10, 2023, 10:23am UTC](https://forums.unrealengine.com/t/post-processing-material-see-through-wall-doesnt-overlap-other-materials-with-same-property/783329 "2023-10-10T10:23:25Z")

</div>

I am creating Post Processing material for certain meshes to be seen through the wall, however I have another material with the same property, but it only works for OutLine, the problem is that meshes with stencil ID of …

---

## [How to add the Groom system to Stencil Layers?](https://forums.unrealengine.com/t/how-to-add-the-groom-system-to-stencil-layers/478614)

<div class="topic-metadata">

**Author:** [@gsudhanthiran](https://forums.unrealengine.com/u/gsudhanthiran)\
**Replies:** 3\
**Last updated:** [September 20, 2023, 11:00am UTC](https://forums.unrealengine.com/t/how-to-add-the-groom-system-to-stencil-layers/478614 "2023-09-20T11:00:06Z")

</div>

Hi Wonderful People! I’m trying to render Stencil clip Layers with the eagle in the MeerkatDemo by following this tutorial https://www.youtube.com/watch?v=XBu0otF-CxA but the groom system is missing in the output, htt…

---

## [Landscpae Grass - Stencil layers](https://forums.unrealengine.com/t/landscpae-grass-stencil-layers/1253421)

<div class="topic-metadata">

**Author:** [@acjreed](https://forums.unrealengine.com/u/acjreed)\
**Replies:** 0\
**Last updated:** [August 7, 2023, 11:21am UTC](https://forums.unrealengine.com/t/landscpae-grass-stencil-layers/1253421 "2023-08-07T11:21:05Z")

</div>

Hey guys I really need to be able to get an alpha out for my grass that is seperate from the landspace, however I’m using a landspace grass object which means it’s one object in the outliner. How would I add the grass …

---

## [Render alpha stencil layer with Post processing material in UE5.1](https://forums.unrealengine.com/t/render-alpha-stencil-layer-with-post-processing-material-in-ue5-1/1245690)

<div class="topic-metadata">

**Author:** [@sameSharkk1](https://forums.unrealengine.com/u/sameSharkk1)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 9:49am UTC](https://forums.unrealengine.com/t/render-alpha-stencil-layer-with-post-processing-material-in-ue5-1/1245690 "2023-07-31T09:49:41Z")

</div>

Hi all, I can render stencil layer with alpha channel sucessfully, but it never works with post-process material. I have try the setting “Rendering \> Post-processing \> Enable Alpha channel support” : “Linear Color Space…

---

## [Custom Depth Stencil index isnt respected.](https://forums.unrealengine.com/t/custom-depth-stencil-index-isnt-respected/783306)

<div class="topic-metadata">

**Author:** [@Suundumused](https://forums.unrealengine.com/u/Suundumused)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/custom-depth-stencil-index-isnt-respected/783306 "2023-03-03T23:53:05Z")

</div>

I have a problem, I created a post processing material to see objects through the wall, so I set the material in position 3 of the post processing volume, the meshes that I don’t want to see through the wall I left in Cu…

---

## [Take out water from inside of the boat with Custom Stencil  - logic puzzle](https://forums.unrealengine.com/t/take-out-water-from-inside-of-the-boat-with-custom-stencil-logic-puzzle/365545)

<div class="topic-metadata">

**Author:** [@Chishabk](https://forums.unrealengine.com/u/Chishabk)\
**Replies:** 6\
**Last updated:** [June 18, 2022, 3:49pm UTC](https://forums.unrealengine.com/t/take-out-water-from-inside-of-the-boat-with-custom-stencil-logic-puzzle/365545 "2022-06-18T15:49:53Z")

</div>

Hi guys, I thought I have a simple task to resolve but i was wrong. Basically I want take the water out of my boat: Since I have an opaque ocean , i choose to use Custom Stencil as masking solution. For that I bui…

---

## [Meerkat demo, groom not rendering on stencil layer](https://forums.unrealengine.com/t/meerkat-demo-groom-not-rendering-on-stencil-layer/491887)

<div class="topic-metadata">

**Author:** [@Felyne](https://forums.unrealengine.com/u/Felyne)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 8:09am UTC](https://forums.unrealengine.com/t/meerkat-demo-groom-not-rendering-on-stencil-layer/491887 "2022-01-27T08:09:11Z")

</div>

Hi, I’m using the beautiful Meerkat demo project to test the renders. In my project settings, the alpha is enabled. In the plugins, the groom is enabled. In the Movie Render Queue, I use the Weta preset MoviePipelineC…

---

## [Specify colour masks in Custom Stencil Pass](https://forums.unrealengine.com/t/specify-colour-masks-in-custom-stencil-pass/490582)

<div class="topic-metadata">

**Author:** [@Deamonche](https://forums.unrealengine.com/u/Deamonche)\
**Replies:** 4\
**Last updated:** [November 12, 2021, 11:46pm UTC](https://forums.unrealengine.com/t/specify-colour-masks-in-custom-stencil-pass/490582 "2021-11-12T23:46:04Z")

</div>

Good day! I may be going mental with my problem, I would be very grateful if you can help me. I’m working on a project that needs a render pass, a post process material, that can mask the static meshes into a specific c…

---

## [Scenetexture::CustomStencil is not reading the stencil correctly on Mobile](https://forums.unrealengine.com/t/scenetexture-customstencil-is-not-reading-the-stencil-correctly-on-mobile/489121)

<div class="topic-metadata">

**Author:** [@Xiangming\_Lu](https://forums.unrealengine.com/u/Xiangming_Lu)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 12:49am UTC](https://forums.unrealengine.com/t/scenetexture-customstencil-is-not-reading-the-stencil-correctly-on-mobile/489121 "2021-10-05T00:49:57Z")

</div>

On Mobile. Scenetexture::CustomStencil is not reading the depthstencil buffer, instead it is reading from a unorm custom buffer based on the gpu capture. This results the stencil write mask not function on Mobile since …

---

## [How do I make a box mesh whose interior is visible but exterior is invisible?](https://forums.unrealengine.com/t/how-do-i-make-a-box-mesh-whose-interior-is-visible-but-exterior-is-invisible/489197)

<div class="topic-metadata">

**Author:** [@Schytheron](https://forums.unrealengine.com/u/Schytheron)\
**Replies:** 4\
**Last updated:** [September 27, 2021, 8:54am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-box-mesh-whose-interior-is-visible-but-exterior-is-invisible/489197 "2021-09-27T08:54:47Z")

</div>

So, basically I have a hollow/open box mesh (basically, the box has an opening, 5 faces instead of 6) that I created in Blender. This mesh consists of two separate meshes put together in a single Blueprint. One mesh is t…

---

## [How to use a Custom Stencil to mask Exponential Height Fog?](https://forums.unrealengine.com/t/how-to-use-a-custom-stencil-to-mask-exponential-height-fog/489091)

<div class="topic-metadata">

**Author:** [@TheHammerSV](https://forums.unrealengine.com/u/TheHammerSV)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-use-a-custom-stencil-to-mask-exponential-height-fog/489091 "2021-09-22T20:50:28Z")

</div>

The game I am working on involves ghosts, and I am working on an effect where if an invisible ghost steps into a volumetric light, the exponential height fog is affected by a mask so the model makes the room appear unlit…

---

## [How to read custom stencil buffer data?](https://forums.unrealengine.com/t/how-to-read-custom-stencil-buffer-data/482766)

<div class="topic-metadata">

**Author:** [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 6:16pm UTC](https://forums.unrealengine.com/t/how-to-read-custom-stencil-buffer-data/482766 "2021-09-21T18:16:36Z")

</div>

I am really surprised there is no info on this supposedly trivial task. I was able to enable custom stencil buffer. I set stencil id on my mesh component. I can visualize the stencil buffer using post processing mater…

---

## [How to use a stencil material](https://forums.unrealengine.com/t/how-to-use-a-stencil-material/486777)

<div class="topic-metadata">

**Author:** [@eje211](https://forums.unrealengine.com/u/eje211)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 3:59pm UTC](https://forums.unrealengine.com/t/how-to-use-a-stencil-material/486777 "2021-07-29T15:59:24Z")

</div>

I’m making a game with a boat. Sometimes the bottom of the boat is under the level of the water, as so the water can be seen at the bottom. I’m using the standard Unreal water simulation. (Not shallow water.) Now, this …

---

## [Automated export of Depth, Stencil and Final Images captured via camera](https://forums.unrealengine.com/t/automated-export-of-depth-stencil-and-final-images-captured-via-camera/483964)

<div class="topic-metadata">

**Author:** [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Replies:** 0\
**Last updated:** [May 27, 2021, 4:18am UTC](https://forums.unrealengine.com/t/automated-export-of-depth-stencil-and-final-images-captured-via-camera/483964 "2021-05-27T04:18:20Z")

</div>

Hi guys, I need to write logic that exports captured frames - especially custom depth, stencil and final images and store them in local folder for export. Plz give me ideas. I saw this logic in Microsoft Airsim. Captur…

[Next page](https://forums.unrealengine.com/tag/stencil/9862.md?match_all_tags=true&page=1&tags%5B%5D=stencil)
