YesNoOk
avatar

Asymmetry, Transformations and costume changes are possible in MUGEN. (Read 8920 times)

Started by ink, November 28, 2017, 04:30:58 pm
Share this topic:

ink

Asymmetry, Transformations and costume changes are possible in MUGEN.
New #1  November 28, 2017, 04:30:58 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
I have been think about how to implement asymmetry and transformations in MUGEN. I believe this is very possible but with some limits, character sprites can't have more than 16 colors(including background transparent color). Also a 16 color character pretty much uses up the whole palette using this method so no effects can be in the palette unless they use the same colors as the character. I believe using this method should be fine for custom states too.


Ive made a quick example of how this should work below.

In Photoshop I've made the first sprite the background image at %100 opacity.

Above that I have a new layer of the color 00ff00 at %50 opacity.

Above that I have the second sprite at %50 opacity.

------------------------------------------------
Doing this creates an image that has 2 images in one sprite.


------------------------------------------------
Below is the new sprite with a palette partially applied to reveal the second sprite.


and of course another palette would be applied to reveal the fist sprite.


----------------------------------------------------------------------------------------------------

Notes:
  • This example shows the most extreme version of an asymmetrical or transforming character, depending on the character it may not need to be this complicated.
  • There are 2 character sprites involved in making an asymmetrical or transforming character. Each of the 2 characters have their own set of 16 colors so they don't need to be the same as each other or anything.
  • This would be best used in MUGEN 1.1, where transparent colors can be used. There are some rare cases where transparent colors don't have to be used but this method would need to be modified for that to work.

Other uses:
  • Captain Americas shield. Which would only be useful for how his shield reacts to custom states. one pallet would be Captain with shield the other would be captain without. (transparent shield over Captain in Photoshop.)
  • This would be great for costume changes too, like M.Bison having a cape or not having a cape. The cape would have around 5colors so it would be more simple to pull off.
  • Super Saiyan form(hair)

-Edit-
Graphicus pointed out that he brought up this idea almost a year go. It’s not a thread devoted to the topic so alot of us missed it. I definitely recommend checking out the thread, he shares a clear examples and the're some other cool ideas/details mentioned there too.
Spoiler, click to toggle visibilty
Last Edit: May 30, 2018, 07:26:40 pm by ink
Re: Asymmetry, Transformations are possible in MUGEN.
#2  November 28, 2017, 04:59:09 pm
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru

  • Online
Well, that definitely sounds crazy... I could even call it TOO crazy. And unbelievable.
Could you, please, make a video-demonstration of how it works? My brain just really can't handle even imagining such thing even working.

ink

Re: Asymmetry, Transformations are possible in MUGEN.
#3  November 28, 2017, 05:01:50 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
Yeah, I was afraid of that. I will try an put together a simple character to show it in action.
Re: Asymmetry, Transformations are possible in MUGEN.
#4  November 28, 2017, 06:07:50 pm
  • *****
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!

ink

Re: Asymmetry, Transformations are possible in MUGEN.
#5  November 28, 2017, 06:11:41 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
The limitations are frustrating. I just realized this would be great for costume changes though, like M.Bison having a cape or not having a cape. The cape would have around 5colors so it would be more simple to pull off.

-edit-
^added to original post
Last Edit: November 28, 2017, 07:11:47 pm by ink
Re: Asymmetry, Transformations are possible in MUGEN.
#6  November 28, 2017, 06:17:34 pm
  • ****
  • The Barbarian
  • Most ****able 2013
    • USA
    • Skype - chronostrifeff7h@hotmail.com
Well, that definitely sounds crazy... I could even call it TOO crazy. And unbelievable.
Could you, please, make a video-demonstration of how it works? My brain just really can't handle even imagining such thing even working.
It's possible and pretty cool. I'm planning on using it for Yamchav4 and Cell Saga Gohan to cover costume options and transform hair styles someday. But the downside is you're going to be working with potentially a lot of colors. So it's ideal if you have characters that aren't using a lot of colors or you know the specific colorsets that are going to overlay(such as hair+skin+shirt). Like ink said a 16 color character is pretty much the maximum limit unless you can guarantee that some colors don't overlay on any sprites in the sheet. In addition with Mugen1.1 SFFs(SFFv2??) you can specify colors on characters to use full alpha transparency(so the pixels are totally transparent).

So with the sprite below(SSj Trunks overlayed with Normal Trunks):


If I want this sprite to be Normal Trunks, I just change the alpha for the Golden Hair Colors on the palette to 100% alpha. Then adjust the palette for the remain hair and possible skin colors to match the Normal Trunks sprite overlay.
I do essentially do the same thing to get an SSj sprite, adjust the palette so the sprite becomes SSj. Then alpha out any remaining normal hair colors.

At this point you have one set of sprites that you can change the appearance of by changing the palette, which can be done in Mugen using remappal, and it will save your character from reverting forms in custom states. It also saves you from needing to make double the AIR anims, doubling the sprites used in the SFF, etc. The cost being it may be much more time consuming to make all 6-12 pals for a character, but the color map ink used seems like a great way of handling that(wish I used it).

Below are those changes in action to get normal trunks (almost, I got lazy and didn't finish but this should give you an idea of where it's going):



Still need to correct some skin x jacket and a bit of colors on the hair. But you can see how from one sprite I've got normal Trunks, and if a adjusted the palette in the opposite direction I'd get SSj Trunks.

ink

Re: Asymmetry, Transformations are possible in MUGEN.
#7  November 28, 2017, 07:10:24 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
That is the general idea.

But have you figured out how the back view of Trunks will look? I am surprised you are able to do it with that few of colors, because anytime his Super Saiyan hair overlaps another color it will need to be accounted for so it looks normal when he is not in Super Saiyan form.

For example his Super Saiyan hair overlapping his arms during moves or getting hit. Unless his hair is somehow always in the background and never the foreground.

Re: Asymmetry, Transformations are possible in MUGEN.
#8  November 28, 2017, 07:13:38 pm
  • ******
    • www.justnopoint.com/
I tried this with Gotenks for ssj3 but he had way too many colors. However that trunks wouldn't be too bad. The simplest solution would be to ONLY make these blended sprites on required sprites. And then you could make duplicates for all your other ones instead. This could limit the amount of colors you'd need as well.

ink

Re: Asymmetry, Transformations are possible in MUGEN.
#9  November 28, 2017, 07:16:07 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
I thought that as well but then there is always the risk of some costume states not work. That would make things a lot easier though.

A small detail that I still think is cool is that the character's small portrait could transform also.
Re: Asymmetry, Transformations are possible in MUGEN.
#10  November 28, 2017, 08:47:18 pm
  • ******
    • www.justnopoint.com/
Custom states wouldn't be an issue if you only replace the required sprites. Using custom animations from P2 wouldn't screw anything up because you can still detect that you are in x animation and replace the anim with your transformed anim. The small port idea is pretty good and could help me with my current issue for full compatibility ^_^

ink

Re: Asymmetry and Transformations are possible in MUGEN.
#11  November 29, 2017, 12:39:30 am
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
The costume change.

Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#12  November 29, 2017, 01:05:04 am
  • *****
  • Kiss me, I'm famous!!
This is awesome. But you said a charcater can't have more of 16 colours(couting the transparency), so, what about the CSed characters? They have the same amount of colours of a stand, or even those which are shown in a palette template, so...why not possible?

Yes, I know I may sound pretty stupid at this point, but that cool Trunks disoriented me.

ink

Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#13  November 29, 2017, 01:16:08 am
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
16 is the max amount of colors in the example I had shown, which was the most extreme example I could come up with.

There are other cases that would work different. For example M.Bison with/without a cape. If there was a formula for how many color slots get wasted it would be  something like  (cape color amount)*(the amount of different colors it overlaps throughout the sprite set) = (Number of color slots you will need free for this method).

So most color separated characters especially the ones that already use up all 256 color slots would not work.
Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#14  November 29, 2017, 05:44:22 am
  • ****
  • Some day I'll finish this thing...
    • Argentina
That's the same method I mentioned here:

Spoiler, click to toggle visibilty

Glad to see Chronan has been able to get it to work.

ink

Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#15  November 29, 2017, 06:23:16 am
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
Well damn... It looks like you guys already went over this idea for the most part nearly a year ago! Thanks for posting that Graphicus, your example looks like it would be easier to understand. I went ahead and added this to the original post.

Last Edit: November 29, 2017, 03:16:23 pm by ink
Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#16  November 29, 2017, 05:12:53 pm
  • ****
  • The Barbarian
  • Most ****able 2013
    • USA
    • Skype - chronostrifeff7h@hotmail.com
That is the general idea.

But have you figured out how the back view of Trunks will look? I am surprised you are able to do it with that few of colors, because anytime his Super Saiyan hair overlaps another color it will need to be accounted for so it looks normal when he is not in Super Saiyan form.

For example his Super Saiyan hair overlapping his arms during moves or getting hit. Unless his hair is somehow always in the background and never the foreground.
If I applied it to the full sheet it'd definitely have some more colors added do to the normal and ssj hair overlaying jackets and skin colors on both face and arms. For general DBZ super saiyan changes or hair style change there shouldn't be too much worry about hair overlapping any mid section stuff. I think for most characters you might be safe to do 2 or maybe up to possibly 3 hair styles, but if clothes are changing as well (Bald Krillin to Buu Saga Krillin for example) the limit might be hit in a single merged sprite sheet. I want to test this more in future characters, since Nail is one of the next ones in line maybe I'll try drawing his jackets on and give him a jacket costume and a no-jacket costume. I'd fully test this out on Trunks but he's already fully coded with all the custom states, and I don't want to rip that apart. I have Teen Gohan and YamchaV4 planned though so I will definitely be using it on them.

I also had to test the alpha transparency stuff out in game just to be 100% sure it works. And it does work! I did two ghost trunks tests, one with alpha decreased from 255 to 128 similar to what ink's Rugal anim has but I did it to skin & hair only to save me some time, and I tested another with alpha set to 0 on skin (full transparency). So for DBZ sake a Ghost Nappa is as easy as a palette change now.




ink

Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#17  November 29, 2017, 05:20:55 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
Very awesome! That makes sense. Have you thought about adding the hair to the small portrait?

It could go outside of the normal box perimeter too because it would only be seen during a match, never messing up the select screen.
Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#18  November 29, 2017, 09:13:29 pm
  • ****
  • The Barbarian
  • Most ****able 2013
    • USA
    • Skype - chronostrifeff7h@hotmail.com
I didn't even think about that but in theory that would work and that would be pretty cool! Cool enough that I'd be willing to redo Trunks in this method, just for the ssj hair sticking out of the small portrait, BUT I'm not sure if the issue is a bug in Mugen 1.1 itself or me but I can't get small ports to react to remappal at all.

I can have it set to 1,1 (the default sprite pal in his SFF), switch to sprite pal checked, but it doesn't seem to ever update his small port. I might just be screwing something up, or it's a 1.1 bug, or my SFF/small port is broke.  can try fudging with the small ports and remappal some more, but I think 1.1 might just be bugged on that aspect.
Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#19  December 10, 2017, 07:10:13 pm
  • ******
  • [E]
    • Mexico
iirc, I remember the only problem we found with this method was then the transformation depends on the facing (because of you know who) and we can't detect facing in custom states which is why sofiyacat's mugen clone had a spriteno trigger; I think I already coded the tool to suprrimpose the two sprite folders though that might have been only on my head, I will check out later.
Re: Asymmetry, Transformations and custome changes are possible in MUGEN.
#20  December 10, 2017, 07:14:51 pm
  • ******
  • Loyal to the Game
    • USA
    • http://jesuszilla.trinitymugen.net/
Eh? I remember being able to detect facing in custom states.