Textures appearing incorrectly on mobile

Hi guys,

Bit of a strange one, when deploying to mobile (Google Nexus 6) a few textures are appearing incorrectly, like the image below…

The two pieces of pavement there are the exact same material and exact same mesh, but different results on the texture itself.

The strange thing is if I move the “good texture” mesh to where the “bad texture mesh” is, suddenly the good one stops working and starts appearing incorrectly as well.

It is almost as if the area of the level is making the textures appear incorrectly.

Any ideas what is going on here?

Have tried different materials, different meshes and always get the same results. A couple of locations on the map just will not display the texture correctly.

Also changed the UV channel from 0 to 1, not entirely sure why but it didn’t help in any case.

Any help would be much appreciated!

Tom

Is this happening only in packaged game or do you see the same behavior in editor as well?

Editor looks absolutely fine, just when the game is packaged on mobile.

Is there anything special about the material? Is it just using diffuse/normal textures or is it using something like world-aligned?

Nope, has the main texture and the normal map. Nothing crazy. Will send a screenshot when I get back home.

Assuming this is not something that you have seen before?

We’ve seen something similar but only on Metal on iOS. If you’re able to send me your project, that would be very useful in helping track the issue down.

Thanks

How do I go about sending you the project? Sorry not something I have had to do before!

Have tried other static meshes, other materials, nothing helps. Changed lightmap resolutions. Basically completely lost with this one!

Just zip up your .uproject file, and the Content, Config and if they exist, Build and Source folders from the same directory as the .uproject file. You can mail them to me .porter at epicgames dot com.

Thanks

Sent! Thanks.

We’re looking at this now. For reference, the ticket is UE-20874.

Hi, could you give me exact coordinates where this texture issues happen? So I can setup spawn point right at that place.

Hi,

X -17583.162109 Y 1030.367432 Z 19.127014

Thanks!

Hey guys, any update on this one? Keen to get it fixed :slight_smile:

Cheers

Hi,

The material uses a local to world transformation to compute the mesh scale. It looks like there are some issues with precision on mobile hardware at certain mesh locations.

We’re still looking to see what can be done about it.

Ah ok cool. Hope you find a solution!

Tom

You will need to change one asset in the engine to fix this issue.

  1. In content browser view options set ‘Show Engine Content’ checkbox
  2. Find ObjectScale material function in the Engine Content
  3. Change it to match attached picture

Also it will be better to change your materials that use tiling, specifically all materials that use UV_CustomTexture function.
Right now texture tiling calculated in pixel shader, it’s better to move it to vertex shader.
Like this:

You can read about Customized UV here

Awesome, thanks so much for this, will give it a go later on!

Cheers

Tom