# Utilizing Indirect Capsule Shadowing for Moveable Objects

**URL:** <https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [April 15, 2016, 5:29am UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182 "2016-04-15T05:29:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon93806877](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon93806877](https://forums.unrealengine.com/u/anon93806877)\
**Post date:** [April 15, 2016, 5:29am UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/1 "2016-04-15T05:29:25Z")

</div>

Hi guys! With 4.11’s new capsule shadowing technique, I figured it could potentially be useful beyond just characters and could extend to moveable pieces of furniture or potentially other types of assets. I did some experimentation with the number of bones, placement, etc. and it seems that the less bones the better. I basically placed my bones in more or less the spots I wanted in Maya, and then in UE I just modified their placement and the capsule size to fine tune the look of the shadowing.

Here’s a short demo video of what I was able to produce. The scene itself is from the lightmass thread.

I’m definitely open to any thoughts or ideas on this. I’d love to see an improved workflow for this (I kind of just guessed at bone placement and size) as I see a lot of potential at low cost.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/6/6f61aad0fcf72aea5088054ae6280e89d6fab789.jpeg "UE4 Capsule Shadow Experimentation") ](https://www.youtube.com/watch?v=VDYqFaLnBfQ)

---

<div class="post-metadata">

**Author:** ![rabellogp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rabellogp](https://forums.unrealengine.com/u/rabellogp)\
**Post date:** [April 15, 2016, 11:47am UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/2 "2016-04-15T11:47:32Z")

</div>

Nice work, man!

The technique seems to cause artifacts with self shadowing. But it definitely does a nice job with the contact shadows on the ground. Maybe using the bones just in the object’s feet will be the way to go for that.

---

<div class="post-metadata">

**Author:** ![anon73025671](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon73025671](https://forums.unrealengine.com/u/anon73025671)\
**Post date:** [April 15, 2016, 12:35pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/3 "2016-04-15T12:35:59Z")

</div>

Nice work! I had the same idea and I think this is a very good way to go, as some furniture are very lightmap-intense. Did you find any good tuts?

---

<div class="post-metadata">

**Author:** ![Chesire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chesire](https://forums.unrealengine.com/u/Chesire)\
**Post date:** [April 15, 2016, 1:02pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/4 "2016-04-15T13:02:49Z")

</div>

That looks great! Can you tell us some more on how you set it up in Unreal?

---

<div class="post-metadata">

**Author:** ![Wilkes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wilkes](https://forums.unrealengine.com/u/Wilkes)\
**Post date:** [April 16, 2016, 4:51am UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/6 "2016-04-16T04:51:47Z")

</div>

Is it possible to change the penumbra size of these shadows, or is that entirely based on the indirect lighting cache information?

edit: never mind, looks like that’s at the end of Tim’s tutorial. Thanks!

---

<div class="post-metadata">

**Author:** ![serriffe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@serriffe](https://forums.unrealengine.com/u/serriffe)\
**Post date:** [April 16, 2016, 7:29am UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/7 "2016-04-16T07:29:48Z")

</div>

neat! thank you for posting this- that’s really clever

---

<div class="post-metadata">

**Author:** ![spiez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spiez](https://forums.unrealengine.com/u/spiez)\
**Post date:** [April 16, 2016, 4:41pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/8 "2016-04-16T16:41:44Z")

</div>

Really nice technique, I thought it could be feasible but did not had the time to experiment it yet, now I found your post, nice!

---

<div class="post-metadata">

**Author:** ![Wilkes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wilkes](https://forums.unrealengine.com/u/Wilkes)\
**Post date:** [April 16, 2016, 5:30pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/9 "2016-04-16T17:30:20Z")

</div>

I just tested r.CapsuleIndirectConeAngle and it doesn’t seem to make any difference what numbers I put in. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Chesire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chesire](https://forums.unrealengine.com/u/Chesire)\
**Post date:** [April 18, 2016, 12:31pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/10 "2016-04-18T12:31:37Z")

</div>

> [@DanielW;513515](#):
>
> There’s no official doc yet, but this is pretty good:

Thanks !

---

<div class="post-metadata">

**Author:** ![Wilkes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wilkes](https://forums.unrealengine.com/u/Wilkes)\
**Post date:** [April 18, 2016, 6:41pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/12 "2016-04-18T18:41:35Z")

</div>

I was testing it with a stationary skylight indoors, that’s probably what it was.

Is it possible that, in the future, support for multiple shadows will be added? The main problem I’m currently having is that indoors, the shadow direction jumps around wildly as the character moves around because different windows become the strongest light source at that point. It’d be nice if the character could cast a shadow for every window in the scene.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe2d247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe2d247](https://forums.unrealengine.com/u/anonymous_user_fbe2d247)\
**Post date:** [April 20, 2016, 6:14pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/13 "2016-04-20T18:14:23Z")

</div>

If I try to use large value for r.CapsuleIndirectConeAngle it seems to have problem when value goes over half pi. I would like to use directionless ambient occlusion like capsule shadows but it seems that it’s not possible without hacking the compute shader.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_51f5b523](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_51f5b523](https://forums.unrealengine.com/u/anonymous_user_51f5b523)\
**Post date:** [December 19, 2017, 5:54pm UTC](https://forums.unrealengine.com/t/utilizing-indirect-capsule-shadowing-for-moveable-objects/61182/14 "2017-12-19T17:54:45Z")

</div>

As KOOLA answered on UDN :

“change the capsules self shadows globally in world settings -\> Rendering -\> Dynamic Indirect Shadows Self Shadowing Intensity.”

That should do the trick !
