# How to render a 3D UI element, i.e. a mesh without lighting/shadows/shadow casting?

**URL:** <https://forums.unrealengine.com/t/how-to-render-a-3d-ui-element-i-e-a-mesh-without-lighting-shadows-shadow-casting/544015>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0, Rendering, question\
**Created:** [April 29, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-render-a-3d-ui-element-i-e-a-mesh-without-lighting-shadows-shadow-casting/544015 "2022-04-29T16:33:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubm123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rubm123/32/476292_2.png) [@rubm123](https://forums.unrealengine.com/u/rubm123)\
**Post date:** [April 29, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-render-a-3d-ui-element-i-e-a-mesh-without-lighting-shadows-shadow-casting/544015/1 "2022-04-29T16:33:32Z")

</div>

My case is the visualization of the trajectory of an object (an object following a spline path). Along the path, I can put instances of hierarchically instanced meshes. Those can be arrows or spheres (not sure yet). Ideally there will be a translucent tube.

None of these object are part of the real world. You can think of it as a passive, purely informative UI element, only that it is positioned (and transformed) in 3D space. There are some boxes I can untick regarding shadows and I can set up a material with opacity \< 1 and so on.

But I was wondering if there is a recommended way to go about this. Unreal has a lot of stuff activated by default, when I place something in the 3D world.

Also, when I use translucency for some material, I can’t use nanite. At the same time I hope, something like this can be done w/o major impact on the performance as it is supposedly a very simple rendering task.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 29, 2022, 5:09pm UTC](https://forums.unrealengine.com/t/how-to-render-a-3d-ui-element-i-e-a-mesh-without-lighting-shadows-shadow-casting/544015/2 "2022-04-29T17:09:24Z")

</div>

Hi rubm123

You can render those parts to a RenderTarget using the “Unlit” visualization, then use that RenderTarget as a source for your UI.

Yes, no translucency, masks or WPO for nanite materials.

---

<div class="post-metadata">

**Author:** ![rubm123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rubm123/32/476292_2.png) [@rubm123](https://forums.unrealengine.com/u/rubm123)\
**Post date:** [April 29, 2022, 5:37pm UTC](https://forums.unrealengine.com/t/how-to-render-a-3d-ui-element-i-e-a-mesh-without-lighting-shadows-shadow-casting/544015/3 "2022-04-29T17:37:09Z")

</div>

I’m gonna try this out, thanks!
