YesNoOk
avatar

Partial transparency (Read 555 times)

Started by Flowrellik, November 03, 2014, 06:21:00 pm
Share this topic:
Partial transparency
#1  November 03, 2014, 06:21:00 pm
  • ****
  • The Mad Paletter
Ok guys I have a question in dealing with transparency. In looking at tatsu's kung fu chars in mugen I notice that he uses some sort of special code to achieve a partial transparency on his projectiles seen here
EXHIBIT A

and seen here is what we usually use for CVS chars
EXHIBIT B


How to I make Exhibit B achieve the look of sub-transparency of Exhibit A? I'm really kinda lost here on this one as I looked in fighter factory and both A and B's sprites are completely transparent, so it must be some sort of code in CNS or states file. Thing is which code and how to implement.
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#2  November 03, 2014, 06:42:09 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
Hmm, it looks like Add1 transparency to me. For that to look nice, you have to have a super clean sprite because it will show the black around the sprite.

-[Все слова это только слова.]-
Re: Partial transparency
#3  November 03, 2014, 07:21:40 pm
  • ****
  • The Mad Paletter
hting is how to add it though. I want to experiment abit with this.
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#4  November 03, 2014, 07:33:03 pm
  • *****
    • USA
    • niitris.tumblr.com
Hmm, it looks like Add1 transparency to me. For that to look nice, you have to have a super clean sprite because it will show the black around the sprite.

Ah, so that's what it is; wanted to experiment with lighting effects and such. Something I'd thought I'd know by now. :P
Re: Partial transparency
#5  November 03, 2014, 07:41:56 pm
  • ****
  • The Mad Paletter
Ikr.
So far Tatsu made some pretty amazing effects with this, and was shown on his vids. I would like to at least try and replicate this because lets face it: Exhibit A has a cross feel of KOFXIII with CVS2.
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#6  November 03, 2014, 08:42:31 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
Ah, so that's what it is; wanted to experiment with lighting effects and such. Something I'd thought I'd know by now. :P
It's never too late to learn new things. :D

You can go about it a few ways actually. First is in the animation itself. On each frame, you have transparency options. There are presets like "A" and "S." Set it to A1 to get Add1 transparency. The second way is on the Explod sctrl. There's a parameter called trans. Set that to "add1" without the quotes. The third way is with the "Trans" sctrl and setting the trans parameter to "add1" like with the last method.

-[Все слова это только слова.]-
Re: Partial transparency
#7  November 03, 2014, 09:00:06 pm
  • ****
  • The Mad Paletter
yeah about that.
I found out the "hadouken" is actually a helper not an explod.
I tried many means even in animations but it looks like this is not budging one bit.
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#8  November 03, 2014, 09:12:38 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
Explod or Helper, I provided ways to use Add1 with both. I'm not really sure if it is Add1, but Add would be more noticeable and look like your Exhibit B. You should look at the source of that projectile and see what's going on. Check the CNS and the actual animation.

-[Все слова это только слова.]-
Re: Partial transparency
#9  November 03, 2014, 09:18:19 pm
  • **
  • May the power protect you.
    • USA
    • zordonthe1stranger@gmail.com
That ryu has hi res fx while the other char does not
Re: Partial transparency
#10  November 03, 2014, 09:26:22 pm
  • ****
  • The Mad Paletter
yeah I know that -_-.

Spoiler, click to toggle visibilty
The Ryu is by POTS (Mrlyly edit). I'm not giving up yet until I figure out how this projectile works.
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#11  November 03, 2014, 09:49:03 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
Post stateno 1005 since that's the helper.

-[Все слова это только слова.]-
Re: Partial transparency
#12  November 03, 2014, 09:51:46 pm
  • **
  • May the power protect you.
    • USA
    • zordonthe1stranger@gmail.com
You should just use the projectile helpers from 1 of jmorphsmans chars
Since its updated code.
Re: Partial transparency
#13  November 03, 2014, 10:02:03 pm
  • ****
  • The Mad Paletter
I thought about it zordon and I found The helper.
Spoiler, click to toggle visibilty
I'm not Crazy...I'm just Mentally not-ill enough....
Last Edit: November 03, 2014, 10:05:05 pm by Flowrellik
Re: Partial transparency
#14  November 03, 2014, 11:55:40 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
Code:
[State 1005, Assert]
type = trans
trigger1 = 1
trans = addalpha ; <-- Change to Add1
alpha = 256, 256 ; <-- Remove this line
ignorehitpause = 1

-[Все слова это только слова.]-
Re: Partial transparency
#15  November 04, 2014, 12:43:57 am
  • ****
  • The Mad Paletter
:) It works!
Thankyou!
I'm not Crazy...I'm just Mentally not-ill enough....
Re: Partial transparency
#16  November 04, 2014, 02:22:33 am
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
No problem. :)

-[Все слова это только слова.]-
Re: Partial transparency
#17  November 04, 2014, 12:25:32 pm
  • *****
  • LET THE SWAGGING COMMENCE
    • Philippines
    • Skype - markpachi
    • http://markpachi.mugenflowzone.com/

  • Online
I honestly think we should ask Tatsu himself, so that we'll know his method on how he does it. I'm curious about this as well.



Re: Partial transparency
#18  November 09, 2014, 11:43:34 pm
  • ****
  • The Mad Paletter
I tried asking him before but I didn't get a reply :T
I'm not Crazy...I'm just Mentally not-ill enough....