# Can't use ARKitCameraMaterial as ground material to receive dynamic shadow in AR

**URL:** <https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712>\
**Category:** XR Development\
**Tags:** ARKit, dynamic-shadows, unreal-engine, bug-report, question\
**Created:** [March 6, 2019, 9:21am UTC](https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712 "2019-03-06T09:21:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d80af7cb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d80af7cb](https://forums.unrealengine.com/u/anonymous_user_d80af7cb)\
**Post date:** [March 6, 2019, 9:21am UTC](https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712/1 "2019-03-06T09:21:19Z")

</div>

1.I’m using 4.21 for ARKit developing.

2.I am using ARKitCameraMaterial as ground material to receive dynamic shadow in AR, just like the following guide.  
[Getting Started With ARKit In Unreal Engine 4 - YouTube](https://www.youtube.com/watch?v=Z6FAl6v0ax0&t=1200s)#Getting Started With ARKit In Unreal Engine 4

3.Then the problem 1: the material which called “ARKitCameraMaterial” is not a unlit material after 4.20, so we can’t rendering it on a surface under the object to fake the ground which can receive dynamic shadow.

4.The problem 2: when i use ScreenPosition UV to modify “ARKitCameraMaterial”, it shows wrong UV scale on the divices.

Also there is a post talking about this problem:[link text][1], but it’s still unresovled.

Here is how you repeat this problem:  
1.Create and open the Template Project Handheld AR in 4.21.2 (same in 4.20\4.22p) the Apple ARKit plugins enabled.  
2.Open BP\_Placeable  
3.Add a plane under the object.

 ![270456-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/c/efcd79a8c2c72a558378afebc70ca22680b2674d.jpeg)

4.Make a copy of ARKitCameraMaterial.

 ![270457-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/5/84547bb43b0b4f271c9a0973ac01d74d2e9a8195.png)

5.Open the copy and edit nodes like this.

 ![270458-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/4/0f4401546cc98b65262dd0e72e3b782e18a260a3.png)

6.Put this modified material on the plane.

 ![270459-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/5/885d7a859afd3e4d36c53bece4acc6197812fb74.png)

7.Save all, Launch it to the Device (My phone is iPhoneX) and test.  
Here is the screenshot from my test:

 ![270460-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/0/94026aec8d657898078d1437e3e1a97213e2e445.jpeg)

It’s clearly shows a bug is making the ARKit Passthough Camera Texture display wrong UV on the plane;  
To fix this problem, we might need a node to crop the UVs properly, just like ARcore that Google provided a node can gives us the right UVs.

On the other hand, please allow ARKitCameraMaterial to receive dynamic shadow, it’s really important to Improve realism in AR.

---

_[View the full topic](https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712)._
