RAW16 File Format Specification

First off, WM is amazing. Thanks for all your hard work.

I’m trying to write a converter for RAW16 to 32bpp PNG with the height values placed across the red and green channels of the PNG. Can anyone shed some light on how that file is setup so I can read it properly? Is there a BOM? Or is it just a straight write of the height values?

Thanks.

Hi there,

Thanks!

All RAW formats are simply a direct data dump with no header or BOM. So the 16bit raw format is a series of intel-format 16bit words representing the elevations. RAW is definitely a lowest-common-denominator format – the lack of header information means among other things that, for example, non-square terrains are impossible (no way to resolve their dimensions from the data)

That’s what I figured but it’s nice to have confirmation. Thanks so much!