Object shadows with ARKit
I've been able to successfully compile and run the "ARSample" project from the Unreal Engine Github repository. I'm using the full production release of UE 4.17. I noticed that the 3D objects in the demo don't cast shadows onto the "real" environment image. Yet, I've seen other AR demos (in other engines and even in Unreal using Ádám Horváth's "AR Toolkit plugin") cast convincing shadows. My question is, how might I go about implementing shadows in the context of ARKit?
I found a solution! A directional light can be set to "Cast modulated shadows". One unique thing about modulated shadows is that they will show up even on surfaces that have unlit materials applied. And since unlit materials are how the ARKit camera feed is displayed in the scene, you can cast shadows onto that camera feed.
For full details on the basics of using ARKit - including a demonstration of how to get shadowing and global illumination effects - see this video tutorial I've posted: https://www.youtube.com/watch?v=Z6FAl6v0ax0
Follow this question
Once you sign in you will be able to subscribe for any updates here