# How do we cast shadows on an invisible object in UE4?

**URL:** <https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778>\
**Category:** Rendering\
**Tags:** Shadows, invisible, unreal-engine, question\
**Created:** [March 5, 2021, 12:33am UTC](https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778 "2021-03-05T00:33:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BismarckZero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BismarckZero](https://forums.unrealengine.com/u/BismarckZero)\
**Post date:** [March 5, 2021, 12:33am UTC](https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778/1 "2021-03-05T00:33:20Z")

</div>

I’m looking to make a game with prerendered backgrounds and my character will be walking on completely invisible collision boxes. The prerendered backgrounds will make them look like they’re walking in hallways, but I want them to cast shadows on the ground as they walk.

Here is an example from the Resident Evil 2002 Remake where the background is prerendered but the character still casts a shadow on the ground and wall:

 ![331518-ss-d75906451d3a57bb8fc65fdea7ce09fbf1d3b7261920x10.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/101fcff1d02e8900925c5df79e90e05463448ef3.jpeg)

To be clear, I’m not talking about an invisible object (like an invisible cube) casting a shadow on the ground like a ghost, I mean having your character cast a shadow under their feet on ground that is invisible.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 5, 2021, 3:06pm UTC](https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778/2 "2021-03-05T15:06:24Z")

</div>

Hello! I dont understand what do you mean. As far as I know If object (or it’s part) is not visible because of depth test (so it is hidden by other object closer to camera), it is not rendered this frame.

---

<div class="post-metadata">

**Author:** ![BismarckZero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BismarckZero](https://forums.unrealengine.com/u/BismarckZero)\
**Post date:** [March 5, 2021, 4:47pm UTC](https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778/3 "2021-03-05T16:47:21Z")

</div>

Take a look at the game Tharsis (2016) created in unity engine:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/8/868bcc1132b46f90e877a5ba0f5dc95973378ff4.jpeg "Tharsis Gameplay / Let's Play - Gameplay Tutorial - Part 1") ](https://www.youtube.com/watch?v=M4ZIlw6Z6PQ)

Notice how the dice rolls in this game are a separate 3D object rendered on the UI with the space station rendered normally in the background. The dice rolls have their own lighting and cast shadows from their own point light. The dice are not falling on top of any visible platform (invisible floor), yet the dice cast shadows onto this invisible floor (see video) and the shadows darken the scene behind them.

I’m trying to find out how to achieve this in unreal.

---

<div class="post-metadata">

**Author:** ![MLorenzo3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MLorenzo3D](https://forums.unrealengine.com/u/MLorenzo3D)\
**Post date:** [April 26, 2022, 1:50am UTC](https://forums.unrealengine.com/t/how-do-we-cast-shadows-on-an-invisible-object-in-ue4/479778/4 "2022-04-26T01:50:27Z")

</div>

Its been a year since you asked this, but if you are still looking for a solution, I think what you’re looking for is the Composure plug-in. Composure allows for real-time compositing of a media plate (your pre-rendered backgrounds) with 3d objects and shadow catchers.
