Heightfield Output is incorrect when exporting in RGBA

   2018   1   0
User Avatar
Member
1 posts
Joined: June 2019
Offline
Hello,

I am trying to make a splatmap for terrain in houdini (to be used in a game engine), however, I am getting an unexpected result:

When putting heightfield layers, including some custom layers created by a Copy Layer node, and I export them as a tga with an alpha channel, it produces erroneous results.

On both images attached here, it displays a simple direction mask. However, when exporting it in RGBA, it's like the layer is multiplied by another sediment-like map, and there are almost no gray areas in it (there are a few gray areas in the correct, leftmost image).

The only difference between the two export nodes are RGB vs RGBA.

Why does this happen, and how could I fix it? Thank you.


PS. I might not use a splatmap in the end result, but I'd still like to export masks to use that info to make the terrain nicer.

Attachments:
houdiniBug.jpg (3.7 MB)

User Avatar
Member
1 posts
Joined: May 2022
Offline
I did finally found an answer! You have to go into your heightfield output, then to ROP file Output (Single Out) and in Metadata tab choose PNG/TGA Premultiplication to "Unpremultiplied"

Edited by eugenesaburov - March 1, 2023 11:46:02

Attachments:
Untitled-2.png (48.4 KB)

  • Quick Links