# How do I render over the top of other static mesh actors?

**URL:** <https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737>\
**Category:** Rendering\
**Tags:** Render, draw, unreal-engine, Rendering, question\
**Created:** [April 24, 2017, 12:47am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737 "2017-04-24T00:47:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [April 24, 2017, 12:47am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/1 "2017-04-24T00:47:50Z")

</div>

I’m trying to render some guidelines on top of blocks that are being placed, much like what the editor does while in editing mode. How can I draw over the top of other static mesh actors like this? I’m concerned that if I use a camera trick, it may not be very efficient. I’m not concerned about lighting.

![135292-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/a/d2a5a235664e45283e00feb90879abf717c6a7fb.png)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 24, 2017, 6:17am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/2 "2017-04-24T06:17:10Z")

</div>

You’ll want to look into how to setup and use custom depth. This should enable you to set something like that up.

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [April 24, 2017, 6:25am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/3 "2017-04-24T06:25:53Z")

</div>

I’ve seem tutorials like this one [link text](https://www.reddit.com/r/unrealengine/comments/4gzcdd/custom_depth_pass_how/) that talk about using custom depth for an outline, or a solid color. How can I make an arbitrary mesh show on top?

---

<div class="post-metadata">

**Author:** ![Benergy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Benergy](https://forums.unrealengine.com/u/Benergy)\
**Post date:** [April 24, 2017, 7:39am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/4 "2017-04-24T07:39:31Z")

</div>

I read that you can create a new material and check “Disable Depth Test” in the Translucency panel. Every mesh with this material should be rendered on top, but I havn’t tried it so far.

And if you want this feature just for the editor, you can try setting bUseEditorCompositing of your PrimitiveComponent to true. I think this is the way they draw the handels in the editor. But again, I’ve never tried it 😉

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [April 25, 2017, 4:35pm UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/5 "2017-04-25T16:35:21Z")

</div>

“Disable Depth Test” seems to work as described, but it draws parts of itself over itself. It also draws in front of the first person character’s arms, which is not something I specified, but it does bother me after seeing that.

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [September 30, 2019, 7:29pm UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/6 "2019-09-30T19:29:10Z")

</div>

Unreal uses the technique for the Gizmo actor in the VR editor. All Gizmo components can be found in EngineContent/VREditor/TransformGizmo.  
The specific material is: TranslucentTransformGizmoMaterial

---

<div class="post-metadata">

**Author:** ![busyframes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@busyframes](https://forums.unrealengine.com/u/busyframes)\
**Post date:** [August 26, 2022, 5:07am UTC](https://forums.unrealengine.com/t/how-do-i-render-over-the-top-of-other-static-mesh-actors/391737/7 "2022-08-26T05:07:15Z")

</div>

I’ve had luck using depth test to do this but I’m trying to render meshes with reflective materials which are not in the translucent domain so all those material properties go away and I can’t tick that box. It’s a weird use case, I have metallic text parented to the camera as it moves through the scene but since it’s 3D, it intersects with geo and gets hidden. Moving it close to camera and scaling it down doesn’t work because depth of field makes it blurry. I thought I saw some way to disable depth of field per material but can’t find that. Maybe there’s a way to do this with composure or some depth test pass. I’m lost for now.
