The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Thu May 14, 2020 7:52 pm



 [ 20 posts ]  Go to page 1, 2  Next
The Palette Swap Problem: Should file size be sacrificed? 

Which would be preferable?
Keeping the current costume system at a lower file size 46%  46%  [ 13 ]
Having better costumes in exchange for a larger file size 54%  54%  [ 15 ]
Total votes : 28

The Palette Swap Problem: Should file size be sacrificed? 
Author Message
BR Member
User avatar

Joined: Sat Sep 20, 2008 12:40 pm
Posts: 2880
Location: ...if you bougth this cd you have been cheated...
Country: United States (us)
Gender: Male
MGN Username: KarmaPilcrow
Skype: BaffleBlend
Currently Playing: the waiting game
Waifu: Furry trash.
It's no secret that our palette swap system is criticized very, very often, and it's recently come to my attention that it's attracted some pretty high-profile ire as of late, too.

To recap what we do have:

SSF2 has the costume system it does because Flash does not have traditional palette-swapping capabilities.
In traditional 2D consoles, and engines like Game Maker, the engine could detect a specific color within a sprite and swap it out with another color.
Flash doesn't do that. Every sprite is a whole object that can't have its colors treated individually.
Instead, we have to apply effects over the entire sprite.
For most characters, there are seven sliders that can be adjusted: Hue, Saturation, Value, Red, Green, Blue, and Contrast. Occasionally, other attributes are altered such as opacity (Ghost Ness), and additional effects are applied such as glow (Kaio-Ken) or inversion (Fighting Silhouette Team), but the same principles apply in that those can only affect the entire sprite, not individual colors.

There is another way we could have traditional palette swaps; by pre-rendering them outside of Flash and putting a different spritesheet for every costume in the game.

We've been avoiding this so far because there are currently, counting Pichu, forty characters in SSF2, each with a minimum of eight costumes. Some simple math would quickly reveal that this would mean we'd need to put a minimum of 360 individual spritesheets in the game, which would make the filesize much, much larger.

However. I propose that this is no longer our main concern. The filesize of SSF2 Beta already well exceeds 500MB, with the large amount of modes, physics, graphics, and audio already present. While I normally believe strongly in optimization, the game has gotten large enough that adding the additional 320+ spritesheets to the game would be a relatively negligible increase at this point.

Furthermore, it would not have to be done with the entire cast. Characters like Mr. Game & Watch, Kirby, Tails, Samus—even some select costumes on the other characters, such as the aforementioned Ghost Ness or Anti-Sora—their costumes are fine as-is. The efforts with this can be concentrated on the characters and costumes that need it the most.

This is not even to mention that it would allow more freedom with the types of costumes possible. Accessories, clothing with different patterns, those would also be possible and more CPU-efficient than the ways we're trying to accomplish them now if we started doing this.

Our palette swap system is a genuine criticism that's stood for far too long. I, for one, am willing to accept an increase of another few hundred MB if necessary.

_________________
ImageImage
Image


Sat Aug 19, 2017 8:26 am
SSF2 Developer
User avatar

Joined: Fri Dec 07, 2012 7:51 pm
Posts: 352
Country: Australia (au)
Gender: Male
Currently Playing: Probably the new patch of SSF2 Beta.
Also worth noting that it's not just adding more spritesheets. A fully coded copy of every character has to be made for every costume.

Meaning that not only does every change made to a character have to be made 8 times over from whenever the change is made to the end of time (otherwise characters would actually function differently per costume, a massive no-no), but that the filesize increase would be absolutely massive, putting the game well over 1GB in size (more than double, just for the sake of costumes).

This would not be a quick fix, and doing this for the whole cast would probably take in the realm of a year or more, as well as extend the development time of all future and current content dramatically.

This is a topic I've actively experimented with many times since I joined the team just under 2 years ago, and none of the possibilities come without massive downsides, whether that be performance, visuals, filesize or workload, generally a combination of multiple.


Sat Aug 19, 2017 9:17 am
BR Member
User avatar

Joined: Sat Sep 20, 2008 12:40 pm
Posts: 2880
Location: ...if you bougth this cd you have been cheated...
Country: United States (us)
Gender: Male
MGN Username: KarmaPilcrow
Skype: BaffleBlend
Currently Playing: the waiting game
Waifu: Furry trash.
Hm... that... does change things, but I'm still holding out hope that we find a more efficient solution.

I think I might have an idea, but I don't have the slightest clue how to express it right this moment... not to mention it's probably something you've already thought of...

_________________
ImageImage
Image


Sat Aug 19, 2017 9:57 am
User avatar

Joined: Wed May 31, 2017 9:54 am
Posts: 109
Country: Antarctica (aq)
We are going to have pika hats and stuff soon right? Let's take fox for example. Can't you separate his skin (fur?) from his clothes into two spreadsheets, overlay them and hue rotate at runtime, kinda treating his outfit as a hat? This should only double the spritesheet size.

_________________
Image


Sat Aug 19, 2017 11:02 am
User avatar

Joined: Wed Nov 30, 2016 9:56 pm
Posts: 341
Location: Ga'loot Prak'Taw
Country: United States (us)
Gender: Male
MGN Username: -CJ-
Currently Playing: Risk of Rain, Toribash, and of course SSF2
Waifu: Sandwiches
I like the palette swaps as is.....I know I'm in the minority, and I don't agree with the system, but I can probably count on two hands the only palette swaps I don't like.

_________________
YouTube Video:

To all you Luigi mains (and others), come on over to Luigi's Mansion! The FA official Luigi discord: https://discord.gg/3hp8e9a

The Filthy Casuals crew discord: https://discord.gg/dVxVham
^A crew all about improvement and growth, I host tournaments at least once a month in this server^.

Speaking of tournaments! ->: https://forums.mcleodgaming.com/viewtop ... 29&t=46713


Sat Aug 19, 2017 3:23 pm
User avatar

Joined: Wed Apr 13, 2016 5:06 pm
Posts: 1104
Location: Bedoop!#7875
Country: Canada (ca)
Gender: Male
MGN Username: Bedoop
Currently Playing: Rayman Origins
Waifu: CLEOD-BOT
I want Sandbag with polka-dots :sandbag:

_________________
ImageImage
Stay groovy, wherever your travels take you. :chibirobo:
Image


Sat Aug 19, 2017 6:24 pm

Joined: Tue Jul 04, 2017 2:07 pm
Posts: 170
Country: Brazil (br)
Gender: N/A
MGN Username: MEGA12312
Currently Playing: MH3U SSF2
Waifu: My bed
Bedoop wrote:
I want Sandbag with polka-dots :sandbag:

Well yeah that would be great.
But i'm not sure how possible that is.

_________________
Honestly, i don't really have a main.
Tails is nice. And marth. So i guess i like... combos?
And floatyness i guess.

Wow they actually fixed Ness' throw. kinda

PICHU HYPEexcept not yet /:|


Sat Aug 19, 2017 6:41 pm
User avatar

Joined: Wed Apr 13, 2016 5:06 pm
Posts: 1104
Location: Bedoop!#7875
Country: Canada (ca)
Gender: Male
MGN Username: Bedoop
Currently Playing: Rayman Origins
Waifu: CLEOD-BOT
Tailsis<3 wrote:
Bedoop wrote:
I want Sandbag with polka-dots :sandbag:

Well yeah that would be great.
But i'm not sure how possible that is.

Well, doing math;
Sandbag has a grand total of 3 frames, being the ), | and ( states. These then have faces applied to them, which are used as follows;

3 frames normally
+3 more frames for sleeping
+4 frames for Final Smash
+5 for Winning Animation
Multiply all of the current above numbers added (15 total) by 2 for the Bandage alt. costume, providing us with 30
+1 for Losing Animation
And should Sandbag ever need lack of a face (For an animation such as facing backwards), +6 more for good measure (3 + Bandage)
So, Sandbag has 37 total frames, but for all intents and purposes it's mainly just 3.
All you have to do is make the Polka Dot pattern for the base 3 sprites, and then copy-paste them onto all of Sandbag's Sprites as intended.
Not that hard, in the grand scheme o' things. :chibirobo:

_________________
ImageImage
Stay groovy, wherever your travels take you. :chibirobo:
Image


Sat Aug 19, 2017 7:16 pm
User avatar

Joined: Wed May 29, 2013 5:15 am
Posts: 2481
Location: The MG Discord
Country: Bangladesh (bd)
Gender: Male
MGN Username: Sonario
Currently Playing: games probably
Waifu: Speedwagon
How about making this a possible option instead of a mandatory change?

_________________
Through plenty of determination, I've beaten I Wanna Be The Guy and so I am a The Guy. My save proves it.


Flash Card: show
Image

My thanks to Utah P. Teasdale (Harr) for the amazing Flash Card.


Sun Aug 20, 2017 1:45 am
User avatar

Joined: Fri Dec 18, 2015 9:53 am
Posts: 649
Location: Either at home or at school
Country: Philippines (ph)
Gender: N/A
Currently Playing: SSF2, Paladins, TF2, Skullgirls
Waifu: m'Lady Lyndis
It would be like a DLC!

Edit:
Another idea I had is to allow players to add client-side color palettes through sliders in some menu so us players can have some fun testing out the color palettes and stuff and maybe adding some color palettes we want that aren't in game

_________________
Mains:
:megaman: ; :lloyd: ; Image

Secondaries:
:bomberman: ; :wario:

For Fun:
:chibirobo: ; :blackmage: ; :ichigo: ; Image ; :isaac: ; :jigglypuff:

Hopefuls:
Lyn(FE); Ike(FE); Zero(MM); Andy(AW); Gilgamesh(FF)

tmanex2013 made the wonderful lyn sprite I used for Image


Sun Aug 20, 2017 2:57 am
Site Admin
User avatar

Joined: Mon Aug 11, 2008 12:27 pm
Posts: 9545
Country: United States (us)
Gender: Male
MGN Username: [TSON]
Skype: thesilencepwnsu
Currently Playing: with myself
bunq wrote:
We are going to have pika hats and stuff soon right? Let's take fox for example. Can't you separate his skin (fur?) from his clothes into two spreadsheets, overlay them and hue rotate at runtime, kinda treating his outfit as a hat? This should only double the spritesheet size.

If his body never stretched or extended or retracted or rotated this would work. Unfortunately it does every single one in every animation :(

_________________


Sun Aug 20, 2017 9:38 am
WWW

Joined: Sat Oct 10, 2009 3:46 pm
Posts: 1514
Location: Westchester, New York
Country: United States (us)
Gender: Male
MGN Username: Zalozis Zemsis
Skype: ZaloZemsis
Currently Playing: Gundam Wing: Endless Dual | Melty Blood: Actress Again Current Code | Super Smash Bros. Brawl
What are all the possible options in Flash, outside of Hue+Saturation and Color Balance? There's definitely Invert and Sepia, right. Are their filters Solarize, Brightness/Contrast, Cross-Process in the program? And can you combine multiple of these filters? Like do Invert -> Desaturate -> Adjust Contrast.



On the bright-side: SandBag and Game&Watch will for sure have the best hats. And I'm bet we will get small characters follow around the character they're attacted to. Like Navi, a Chao, or a Luma.

_________________

Luigi Movement, Cancel, Tech, etc.
YouTube Video:
SSF2 Google Drive
". . . Emphasis . . . of players helping one-another"


Sun Aug 20, 2017 12:14 pm
WWW

Joined: Tue Jul 04, 2017 2:07 pm
Posts: 170
Country: Brazil (br)
Gender: N/A
MGN Username: MEGA12312
Currently Playing: MH3U SSF2
Waifu: My bed
You know
This topic is really killing my hopes for headband jigglypuff and Blue goggles Pichu.
I really hope those are still possible.

_________________
Honestly, i don't really have a main.
Tails is nice. And marth. So i guess i like... combos?
And floatyness i guess.

Wow they actually fixed Ness' throw. kinda

PICHU HYPEexcept not yet /:|


Sun Aug 20, 2017 1:21 pm
BR Member
User avatar

Joined: Fri Sep 26, 2014 1:33 pm
Posts: 2002
Country: Germany (de)
Gender: Male
MGN Username: TSF|Cookies
Currently Playing: PM, Melee, Ultimate, Hollow Knight
Screw the goggles, bagpack or riot

We need the PMD Pichu

_________________
Join Team Star Flash!
Image


Shoutouts to Harr for this sick player card!

Join Chibi Nation, the 20CR Discord for all aspiring Chibi-Robo mains!

Click to expand thumbnail


Sun Aug 20, 2017 1:54 pm
WWW

Joined: Tue Jul 04, 2017 2:07 pm
Posts: 170
Country: Brazil (br)
Gender: N/A
MGN Username: MEGA12312
Currently Playing: MH3U SSF2
Waifu: My bed
TSF|Skylar wrote:
Screw the goggles, bagpack or riot

We need the PMD Pichu

what.

_________________
Honestly, i don't really have a main.
Tails is nice. And marth. So i guess i like... combos?
And floatyness i guess.

Wow they actually fixed Ness' throw. kinda

PICHU HYPEexcept not yet /:|


Sun Aug 20, 2017 1:57 pm
Display posts from previous:  Sort by  
 [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.