# Unable to render Custom stencil with translucent material applied

**URL:** <https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890>\
**Category:** Rendering\
**Tags:** unreal-engine, Lighting, UE4, question\
**Created:** [August 16, 2019, 12:23pm UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890 "2019-08-16T12:23:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahsanali1414](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahsanali1414](https://forums.unrealengine.com/u/ahsanali1414)\
**Post date:** [August 16, 2019, 12:23pm UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/1 "2019-08-16T12:23:33Z")

</div>

can’t see translucent object in custom stencil pass. plz help me about this issue

---

<div class="post-metadata">

**Author:** ![bo0olean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bo0olean/32/464984_2.png) [@bo0olean](https://forums.unrealengine.com/u/bo0olean)\
**Post date:** [June 17, 2021, 2:49pm UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/2 "2021-06-17T14:49:11Z")

</div>

Any leads on this?

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [June 22, 2021, 8:29am UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/3 "2021-06-22T08:29:21Z")

</div>

Adjust opacity mask clip value in material settings. Even though it is not in use for translucent material, it is for stencil pass.

---

<div class="post-metadata">

**Author:** ![Majik12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Majik12](https://forums.unrealengine.com/u/Majik12)\
**Post date:** [October 24, 2022, 4:47pm UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/4 "2022-10-24T16:47:59Z")

</div>

This still doesn’t work for me. I did a material override of 0 and 1 for ‘opacity mask clip value’ in the material instances and none of my translucent objects will appear in a stencil layer in either setting. The only way they will ever appear is if I make the blend mode ‘opaque’ and not ‘translucent’, no matter whatever other variables I change.  
Keep in mind I am rendering with PathTracer. Its also the same situation when using ObjectID(Cryptomatte) Matte IDs only show up when everything is set ‘opaque’ blend mode. No Matter the Opacity or Opacity clip mask settings.

Also I noticed with Path tracer is that ‘OwnerNoSee’ and ‘OnlyOwnerSee’ are also ignored. They work fine in regular deferred rendering though.

Man, doing translucent glass/plastic material product renders with Path Tracer has been a real pain in the butt setting up for a comp pass for photoshop. Just does not seem possible to get a translucent render with all correct reflection on alpha.

---

<div class="post-metadata">

**Author:** ![cAyouM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cAyouM](https://forums.unrealengine.com/u/cAyouM)\
**Post date:** [November 24, 2022, 1:23am UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/5 "2022-11-24T01:23:23Z")

</div>

You can enable “Allow Custom Depth Writes” in the material parameters, it should work. I don’t know exactly what’s the trade off though.

---

<div class="post-metadata">

**Author:** ![linxiprojects](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linxiprojects](https://forums.unrealengine.com/u/linxiprojects)\
**Post date:** [September 10, 2024, 2:02am UTC](https://forums.unrealengine.com/t/unable-to-render-custom-stencil-with-translucent-material-applied/453890/6 "2024-09-10T02:02:15Z")

</div>

Thanks for this answer, it just saved me ( and some of my hair )
