The Mugen Fighters Guild

M.U.G.E.N Central => Development => Topic started by: electrocaid on June 14, 2014, 11:35:16 am

Title: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 14, 2014, 11:35:16 am
Hello,

I'm currently trying to solve the hereabove mentionned puzzle:

How to gather - if possible easily - the splitted parts of an image divided in 3 RGB channels + 1 alpha channel?

I manage the merging of the 3 RGB channels but i don't know at all how to add the alpha channel to recover the original image

please help!!!
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: MadkaT on June 14, 2014, 04:13:08 pm
This will work, I use GIMP

- In original image: Layer/Mask/Add layer mask and init to anything (white is OK)
- Load the greyscale for the alpha image as layer in same image or in another image.
- Select all & copy to clipboard
- Back to original image layer, make sure it's selected, you can also check that Layer/Mask/Edit layer mask is still set
- Edit/paste: this creates a floating selection
- Layer/Anchor layer: moves floating selection to layer mask
- Apply layer mask
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 14, 2014, 06:42:07 pm
thanks for your help but i'm still having headaches....

even if i've GIMP...

in your explanation: original image = the jpeg file from the merging of RGB channels ?

Quote
Load the greyscale for the alpha image as layer in same image or in another image

=
sorry but there's really something that's missing me....  :bigcry:
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: mAdLaX on June 14, 2014, 07:06:59 pm
Are you doing RGB before putting the 3 pcx images on Fighter Factory?
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 14, 2014, 07:29:42 pm
Are you doing RGB before putting the 3 pcx images on Fighter Factory?
well, this isn't exactly the point: i'm not using fighter factory at all
i'm trying to recreate some images extracted from bg sffs with sffextract
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: mAdLaX on June 14, 2014, 07:32:23 pm
Sorry my mistake.
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 15, 2014, 09:01:32 am
Nice try

anyway, i've tried tried tried & tried again without result : i still can't merge decently the alpha channel with the RGB image  :wall:
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: 【 HadeS 】 on June 16, 2014, 04:28:29 am
If you use Photoshop, paste every layer in a new file and then in layer blend modes (where it's multiplay, overlay and those things) click on Linear Dodge on every layer and tadaaaaaa, you have the original image merged.

If I'm not clear, here I leave you an example: http://www.mediafire.com/download/axr2x4ktkm9mjmg/Test.psd
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 16, 2014, 06:13:21 pm
nice try too :)

tadaaaa: i used photoshop but without success :(

as i your example: all three pcx in grayscale mode... but nothing except a grey image of the original  :sick:

here are the files that i'm trying to gather: https://mega.co.nz/#!txc0yKzC!V5_QxxE34R_ezQhEUcGkLhAbZusb7yukt0TIpAuwwAY

do you arrive to something?

Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: 【 HadeS 】 on June 16, 2014, 07:30:42 pm
Hmmm... check this out
http://www.mediafire.com/download/3xs1ygs3goasnuz/stage_tool.rar
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 16, 2014, 07:39:10 pm
my my my....

thanks a lot but i'm very very frustrated: how is it possible for me to be so stupid...???

this is totaly unbelievable not to understand how to do  :'(
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: 【 HadeS 】 on June 16, 2014, 07:43:51 pm
Maybe when you created a file you had the settings for "grayscale" instead of RGB 8 Bits, but don't worry. There you have them in RGB colors again :D

And no problem, buddy! I like helping when I can :)
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: electrocaid on June 16, 2014, 08:14:35 pm
... well, if i'm correct, i've first tried with RGB sheet & then, by despair, with grayscale one...

the problem is that i should learn how to do that by myself because there will surely be tons of other ones in future (i've already tried to "revive" more than 400 bgs...)

i don't wanna abuse of your kindness... ;)
Title: Re: the best way for merging pcx that have been separated in RGB channels + 1 alpha
Post by: Jiggeh on August 31, 2014, 11:18:54 am
If you're using Photoshop, there's no need to bother with multiple files, multiple layers with different blend modes, etc etc. Just open the Channels window (Window menu -> Channels, it appears as a tab on the Layers window by default) and simply paste each of the greyscale images into their corresponding Colour Channel. Click the New Channel button at the bottom of the window to add an Alpha Channel, and paste the Alpha image there. Done.