.raw file format for terrains, question about how to convert from .r16,.r32

Hello,

Unity terrain requires a .raw file format for heightmaps. World Machine can output this, however the file extension becomes either .r16 or .r32. The only type of RAW file I can export is low precision 8 bit, which results in bad banding on the final terrain.

I am playing with magic here because I don’t understand exactly what these file formats mean exactly. Obviously bigger numbers = higher resolution. And 8 bit won’t do. But can I convert these .r16 and .r32 files so that Unity recognizes them?

Thanks!

IIRC you can just rename the R32/r16 to raw. There’s a precision selection in the input window, I think.

1 Like

thanks!

I was trying that and thinking that it wasn’t working. Turns out I was just screwing up a simple thing in world machine. Not exporting the correct extents.

According to Workflows :

Take a read of the entire site if you haven’t done so already :slight_smile:

1 Like