Bug: UE4.15 & 4.16 import of raw files

First, although the product version for this bug report is 4.16, I checked UE 4.15 also bugs with this (but 4.12 doesn’t,
for instance).

The bug effect is that you cannot load a .raw file once created with the landscape editor whereas no problem appears with .png files.

To reproduce the bug:

  1. In the editor, create a landscape (e.g. with provided settings: 8 by 8 components, each component has 1 by 1 section of 63 by 63 quads)
  2. Assign a landscape material with several layers (I tested this with 3 and 4 – because that’s what I need to do)
  3. Create and assign the layers infos for all the layers (weight blended layers)
  4. Paint the landscape with the material
  5. Export any of the layers in .raw format (.r8 will produce the same bug as well)
  6. Immediately try to reimport this layer
  7. Bug: an editor dialog box opens with the following message: The layer file does not match the current Landscape extent (505×505), and its exact resolution could not be determined.

If you try this with UE 4.12, it works: the .raw file can immediately be reimported with no bug.

Don’t hesitate to contact me if you cannot reproduce it, as I’ve just reproduced all this to write this report.

Stéphane Cardon.

Not sure if you were still looking for any resolution to this, but got it to work.

I exported the heightmap out of World Machine as a 16-bit .r16, then renamed it to .raw, opened it inside Photoshop and in the options I entered: 1 Channel, single channel, 16bit, “IBM PC” byte order, header size = 0 and it opened, I then saved it with a different name with the .raw file format and was able to import it into UE4 landscape without any artifacts.

Hope that was helpful