This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Any way to preserve the image exporting with alpha?

Tags: None
(comma "," separated)
User avatar
tymond
KDE Developer
Posts
240
Karma
5
> The problem I see for my workflow is it work for only one layer image, since the alpha is in the layer and I can't set it for a group layer.

Could you please explain your workflow better, from what pictures you have at the beginning, through what editing do you do in Krita, to what effect you want to achieve? There is no "Write as Alpha" in groups but you can use Transparency Masks on group too, and the effect saved into PNG files will be the same (and I guess TGA too if it doesn't support layers, which I don't know). You don't need to put it back into the alpha channel to get the result with proper alpha channel :) The result which is saved is the result of compositing of all nodes (layers + masks), including Transparency Masks. (Even if you use Layer -> Export, you could export the group and it will take the Transparency Mask into account, too).
mangojambo
Registered Member
Posts
6
Karma
0
boudewijn wrote:.


Sorry change the subject, but I need to say it: you look so much like a Brazilian Pianist known as Vinheteiro! ;D

https://www.youtube.com/watch?v=sAfmDnkJD60
mangojambo
Registered Member
Posts
6
Karma
0
Sorry taking that long to answer.
tymond wrote:> Could you please explain your workflow better, from what pictures you have at the beginning, through what editing do you do in Krita, to what effect you want to achieve? There is no "Write as Alpha" in groups but you can use Transparency Masks on group too, and the effect saved into PNG files will be the same (and I guess TGA too if it doesn't support layers, which I don't know)...


Yes, it is possible to use Transparency masks in groups indeed, but the thing is Alpha Mask is affecting RGB channels as well.
Exporting using Transparency Mask: Wrong Image http://prntscr.com/r0crzp
Exporting using Write to Alpha in a one layer only image in Krita: Right image http://prntscr.com/r0csof (*just to be sure the one layer is in Krita. The images exported will always be one layer as well, but it is important to keep the Krita images multi-layer for this purpose, for future editing/adjustments, etc.)

You don't need to put it back into the alpha channel to get the result with proper alpha channel


Yes, i agree. Alpha channel is working well. The problem is how Tranparency mask affects RGB channel.
Here is an Practical example:
-This is an albedo map: http://prntscr.com/r0dcg8
-This the metallic map: http://prntscr.com/r0dcsr it should be in the albedo map alpha channel for this example.

Here it is the right texture applied: http://prntscr.com/r0ddsn The alpha channel didn't darken RGB channels.
And here exporting using Tranparency mask: http://prntscr.com/r0decr where it makes a mess in the RGB channels. It is wrong because Transparency Mask changed the RGB channels to this http://prntscr.com/r0dki3

The conclusion is: Transparency Masks shouldn't change anything from RGB channels, like Alpha Written works when exporting. And Transparency Mask is much more powerful than written alpha, because being able to hide it and work in the texture then unhide/reveal it again to export is an usual workflow for texturing.
User avatar
tymond
KDE Developer
Posts
240
Karma
5
Can you please share the step-by-step process from an empty Krita document to the one that you export to PNG? Please add screenshots of how you arrange layers and tell us what you do with them (including Transparency Masks) (just share a screenshot of the Layers docker in different stages of preparing the final document).

I tried to check your issue but I couldn't get it, it was all correct when I was doing that, so I need exact steps and descriptions on how you're doing this so I can see the issue so it can be fixed in the future. You know, something like:
1. Put image A on layer 1
2. Put image B on layer 2
3. Paint on layer 1
4. Erase on layer 2
5. Put layer 1 and layer 2 in a group... etc.
It would be really, really helpful for diagnosing the issue.

Also you're sure you're not trying to edit alpha channels of layers if you want all information about alpha channel to be on the transparency mask, right? (Just checking).
mangojambo
Registered Member
Posts
6
Karma
0
tymond wrote:Can you please share the step-by-step process from an empty Krita document to the one that you export to PNG? Please add screenshots of how you arrange layers and tell us what you do with them (including Transparency Masks) (just share a screenshot of the Layers docker in different stages of preparing the final document).

I tried to check your issue but I couldn't get it, it was all correct when I was doing that, so I need exact steps and descriptions on how you're doing this so I can see the issue so it can be fixed in the future. You know, something like:
1. Put image A on layer 1
2. Put image B on layer 2
3. Paint on layer 1
4. Erase on layer 2
5. Put layer 1 and layer 2 in a group... etc.
It would be really, really helpful for diagnosing the issue.

Also you're sure you're not trying to edit alpha channels of layers if you want all information about alpha channel to be on the transparency mask, right? (Just checking).


Hello Tymond. I made a video to help to explain my workflow better. I hope it helps:
https://vimeo.com/403546613
Password: rgba
Sorry for the password, don't want it too public. Please, let me know if you need more information, test, anything else. And sorry for the delay, it have being a crazy time those days.

Best regards.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar