I was having trouble ingesting the 8-bit TIFF output from World Machine into a proprietary program and am being told that the format World Machine is exporting is DXGI_FORMAT_B8G8R8A8_UNORM instead of R8G8B8A8. So basically, BGRA instead of RGBA.
Is there a way to unlock some advanced functions or secret inputs to allow me to select the format? I’m seeing if we can expand our ability to import to include the BGR format, but figured I’d mention it here, too, in case it helps others. Thanks!
2 Likes
Hi there,
I’ve just double-checked this, and WM’s 8bit TIFF RGBA export in the Bitmap Output device is RGBA-ordering, compliant with the tiff standard. More precisely (because describing byte ordering is always a bit of a headache) for a given pixel offset X, the R, G, B, A bytes are written sequentially to X+0, X+1, X+2, X+3, in that order. This is in contrast with the BMP format, for example, which writes its color bytes in BGR order.
To be TIFF-standard compliant, you’re really not supposed to write the bytes in any other order; the standard mandates the ordering above. DXGI_FORMAT_B8G8R8A8_UNORM is a GPU pixel order format.. is there any way the data is simply being misintereted by the other app?
2 Likes