# 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:** 3\
**Page:** 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.

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [March 6, 2019, 6:49pm UTC](https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712/2 "2019-03-06T18:49:38Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks

---

<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 11, 2019, 4:40am UTC](https://forums.unrealengine.com/t/cant-use-arkitcameramaterial-as-ground-material-to-receive-dynamic-shadow-in-ar/444712/3 "2019-03-11T04:40:47Z")

</div>

Hi Jeff，  
Thanks for the link you provided;  
But it says i need to login salesforce to submit this bug…which i don’t have…
