Alpha channel in Labs Maps Baker diffuse map

   2380   1   0
User Avatar
Member
16 posts
Joined: July 2020
Online
I am baking out diffuse maps for use in low-res billboard textures (lowest LOD).

Currently I export to .png. It includes RGB channels and can also export a separate Opacity map.

However Unity URP does transparency based off the alpha channel.

So for each texture being exported, I need to bring it into Gimp and run "Alpha From Color".

It's certainly not a backbreaking amount of work, but I'm curious if there's a way to do this from inside Houdini.

Certainly I could call some external program using a Unixnode, but this sort of sparks a more broad question - is it possible in Houdini to loop through the per-pixel attributes of an image and change them? Or does this need to be done in a separate program?

Attachments:
Screenshot from 2021-05-11 10-40-32.png (388.5 KB)

User Avatar
Member
3 posts
Joined: April 2021
Offline
Ok so this took me a couple days to work out, but I wanted to leave my solution here since it seems to be where google took me.

In 'Maps Baker' there is 'cops_baking'. Inside that is 'rop_Diffuse'
In the 'Metadata' tab, find: 'PNG/TGA Premultiplication'. Set to 'Unpremultiplied'

Obviously you'll want the Alpha attribute included in the composite tab.

Attachments:
Premultiply.png (167.3 KB)

  • Quick Links