# Post Process: Add Glow Effect around Visible PlayerCharacters

**URL:** <https://forums.unrealengine.com/t/post-process-add-glow-effect-around-visible-playercharacters/146749>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [July 1, 2020, 1:41am UTC](https://forums.unrealengine.com/t/post-process-add-glow-effect-around-visible-playercharacters/146749 "2020-07-01T01:41:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkSoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkSoe](https://forums.unrealengine.com/u/DarkSoe)\
**Post date:** [July 1, 2020, 1:41am UTC](https://forums.unrealengine.com/t/post-process-add-glow-effect-around-visible-playercharacters/146749/1 "2020-07-01T01:41:25Z")

</div>

Hello, i have a problem on putting a glow effect around player characters.  
basicly not the glow effect is the problem, the problem is to put it only around the visible part of the Skeletal Mesh.

This is what i got so far. but i dont found a solution to remove the glow from the not visible part of the Mesh.

 ![Glow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a826c6c8c675ecb580d8e55050cb4f9f9c2e6551.jpeg)

Would be awsome if someone would have a idea how to solve this.

Convert UV Right (Custom Node)

```auto

return ViewportUVToSceneTextureUV(UV,14);

```

Custom Node

```auto

float3 CurColor=0;
float2 NewUV = UV;
int i=0;
float StepSize = Distance / (int) DistanceSteps;
float CurDistance=0;
float2 CurOffset=0;
float SubOffset = 0;
float TwoPi = 6.283185;
float accumdist=0;

if (DistanceSteps < 1)
{
return Texture2DSample(SceneTexturesStruct.CustomDepthTexture, SceneTexturesStruct.CustomDepthTextureSampler,NewUV);
}
else
{
while (i < (int) DistanceSteps)
{
CurDistance += StepSize;
for (int j = 0; j < (int) RadialSteps; j++)
{
SubOffset +=1;
CurOffset.x = cos(TwoPi*(SubOffset / RadialSteps));
CurOffset.y = sin(TwoPi*(SubOffset / RadialSteps));
NewUV.x = UV.x + CurOffset.x * CurDistance;
NewUV.y = UV.y + CurOffset.y * CurDistance;
float distpow = pow(CurDistance, KernelPower);
CurColor += ceil(Texture2DSample(SceneTexturesStruct.CustomDepthTexture, SceneTexturesStruct.CustomDepthTextureSampler,NewUV))*distpow;
accumdist += distpow;
}
SubOffset +=RadialOffset;
i++;
}
CurColor = CurColor;
CurColor /=accumdist;
return CurColor;
}

```

This is the Post Process Material i made so far

 ![Material.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/e/7e5a2c8d65540a0a3f465c015c6ed651282e4373.png)

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [July 1, 2020, 6:26pm UTC](https://forums.unrealengine.com/t/post-process-add-glow-effect-around-visible-playercharacters/146749/2 "2020-07-01T18:26:33Z")

</div>

Try building something with Niagara that emits from the mesh instead? Particles are part of the scene and depth tested automatically.

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [September 5, 2024, 11:41am UTC](https://forums.unrealengine.com/t/post-process-add-glow-effect-around-visible-playercharacters/146749/3 "2024-09-05T11:41:36Z")

</div>

Check out [this](https://ferkizue.blogspot.com/2018/11/adding-occlusion-to-multicolor-soft.html) blog post!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/f/4bf9943538f12b195a8dfaac9abb337c579fef10.jpeg "Occlusion for Multicolor Soft Outline - Part I") ](https://www.youtube.com/watch?v=d_wjyx1DKQA)
