Material not displayed in packaged game

I’m using UE4.15 on Ubuntu 16.04

I am trying to use the ‘M_AssetPlatform_Grass’ material from the free Open World Demo Collection. In the editor it works fine, however in the packaged game the default checkerboard material is showed instead. The material is in the content folder.

Tried to set “Used with Instances Static Meshes” to “True”, as it was recommended for similar errors, but it didn’t help.
I even tried to create a new, blank project, and apply the material there, but after packaging it produces the same error…

Did you migrate the materials from the open world demo to the new game content folder using the engine or did you manually copy the files over from the folder view in mac?

First I downloaded it on Windows from the marketplace. Then I copied the whole ‘KiteDemo’ folder from the Contents, and added pasted at the Content folder of my project on Linux. So no, I was not directly migrating it.

Can it be the problem? If yes, then how should I get stuff from the marketplace (which is windows only as I know).

Thank you!

Oh I see you have Linux, I defaulted to mac because of the min/max buttons on the left hand side. I would not know how to migrate it between OS’s since I never tried that myself. Unless you can access the Linux partition and navigate to it from the migrate windows in the windows engine I’m not sure how this can work. maybe try opening everything within Linux and doing it there but not sure if the kite demo works there, it should.

I tried to add the assets to a project in Windows, then opened the project in Ubuntu, and migrated the assets to my project - did not help, same checkerboard results.

I also tried to package the showcase map that comes with the open word demo collection, resulting again in the same error.

So today I tried to recreate the material step by step from scratch and found where the problems start.
The problem is with tessellations: when I turn ‘Crack Free Fisplacement’ to True, then the material is not displayed in the packaged Linux game. Without it, if use ‘Flat Tessellation’ then it works (with visible cracks though…), but ‘PM Tessellation’ brakes the material again.

So my problem can be related to: Tesselation doesn't work on linux cooked version - Rendering - Epic Developer Community Forums

Is there any way to get around this, avoiding cracks but still having tessellation and displacement on the material?

Please edit LinuxPlatformProperties.h and add

static FORCEINLINE bool SupportsTessellation()
{
	return true;
}

then rebuild both Windows editor and recook/repackage for Linux.