Missing Unpremultiplied Option in New COPS File Node

   Views 625   Replies 9   Subscribers 2
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
In the new COPS, the file node does not have an option to load images unpremultiplied, which results in a very dark image. Since I often need to load TGA files with alpha for my work, I'm looking for a good workaround. The old COPS file node does have this option.
Image Not Found
Edited by maartennielen - March 24, 2025 04:36:21

Attachments:
example.tga (1.0 MB)

User Avatar
Member
216 posts
Joined: Jan. 2015
Offline
Workarounds.

Unpremult = rgb divided with the alpha.

Premult = rgb multiplied by the alpha.
Edited by Heileif - March 13, 2025 11:18:41
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
Yeah, thanks for the fast reply. The File node gives a different outcome compared to manually premultiplying or unpremultiplying the correct image without the alpha. So I think something is broken in the File node since the results don’t match. I’ll make an example file
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
Here is an example file. I don't see any way to restore the image by dividing or multiplying with the alpha. As far as I know, this only happens with TGA files.
Image Not Found

Attachments:
example.tga (1.0 MB)

User Avatar
Member
617 posts
Joined: Aug. 2014
Offline
My guess is that you should be importing the image as Raw for the Un-premultiply (Premultiply COP) to work correctly.
In the File COP, change the "Incoming Colorspace" to "Raw", or check the "Raw" flag for the C AOV.
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
Thank you for your reply! Yeah, I also assumed that would be the solution. I think I’ve tried almost every possibility, but I have a feeling it’s a bug. I attached the TGA file in my last post if you want to try it.
Edited by maartennielen - March 24, 2025 17:41:08

Attachments:
example2.jpg (160.3 KB)

User Avatar
Member
617 posts
Joined: Aug. 2014
Offline
Now with File COP set to "Raw", drop a Premultiply COP and unpremultiply the image.
Edited by ajz3d - March 24, 2025 18:02:42
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
Thank you! It’s working now! I don’t know why I couldn’t get it to work before. I did try dividing by the alpha but got a broken result. I just tried it again, and everything seems fine now.
Edited by maartennielen - March 24, 2025 18:13:42
User Avatar
Staff
564 posts
Joined: Aug. 2019
Offline
This has been fixed in 20.5.549. You can disable the new "Pre-multiply if Necessary" parm on the file node.
User Avatar
Member
13 posts
Joined: Aug. 2017
Offline
Thank you very much!
  • Quick Links