Users browsing this thread: 15 Guest(s)
(Another) Zelda Ripping Project!
(06-01-2022, 10:59 PM)scurest Wrote: About vertex color formula vertexColor * 2 * baseColor:

That's also the formula the PS1 used (it let's you also brighten textures instead of only darkening them). The neutral point where there's no effect on the texture is vertexColor=0.5 since 2*0.5=1. But if it's like the PS1 it's supposed to be in sRGB space. Starting in Blender 2.8, colors are passed around in linear space, so 0.5 (sRGB) will be passed into the node as 0.22 (linear) and 2*0.22=0.44 which makes things too dark. So you can try using a factor of about 4.6 instead of 2 to keep the neutral point neutral. I found this worked pretty well for PS1 models I tried. Unfortunately it loses accuracy as you move away from vertexColor=0.5, but maybe you can try it and see if it's any better than changing the global exposure.

Oh cool, that's good to know. I did some earlier experimentation with Vertex Coloring and noticed the same thing you mentioned: that the mid colors (0.5) seemed neutral, while the darks were darker and the lights were lighter. But I couldn't get it to look quite right in Blender 2.9 at the time because I wasn't familiar enough with the program.

I did read from somewhere that Blender made a change into using "linear space" for color and lighting calculations, which I guess is generally better for realistic 3D work, or "how humans would interpret colors" more so. But in this particular case we aren't trying to recreate a realistic 3D space, but a very specific sRGB color space, so yeah that does cause some issue.

I wasn't aware of the exact math behind linear/sRGB calculations, but I was able to correct the 0.44 color imbalance by adjusting the scene's Color Exposure to 1.2. Which, if my math is correct, may have pushed that 0.44 into being perceptually closer to 0.528, which would make it look closer to correct. Adjusting the scene exposure does work, but it also has the effect of over-brightening any object that isn't using this specific shader too.

I'll experiment with the numbers you mentioned here later though and see what I can get. You seem much more knowledgeable about the exact math of it all -- I just approach the issue from an artist perspective, so I'm eyeballing it to get colors at approximate correct values.

I don't know much python, but I skimmed over that link you posted. Is that an entire automation script to import Vagrant Story models? It looks like it even automates the "File > Import" process too, if I'm correct. I'll have to look at it closer.

Do you have a sample model I can borrow to test out your script (or point me to a link to which models you used)?

Here's an interesting thought: I know that you can change the rendering engine in a Blend file, the usual options being "Eevee, Workbench, or Cycles". And I know there used to be an older Blender Render which was scrapped to focus on improving Eevee. Would it be possible to write a 4th render engine that is specialized to render in a videogame sRGB manner? I wouldn't expect it written from scratch, more so a tweaked Eevee renderer that just adjusts some of the internal math values to be more in line with sRGB color space.
Reply
Thanked by: Starkium


Messages In This Thread
(Another) Zelda Ripping Project! - by JerseyXS97 - 01-18-2016, 02:52 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 03-18-2016, 05:10 AM
RE: (Another) Zelda Ripping Project! - by kamishi - 03-29-2016, 04:19 PM
RE: (Another) Zelda Ripping Project! - by xdaniel - 06-10-2016, 06:09 AM
RE: (Another) Zelda Ripping Project! - by Guy - 07-20-2016, 09:05 PM
RE: (Another) Zelda Ripping Project! - by Guy - 07-24-2016, 02:55 AM
RE: (Another) Zelda Ripping Project! - by Guy - 07-29-2016, 03:03 AM
RE: (Another) Zelda Ripping Project! - by Guy - 01-13-2017, 11:50 PM
RE: (Another) Zelda Ripping Project! - by Guy - 01-15-2017, 11:38 PM
RE: (Another) Zelda Ripping Project! - by Guy - 01-24-2017, 10:44 PM
RE: (Another) Zelda Ripping Project! - by Kosmil - 01-29-2017, 12:03 PM
RE: (Another) Zelda Ripping Project! - by Guy - 01-29-2017, 02:42 PM
RE: (Another) Zelda Ripping Project! - by Kosmil - 01-29-2017, 05:14 PM
RE: (Another) Zelda Ripping Project! - by Guy - 01-30-2017, 03:40 AM
RE: (Another) Zelda Ripping Project! - by Kosmil - 01-30-2017, 04:34 AM
RE: (Another) Zelda Ripping Project! - by Guy - 02-04-2017, 04:55 PM
RE: (Another) Zelda Ripping Project! - by Euden - 02-09-2017, 04:58 AM
RE: (Another) Zelda Ripping Project! - by Euden - 02-17-2017, 06:01 PM
RE: (Another) Zelda Ripping Project! - by Euden - 02-17-2017, 09:55 PM
RE: (Another) Zelda Ripping Project! - by Euden - 02-19-2017, 10:28 AM
RE: (Another) Zelda Ripping Project! - by Euden - 02-23-2017, 03:16 PM
RE: (Another) Zelda Ripping Project! - by Euden - 02-27-2017, 04:00 PM
RE: (Another) Zelda Ripping Project! - by xiexe - 03-09-2017, 01:57 AM
RE: (Another) Zelda Ripping Project! - by xiexe - 03-09-2017, 10:10 AM
RE: (Another) Zelda Ripping Project! - by ravio - 03-12-2017, 01:39 AM
RE: (Another) Zelda Ripping Project! - by ravio - 03-12-2017, 05:26 AM
RE: (Another) Zelda Ripping Project! - by Nepfan - 03-14-2017, 06:57 AM
RE: (Another) Zelda Ripping Project! - by ravio - 03-14-2017, 07:53 AM
RE: (Another) Zelda Ripping Project! - by Nepfan - 03-14-2017, 10:22 AM
RE: (Another) Zelda Ripping Project! - by Nepfan - 03-14-2017, 11:08 AM
RE: (Another) Zelda Ripping Project! - by ravio - 03-15-2017, 10:19 AM
RE: (Another) Zelda Ripping Project! - by Sabi96 - 03-15-2017, 02:39 PM
RE: (Another) Zelda Ripping Project! - by ravio - 03-16-2017, 12:49 AM
RE: (Another) Zelda Ripping Project! - by ravio - 03-16-2017, 01:08 PM
RE: (Another) Zelda Ripping Project! - by ravio - 03-17-2017, 12:12 AM
RE: (Another) Zelda Ripping Project! - by zSydor - 03-20-2017, 08:56 PM
RE: (Another) Zelda Ripping Project! - by ravio - 03-21-2017, 01:07 AM
RE: (Another) Zelda Ripping Project! - by XPS - 03-22-2017, 09:31 PM
RE: (Another) Zelda Ripping Project! - by digivee - 03-25-2017, 01:30 AM
RE: (Another) Zelda Ripping Project! - by Guy - 03-26-2017, 11:03 AM
RE: (Another) Zelda Ripping Project! - by zSydor - 03-25-2017, 03:04 PM
RE: (Another) Zelda Ripping Project! - by zSydor - 03-26-2017, 11:32 AM
RE: (Another) Zelda Ripping Project! - by XPS - 03-27-2017, 08:52 PM
RE: (Another) Zelda Ripping Project! - by digivee - 03-28-2017, 05:01 PM
RE: (Another) Zelda Ripping Project! - by digivee - 03-29-2017, 12:45 PM
RE: (Another) Zelda Ripping Project! - by zSydor - 04-02-2017, 05:43 PM
RE: (Another) Zelda Ripping Project! - by Grizzly - 04-03-2017, 11:50 AM
RE: (Another) Zelda Ripping Project! - by thatrs - 04-04-2017, 06:22 AM
RE: (Another) Zelda Ripping Project! - by Makoto - 04-24-2017, 07:21 AM
RE: (Another) Zelda Ripping Project! - by zSydor - 04-24-2017, 04:31 PM
RE: (Another) Zelda Ripping Project! - by zSydor - 04-24-2017, 08:02 PM
RE: (Another) Zelda Ripping Project! - by zSydor - 04-24-2017, 09:13 PM
RE: (Another) Zelda Ripping Project! - by Atlanta - 04-27-2017, 02:45 PM
RE: (Another) Zelda Ripping Project! - by Relt - 04-29-2017, 05:07 AM
RE: (Another) Zelda Ripping Project! - by Relt - 05-03-2017, 12:20 PM
RE: (Another) Zelda Ripping Project! - by Euden - 05-02-2017, 07:55 AM
RE: (Another) Zelda Ripping Project! - by SPG - 05-12-2017, 10:20 PM
RE: (Another) Zelda Ripping Project! - by zSydor - 05-14-2017, 06:46 PM
RE: (Another) Zelda Ripping Project! - by Kasuto - 05-18-2017, 04:10 AM
RE: (Another) Zelda Ripping Project! - by Pingus! - 06-06-2017, 05:49 PM
RE: (Another) Zelda Ripping Project! - by Dazz - 06-06-2017, 06:50 AM
RE: (Another) Zelda Ripping Project! - by sws - 06-10-2017, 12:50 PM
RE: (Another) Zelda Ripping Project! - by Orel67 - 06-11-2017, 07:24 AM
RE: (Another) Zelda Ripping Project! - by sws - 06-12-2017, 11:55 AM
RE: (Another) Zelda Ripping Project! - by sws - 06-12-2017, 03:28 PM
RE: (Another) Zelda Ripping Project! - by Atimix - 06-21-2017, 09:41 PM
RE: (Another) Zelda Ripping Project! - by caysao1 - 06-24-2017, 10:32 AM
RE: (Another) Zelda Ripping Project! - by caysao1 - 06-25-2017, 06:03 PM
RE: (Another) Zelda Ripping Project! - by jeston - 06-26-2017, 02:38 PM
RE: (Another) Zelda Ripping Project! - by Guy - 06-24-2017, 10:37 PM
RE: (Another) Zelda Ripping Project! - by caysao1 - 07-01-2017, 11:19 AM
RE: (Another) Zelda Ripping Project! - by Euden - 08-30-2017, 04:27 AM
RE: (Another) Zelda Ripping Project! - by Ogalon - 01-05-2018, 03:52 AM
RE: (Another) Zelda Ripping Project! - by Xetera - 01-06-2018, 07:32 PM
RE: (Another) Zelda Ripping Project! - by keanine - 01-22-2018, 04:37 PM
RE: (Another) Zelda Ripping Project! - by Chirz - 03-18-2018, 02:06 AM
RE: (Another) Zelda Ripping Project! - by Euden - 10-15-2019, 04:26 AM
RE: (Another) Zelda Ripping Project! - by TheFip - 10-20-2019, 03:55 AM
RE: (Another) Zelda Ripping Project! - by radzo73 - 02-04-2020, 06:55 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-21-2020, 03:09 AM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 08:04 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 08:24 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 08:30 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 08:57 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 09:34 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-23-2020, 09:58 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 09-24-2020, 01:06 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 10-25-2020, 08:17 PM
RE: (Another) Zelda Ripping Project! - by Joschka - 10-29-2020, 04:05 PM
RE: (Another) Zelda Ripping Project! - by AJD-262 - 10-29-2020, 07:07 PM
RE: (Another) Zelda Ripping Project! - by Ryuzaki - 12-01-2020, 10:56 AM
RE: (Another) Zelda Ripping Project! - by KeyXu - 03-18-2021, 05:35 AM
RE: (Another) Zelda Ripping Project! - by nephpoo - 03-26-2021, 07:10 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 07-25-2021, 08:17 AM
RE: (Another) Zelda Ripping Project! - by Hbot - 08-10-2021, 12:57 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 03-30-2023, 09:20 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 03-30-2023, 10:51 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 09-25-2021, 04:44 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-01-2022, 03:18 PM
RE: (Another) Zelda Ripping Project! - by scurest - 06-01-2022, 10:59 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-02-2022, 06:16 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-02-2022, 10:02 AM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-16-2022, 03:22 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-18-2022, 10:59 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-20-2023, 04:50 PM
RE: (Another) Zelda Ripping Project! - by scurest - 06-20-2022, 05:19 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-20-2022, 07:51 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-27-2022, 11:46 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-28-2022, 02:03 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-28-2022, 03:14 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-28-2022, 03:46 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-28-2022, 06:06 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-29-2022, 12:03 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-29-2022, 01:37 AM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-29-2022, 07:20 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-29-2022, 12:56 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-29-2022, 01:30 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-29-2022, 02:36 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 06-29-2022, 04:26 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 06-29-2022, 04:37 PM
RE: (Another) Zelda Ripping Project! - by Alvare - 07-03-2022, 04:59 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 10-29-2022, 12:38 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 11-04-2022, 11:23 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 01-04-2023, 06:51 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 03-31-2023, 06:44 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 04-01-2023, 01:28 PM
RE: (Another) Zelda Ripping Project! - by Makoto - 05-02-2023, 02:49 PM
RE: (Another) Zelda Ripping Project! - by Makoto - 05-11-2023, 11:25 PM
RE: (Another) Zelda Ripping Project! - by Makoto - 05-14-2023, 03:43 AM
RE: (Another) Zelda Ripping Project! - by Makoto - 05-18-2023, 07:07 AM
RE: (Another) Zelda Ripping Project! - by Hbot - 05-24-2023, 01:05 AM
RE: (Another) Zelda Ripping Project! - by Makoto - 06-03-2023, 12:55 PM
RE: (Another) Zelda Ripping Project! - by Yeadude - 06-05-2023, 03:53 PM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-09-2023, 11:18 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-12-2023, 08:37 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 07-20-2023, 10:56 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-20-2023, 11:26 AM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 07-20-2023, 11:32 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-20-2023, 12:24 PM
RE: (Another) Zelda Ripping Project! - by JamesO2 - 07-20-2023, 12:33 PM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-20-2023, 12:47 PM
RE: (Another) Zelda Ripping Project! - by Qw2 - 07-14-2023, 11:31 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-17-2023, 06:39 AM
RE: (Another) Zelda Ripping Project! - by Makoto - 07-18-2023, 06:25 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-18-2023, 07:27 AM
RE: (Another) Zelda Ripping Project! - by Hybryda - 07-18-2023, 02:03 PM

Forum Jump: