I have been trying out the new dynamic shadows for mobile on a group of static meshes in engine release 4.5 and the shadows that are cast are jet black. Usually the environment color would change the color of the shadow. When you add a dynamic shadow casting light to the scene, all other forms of lighting are ignored.
This happens on the mobile device as well as the mobile previewer.
Hey TeamKingdom, thanks a lot for your help! Now I finally can see my shadows in the preview, and they are not pure black anymore!
Now there’s another problem: I still can’t see dynamic shadows on my landscape. They are shown on my device but not in the preview. Any ideas?
I have the same problem and there is another thread about it as well so it seems like it’s just a bug with the preview mode. I can see shadows on the landscape on the itself but not on the pc mobile preview.
I just wanted to check in with you and see if this issue could be resolved for tracking purposes. If the issue still occurs in later releases, please feel free to re-open this issue. As of this minute, the issue is still open in our database and a timetable for a fix is uncertain.
We’re using 4.6 and this still doesn’t seem to be the case on our end.
1 directional light set to movable
1 skylight set to static
Metal is enabled
HDR is enabled
Result: Shadows are black in mobile preview and on device. We have never been able to get correctly lit (non-black) shadows or indirect lighting on device while dynamic shadows are enabled, using the suggested setup.
If we set the skylight to stationary or moveable as suggested by TeamKingdom as a workaround, then shadows are rendered correctly in the mobile preview, but appear as fully black on device ().
Our game levels are dynamically rendered, so we need to use dynamic lighting and cannot bake anything.
I’m at a loss at this stage. TeamKingdom you seem to have found a solution, but I can’t replicate it on our end. There are so many suggestions, workarounds, and apparently semi-fixed bugs related to dynamic shadows on mobile that the status of this feature seems very unclear.
What would be great from the folks at Epic would be a simple example scene with the “correct” lighting setup, demonstrated to run properly on device.
Epic, what do you suggest we can do to get correctly rendered, non-black shadows on device?
I have followed various bugs on the dynamic lighting on mobile and I can currently run a dynamically lit and shadowed scene on the air. I haven’t tested any other devices and dynamic shadows are reportedly not working on android.
First of all dynamic shadows and light source do not work on 4.6, they are working in the 4.7 preview. At the time of writing I am testing on preview number 6 but the versions are currently up to preview 8.
The setup I use is pretty much as documented. A static skylight, one directional light set to dynamic ( this is my sun ), and a sphere environment capture. This will light static meshes with some indirect to fill in the shadows. It will light moveable, static meshes ( e.g moving platforms ) if their “light as static” checkbox is toggled. It will also light skeletal meshes and self shadow if needed. I haven’t experimented with more sophisticated lighting setups yet but this one definitely works.
Thanks for the reply and the clarification about shadows working as designed in 4.7, rather than 4.6 (I believe your previous comment had a typo mentioning shadows working in 4.6?). I appreciate the time you put into investigating this previously - it’s been very helpful.
Ok, we’ll either have to make do with an unshadowed scene for now or grab the preview.