UE4 4.9 - cast modulated shadows causes flickering on IOS dynamic characters

1623 篇文章 22 订阅
1407 篇文章 2 订阅

UE4 4.9 - cast modulated shadows causes flickering on IOS dynamic characters

0

I'm using UE4 4.9 for mobile IOS. The shadows flicker on certain characters (but not all, despite all having the same options selected) when playing on IOS. It appears fine in editor/play. It resembles z-fighting but there is only one mesh.

I am using a stationary directional light with "cast modular shadows" option checked on. The characters have Cast Shadow and Dynamic Shadow checked on. I have attempted to package with Dynamic Shadow checked and unchecked without change in shadow flickering.

The Modulated Shadows settings are Min Rough: 1, Shadow Bias: 0, Shadow Filter Sharpen: 0. I have tried playing with those settings as well with no change in flickering.

Product Version:  UE 4.9
Tags: ios mobile shadows 4.9 flickering
more ▼

asked Sep 10 '15 at 3:56 AM

Anngelica gravatar image

Anngelica 
1  2  3

Logan Bailey gravatar image  Logan Bailey ♦♦  STAFF  Sep 15 '15 at 2:13 AM

Hello Anngelica,

I am sorry you having this issue.

From what you describe you have a project set for mobile IOS device. On certain characters you see a flickering shadow that resembles Z-fighting. This only occurs when you play in mobile preview but not in editor/play.

This is because this action invalidates the precalculated lighting. If the lighting was rebuilt after the change then it would work as expected. In deferred rendering this action causes the lighting system to revert back to dynamic preview lighting (falling back to movable lighting). That path is not currently supported by the forward renderer.

Devices that do not support depth fetch in shader (iPhone4, etc) will not even try to render decals and modulated shadows.

So if the device that you are trying to package to does not support depth fetch it won't even try and render.

What device are you attempting to package to?

If you have not built lighting before changing from Stationary to Movable and the other way respectively then the shadows will be invalidated and not render correctly.

Here is a link to what is supported on what devices.

https://docs.unrealengine.com/latest/INT/Platforms/iOS/DeviceCompatibility/index.html

This is an updated list :

https://wiki.unrealengine.com/IOS_Device_Compatibility#Device_Specific_Notes

This is our list on performance for IOS :

https://docs.unrealengine.com/latest/INT/Platforms/Mobile/Performance/index.html

After looking through our documentation and determining if there is a compatibility issue, please post again with what you have found.

Logan

Logan Bailey gravatar image  Logan Bailey ♦♦  STAFF  Sep 15 '15 at 11:20 PM

Hello Angelica,

I was wondering if you were still having this issue? Also, have you had a chance to look into the above mentioned troubleshoots?

Thank you,

Logan

Anngelica gravatar image  Anngelica  Sep 15 '15 at 11:33 PM

Hi Logan,

Thank you so much for responding!

The issue is occurring on the iPad Air and iPad Air 2. We aren't sure if depth fetch in shader is supported on it and are trying to find out.

I'm sorry but I'm not sure I understand the build lighting suggestions. I build lighting as stationary prior to packaging the project and the flickering occurs. I have not changed the light type - it is stationary and needs to remain stationary, so will I have to change it to something else and build first?

I probably should've used the term 'dynamic' in the title of this question instead of 'movable', sorry about that. Edited.

Logan Bailey gravatar image  Logan Bailey ♦♦  STAFF  Sep 15 '15 at 11:46 PM

Hello Anngelica,

So, Stationary and Static lighting require a build to calculate how the lights will be calculated inside of your scene. As long as you are building with Stationary before packaging you should be fine.

I was just running down a list of possible troubleshoots.

Logan

NoaScape gravatar image  NoaScape  Dec 07 '15 at 10:28 AM

Hello, thanks for this post.

My company is having the same problem with these severe shadow flickering on characters in 4.9 when played on iPad air 2.

Do you know if this has been fixed in 4.10?

Thank you!

Logan Bailey gravatar image  Logan Bailey ♦♦  STAFF  Dec 07 '15 at 11:00 PM

Hello NoaScape,

If you would please post a separate thread with your issue and all information that could be relevant to your project and what you see happening when you launch to the iPad air 2. Also if you would include screenshots and reproduction steps leading up to when you first noticed your shadows flickering. Lastly, if you would post a link to that thread here. I will then assign myself to that issue.

Thank you,

Logan

NoaScape gravatar image  NoaScape  Dec 08 '15 at 9:21 AM

Thank you for your reply, Logan. I will get some screen shots of some simple assets and start a new thread as you indicated.

Much appreciated!

NoaScape gravatar image  NoaScape  Dec 08 '15 at 6:09 PM

We did a test, and discovered that the shadows on the characters seem to look clean on iPad when the character is very close to a mesh which is casting shadows, but the shadows become jittery as they get further from the mesh. I will create a proper thread tomorrow. Thank you!

NoaScape gravatar image  NoaScape  Dec 09 '15 at 2:46 PM

We are going to double check a couple more things before posting a new thread. Thank you!

Puyak gravatar image  Puyak  Dec 14 '15 at 7:31 AM  Newest

Just wanted to mention that I had the same issue on iPhone6s. (4.10.1) I got around the issue by changing the directional light mobility from Stationary to Movable . Although Epic warns about performance hit, but for our scene which is quite complex the performance was same for iPhone6s. Hope this helps.


1 answer: sort voted first 
0

Hello Anngelica,

I have a question. If you switch your lights to dynamic and then launch to the iPad Air does this fix the issue? Also have you had a chance to check if depth fetch is supported?

Logan

more ▼

answered Sep 17 '15 at 2:23 AM

Logan Bailey gravatar image

Logan Bailey ♦♦ STAFF 
10.4k  137  3  89


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
资源包主要包含以下内容: ASP项目源码:每个资源包中都包含完整的ASP项目源码,这些源码采用了经典的ASP技术开发,结构清晰、注释详细,帮助用户轻松理解整个项目的逻辑和实现方式。通过这些源码,用户可以学习到ASP的基本语法、服务器端脚本编写方法、数据库操作、用户权限管理等关键技术。 数据库设计文件:为了方便用户更好地理解系统的后台逻辑,每个项目中都附带了完整的数据库设计文件。这些文件通常包括数据库结构图、数据表设计文档,以及示例数据SQL脚本。用户可以通过这些文件快速搭建项目所需的数据库环境,并了解各个数据表之间的关系和作用。 详细的开发文档:每个资源包都附有详细的开发文档,文档内容包括项目背景介绍、功能模块说明、系统流程图、用户界面设计以及关键代码解析等。这些文档为用户提供了深入的学习材料,使得即便是从零开始的开发者也能逐步掌握项目开发的全过程。 项目演示与使用指南:为帮助用户更好地理解和使用这些ASP项目,每个资源包中都包含项目的演示文件和使用指南。演示文件通常以视频或图文形式展示项目的主要功能和操作流程,使用指南则详细说明了如何配置开发环境、部署项目以及常见问题的解决方法。 毕业设计参考:对于正在准备毕业设计的学生来说,这些资源包是绝佳的参考材料。每个项目不仅功能完善、结构清晰,还符合常见的毕业设计要求和标准。通过这些项目,学生可以学习到如何从零开始构建一个完整的Web系统,并积累丰富的项目经验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值