Jump to content
Sign in to follow this  

ROP File Output: Render png or tiff with alpha channel (Instead of transparency)

Recommended Posts

Hi there !

I have in my houdini file a COP2 network making some changes to textures on my hard-drive, and then outputting those textures with a ‘ROP File Output’ node.
Those textures are actually a set of Masks, each channel is a different mask (R=Metallic,G=AO,B=Emisside and A=Smoothness)

This is working nicely, but here is the issue:
Those outputted .png or .tif files are using the alpha channel as transparency, and if I open them with Photoshop, there is no accessible alpha channel, and instead all my RGB channels are displayed with transparency.
Basically, I cannot use those textures as they are, they are completely impossible for an artist to author in Photoshop.

Is there any way to export/render a COP network into a .png or tiff file, and keep a clear visible alpha channel, accessible in Photoshop ?

Share this post

Link to post
Share on other sites

Consider using EXR file format and apply your custom channels but not in RGBA plane but make your custom channels like Metallic, AO, Emmis, Smooth etc. EXR can handle any number of custom channels.  Every software which can open EXR allows you to pick any of your custom channel and operate with it like you would do with any grayscale image.  

If you really want  PNG or TIF you have to render files without premultiplication (premultiplication will multiply each R,G and B by Alpha and that's not what you want) and store all 4 channels in RGBA.

In general, Color plane is not good way  for exporting custom data (masks are ok) because color plane uses gamma curve which is applied to data, also it clamps negative range etc        

Share this post

Link to post
Share on other sites

Thank you for your answer djiki !

I really want to avoid using EXR, those files are meant to be used by a game engine that does not digest EXR very well. Also, the generated files are meant to be distributed as a package on the web, and EXR files are really heavy.

Could you give me a clue as to how to proceed, to get a png/tif file that is not pre-multiplied ?
When exporting in those formats,"C A" is the only plane scope that the ROP File Output is allowing me to use, so I can rename my channels the way I want, they are always exported as Color+Alpha.
I also tried selecting "Unpremultiplied" as the PNG Premultiplication in the matadata tab of the ROP File Output, but without success.

Also a note, these customs data come from existing textures, generator by other softwares, that I am basically re-packing and modifying (Changing uvs of geometry, etc), and I have disabled all gamma alteration of the imported data, so I should get outputted values identical to the inputted ones.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this