Users browsing this thread: 3 Guest(s)
Vanillaware Ripping Project
#10
It's nice to have more discussion on modern 2D sprites. It's can be pretty hard to find topics related to alpha-blending, gradient map, anti-aliasing kind of stuff. It's always good to have the knowledge of these thing available here.

Let's start with the first one. The texture/parts images for Odin Sphere/Muramasa are all palette image. PS2 Odin Sphere are 256 RGBA color 8-bpp texture with texture swizzling, and Wii Muramasa are 256 RGB5A3 color 8-bpp texture.

It is not until their remake on VITA that they change them to DXT 3/5 video codec, a lossy compression algorithm.
https://en.wikipedia.org/wiki/S3_Texture_Compression

Also, anti-alias is a filter. In GIMP, it uses "Scale3X edge-extrapolation algorithm". I suppose you can use any other algorithm to anti-alias as well, like 2xEagle, 2xSal, HQ2X, Bilinear, etc. Anti-alias also has level and threshold settings to consider.

https://docs.gimp.org/2.6/en/plug-in-antialias.html

If I can, I would prefer to assemble the sprites in raw pixel, and then let the users to use whatever anti-alias filter they want. They can also use the HD filter you shown me on your Legend of Mana project.

About additive blending, the math formula is just FG.rgb + BG.rgb . It doesn't use alpha channel, and therefore addictive blending affects the whole image (or the whole part).

The math formula for normal blending however, is (FG.rgb * FG.A) + (BG.rgb * (1.0-FG.a)) . The blending is in pixel level. If FG.a is 1.0 , then BG.rgb will become zero, and you'll get FG.rgb as the result.

Let's have an example: if FG is rgb(80,40,8) and BG is rgb(120,64,72)

Additive blending is
r = 80 + 120 = 200
g = 40 + 64 = 104
b = 8 + 72 = 80
the result is rgb(200,104,80)

But for normal blending, it will become
FG.a = 80 / 255 = 0.31
r = (255 * 0.31) + (120 * (1.0-0.31)) = 79 + 82 = 161
g = (127 * 0.31) + (64 * (1.0-0.31)) = 39 + 44 = 83
b = (25 * 0.31) + (72 * (1.0-0.31)) = 7 + 49 = 56
the result is rgb(161,83,56)

The result for normal blending is darker than the result of additive blending, because the (1.0-FG.a) part.

Did you noticed? If the BG is all zero, then you'll getting the mask back. The formula is revertible.

The formula I used to convert rgb(80,40,8) into rgba(255,127,25,80) is like this:
highest = 80
r = 80 / 80 * 255 = 255
g = 40 / 80 * 255 = 127
b = 8 / 80 * 255 = 25

You'll need to use a custom blending mode if you want to use my Legend of Mana rips. Just blend the half-transparent pixel with black pixel to get the mask back, then add it to the background pixel, and clamp it to max value 255.

On blending the mask with color via code, it is no surprise since they also do it with the fonts texture. What annoys me the most is the data didn't marked the part requires a color too. And also I can't find that blue color anywhere.

I do agree effects sprites are normally like this, and ofter just unrippable.

I already found the byte on blending. It has 3 values:
0 = normal blend
1 = additive blend
2 = ???

The weird part is on different value. It is int_16 , and has
Odin Sphere = 25 types (0 1 2 3 4 5 6 7 9 b d f 10 11 13 15 19 21 28 29 2d 2f 31 35 39)
Muramasa = 13 types (0 1 2 3 4 5 7 9 11 13 15 29 2d)

There are tons of testing need to be done.

Interestingly, when I was just starting out, I assembled my sprites in HTML, using CSS spritesheet. It would be very interesting to see it in WebGL + Three.js . Heck, even my Castlavania NDS maps are in HTML.

https://www.vg-resource.com/thread-31643.html
https://www.vg-resource.com/thread-37086...#pid660862

Take care,
- Rufas
Reply
Thanked by:


Messages In This Thread
Vanillaware Ripping Project - by rufaswan - 12-31-2020, 05:28 PM
RE: Vanillaware Ripping Project - by SmithyGCN - 12-31-2020, 06:03 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-09-2021, 06:04 PM
RE: Vanillaware Ripping Project - by Magma MK-II - 01-09-2021, 09:41 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-10-2021, 03:15 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-16-2021, 03:42 PM
RE: Vanillaware Ripping Project - by leafthelast - 07-13-2021, 08:54 AM
RE: Vanillaware Ripping Project - by rufaswan - 07-30-2021, 03:07 PM
RE: Vanillaware Ripping Project - by tombmonkey - 01-20-2021, 12:01 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-20-2021, 08:11 PM
RE: Vanillaware Ripping Project - by tombmonkey - 01-21-2021, 12:46 AM
RE: Vanillaware Ripping Project - by rufaswan - 01-21-2021, 06:33 PM
RE: Vanillaware Ripping Project - by tombmonkey - 01-21-2021, 09:54 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-25-2021, 05:22 PM
RE: Vanillaware Ripping Project - by SmithyGCN - 01-26-2021, 01:34 AM
RE: Vanillaware Ripping Project - by rufaswan - 02-02-2021, 05:52 PM
RE: Vanillaware Ripping Project - by FormerUser12 - 02-09-2021, 05:40 PM
RE: Vanillaware Ripping Project - by rufaswan - 02-09-2021, 08:16 PM
RE: Vanillaware Ripping Project - by SmithyGCN - 02-10-2021, 12:02 AM
RE: Vanillaware Ripping Project - by rufaswan - 02-16-2021, 05:15 PM
RE: Vanillaware Ripping Project - by rufaswan - 02-24-2021, 04:29 PM
RE: Vanillaware Ripping Project - by rufaswan - 03-01-2021, 05:15 PM
RE: Vanillaware Ripping Project - by tombmonkey - 03-01-2021, 05:46 PM
RE: Vanillaware Ripping Project - by rufaswan - 03-16-2021, 07:29 PM
RE: Vanillaware Ripping Project - by FormerUser12 - 03-22-2021, 10:26 AM
RE: Vanillaware Ripping Project - by rufaswan - 03-24-2021, 05:32 PM
RE: Vanillaware Ripping Project - by rufaswan - 04-12-2021, 07:29 PM
RE: Vanillaware Ripping Project - by Raccoon Sam - 04-13-2021, 03:23 PM
RE: Vanillaware Ripping Project - by rufaswan - 04-13-2021, 06:11 PM
RE: Vanillaware Ripping Project - by rufaswan - 04-20-2021, 08:05 PM
RE: Vanillaware Ripping Project - by rufaswan - 04-26-2021, 08:22 PM
RE: Vanillaware Ripping Project - by rufaswan - 05-13-2021, 03:20 PM
RE: Vanillaware Ripping Project - by rufaswan - 05-27-2021, 03:20 PM
RE: Vanillaware Ripping Project - by Erborot - 06-01-2021, 11:58 PM
RE: Vanillaware Ripping Project - by rufaswan - 06-09-2021, 05:32 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-06-2021, 08:33 AM
RE: Vanillaware Ripping Project - by 3zizuz - 09-06-2021, 02:55 PM
RE: Vanillaware Ripping Project - by rufaswan - 09-07-2021, 03:50 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-09-2021, 11:36 AM
RE: Vanillaware Ripping Project - by rufaswan - 09-09-2021, 01:55 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-09-2021, 04:52 PM
RE: Vanillaware Ripping Project - by rufaswan - 09-10-2021, 03:07 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-10-2021, 04:10 PM
RE: Vanillaware Ripping Project - by rufaswan - 09-11-2021, 12:43 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-11-2021, 01:48 PM
RE: Vanillaware Ripping Project - by 3zizuz - 09-15-2021, 08:42 AM
RE: Vanillaware Ripping Project - by rufaswan - 09-15-2021, 02:46 PM
RE: Vanillaware Ripping Project - by miru - 10-29-2021, 03:45 PM
RE: Vanillaware Ripping Project - by rufaswan - 10-30-2021, 05:20 PM
RE: Vanillaware Ripping Project - by rufaswan - 11-25-2021, 05:39 PM
RE: Vanillaware Ripping Project - by messusatsu - 12-17-2021, 01:34 PM
RE: Vanillaware Ripping Project - by rufaswan - 12-19-2021, 10:37 PM
RE: Vanillaware Ripping Project - by messusatsu - 12-21-2021, 04:44 PM
RE: Vanillaware Ripping Project - by messusatsu - 12-21-2021, 06:37 PM
RE: Vanillaware Ripping Project - by rufaswan - 12-22-2021, 01:23 AM
RE: Vanillaware Ripping Project - by lilinachan - 03-30-2022, 07:45 PM
RE: Vanillaware Ripping Project - by rufaswan - 05-19-2022, 07:58 PM
RE: Vanillaware Ripping Project - by rufaswan - 12-18-2022, 12:38 AM
RE: Vanillaware Ripping Project - by rufaswan - 05-18-2023, 12:02 PM
RE: Vanillaware Ripping Project - by Sophignon - 06-05-2023, 08:18 PM
RE: Vanillaware Ripping Project - by rufaswan - 06-06-2023, 10:06 AM
RE: Vanillaware Ripping Project - by Sophignon - 06-08-2023, 05:02 AM
RE: Vanillaware Ripping Project - by rufaswan - 06-09-2023, 09:24 AM
RE: Vanillaware Ripping Project - by Xantis - 06-30-2023, 04:49 PM
RE: Vanillaware Ripping Project - by rufaswan - 07-02-2023, 09:03 AM
RE: Vanillaware Ripping Project - by Xantis - 07-02-2023, 12:38 PM
RE: Vanillaware Ripping Project - by HLI5KY - 09-12-2023, 10:20 AM
RE: Vanillaware Ripping Project - by HLI5KY - 09-13-2023, 08:08 AM
RE: Vanillaware Ripping Project - by Rudeus - 09-18-2023, 06:41 AM
RE: Vanillaware Ripping Project - by rufaswan - 09-18-2023, 09:32 AM
RE: Vanillaware Ripping Project - by Rudeus - 09-19-2023, 08:03 AM
RE: Vanillaware Ripping Project - by rufaswan - 09-19-2023, 10:56 AM
RE: Vanillaware Ripping Project - by rufaswan - 10-02-2023, 09:18 AM
RE: Vanillaware Ripping Project - by rufaswan - 11-07-2023, 07:52 AM
RE: Vanillaware Ripping Project - by switchkult - 11-27-2023, 01:52 AM
RE: Vanillaware Ripping Project - by rufaswan - 11-29-2023, 06:07 AM
RE: Vanillaware Ripping Project - by Muramasa - 12-26-2023, 03:33 PM
RE: Vanillaware Ripping Project - by rufaswan - 12-30-2023, 06:43 AM
RE: Vanillaware Ripping Project - by Muramasa - 12-30-2023, 06:22 PM
RE: Vanillaware Ripping Project - by rufaswan - 12-31-2023, 08:02 AM
RE: Vanillaware Ripping Project - by Muramasa - 01-02-2024, 03:15 PM
RE: Vanillaware Ripping Project - by rufaswan - 01-13-2024, 08:58 AM
RE: Vanillaware Ripping Project - by coolPoi - 02-12-2024, 07:41 AM
RE: Vanillaware Ripping Project - by rufaswan - 02-14-2024, 06:03 AM
RE: Vanillaware Ripping Project - by coolPoi - 02-15-2024, 01:20 AM
RE: Vanillaware Ripping Project - by rufaswan - 02-15-2024, 05:37 AM
RE: Vanillaware Ripping Project - by coolPoi - 02-15-2024, 08:38 AM
RE: Vanillaware Ripping Project - by rufaswan - 03-09-2024, 07:57 AM
RE: Vanillaware Ripping Project - by Valarant - 03-20-2024, 10:23 PM
RE: Vanillaware Ripping Project - by rufaswan - 03-21-2024, 06:01 AM
RE: Vanillaware Ripping Project - by rufaswan - 04-04-2024, 07:43 AM
RE: Vanillaware Ripping Project - by havoc - 04-15-2024, 04:52 PM
RE: Vanillaware Ripping Project - by rufaswan - 04-17-2024, 08:15 AM
RE: Vanillaware Ripping Project - by havoc - 04-19-2024, 09:00 AM
RE: Vanillaware Ripping Project - by rufaswan - 04-20-2024, 07:03 AM
RE: Vanillaware Ripping Project - by redemon - 04-29-2024, 02:43 AM
RE: Vanillaware Ripping Project - by redemon - 04-29-2024, 11:12 AM

Forum Jump: