PDA

View Full Version : [REL] Grayscale PP-filter for SH1.4/1.5 (version 1.0)


skwasjer
04-01-08, 11:05 PM
Grayscale PP-filter for SH4 1.4/1.5 (version 1.1)

DESCRIPTION

This mod includes a stock filter, that I modified to enable grayscale filtering during post-processing stage. The grayscale filter only affects the 3D world. This entire filter is not active when post-processing is disabled.

INSTALLATION INSTRUCTIONS

Extract to MODS folder.
Install with JSGME.
Run game.
Ensure post-processing filter is enabled in-game.CREDITS

WernerSobe, for requesting it ;)
Dowly, for asking for different levels of grayscale/desaturation.

More thanks to everyone at SUBSIM.

PERMISSIONS

Apart from the disclaimer in my readme.txt header (which is directed at commercial use), anyone can use, modify and redistribute this mod, as long as it's free and non-commercial. Credits is all I ask. Have fun!

CUSTOMIZE GRAYSCALE LEVEL/SATURATION

Deactivate the mod.
Open the Data\Shaders\Filters\CompoundFilterPS.fx file in this mod.
Scroll down all the way to the end, and find the line that contains:

float grayscaleFactor = 1.0f;
Change this value to suit your needs/preference.

The range of this value is 0.0f to 1.0f. Full grayscale = 1.0f, no grayscale = 0.0f. Anything in between will blend rgb with the grayscale component giving a washed out (desaturated) look.
Save and reactivate the mod.FINAL NOTES

For grayscale, 24-bit colors are converted back to a 8-bit grayscale range
(using it's luminance). The result - what you see - may look washed out at
times (this is very apparent when looking at the sun), and the overall picture
may be darker. This can only really be improved, by tweaking the entire game,
it's textures etc. There are some improvements in the shader possible but
it will never be perfect that way.

There you have it. My first mod... ( S3D is not a mod :p )

DOWNLOAD (http://sh4.skwas.net/download.aspx?id={8294BD28-6623-4FB4-B71E-DA0444FA0CAC})


Example screenshot:

http://sh4.skwas.net/media/grayscale/grayscale.jpg

Grayscale factor 0.75:
http://sh4.skwas.net/media/grayscale/washedout.jpg

gimpy117
04-01-08, 11:32 PM
this would be great for videos...

MONOLITH
04-02-08, 04:28 AM
:up:

Dowly
04-02-08, 05:31 AM
Is it possible to make the pp filter to be maybe 50% desaturate? or 75%? You know, not completely B&W but with "wash out" colors.

castorp345
04-02-08, 09:53 AM
that's bloody neat!


:rock:

wetwarev7
04-02-08, 10:20 AM
Immpresive! :up:

Much more realistic, since we all know the world was in black and white back then(before colour was discovered)

skwasjer
04-02-08, 10:42 AM
Is it possible to make the pp filter to be maybe 50% desaturate? or 75%? You know, not completely B&W but with "wash out" colors.
Yes it is. I will have to make a couple of adjustments to make this work. You can then choose the amount yourselfs (by editting a variable in the filter).

[edit] Yea, it could be useful for movies, although personally I'd choose post-processing in video editting software. It just gives you way more control.
[edit2] Updated main post with new version...

scrapser
04-02-08, 11:28 AM
Didn't WW2 happen in black and white?

Digital_Trucker
04-02-08, 12:06 PM
Congrats on the first mod, skwas:up: Nice one, too.:arrgh!:

longam
04-02-08, 02:39 PM
Wow, I like it.

letterboy1
04-02-08, 02:40 PM
Heh heh, I think Werner Sobe was just asking about this. He should like this, too.

WernerSobe
04-04-08, 11:04 PM
at first thank you skwas i love it ;-)

there is just a little downer. When using the stadimeter color suddenly turns on. Not a big thing actualy i can live with that.

skwasjer
04-05-08, 03:50 AM
Heh, strange. That actually means it doesn't pass through the post-process filter. I wonder why... bug?

WernerSobe
04-05-08, 09:25 AM
Heh, strange. That actually means it doesn't pass through the post-process filter. I wonder why... bug?

i dont know but youre right. When using the stadimeter it shuts down the pp filter. I think there is no way to force it.

Xantrokoles
04-05-08, 05:23 PM
Thank U Skwasjer!


Didn't WW2 happen in black and white?

:rotfl:

kriller2
04-05-08, 06:03 PM
:o Wow! a mod from you mr. skwasjer, do you have time for that ?
Thanks will try it now :up:

skwasjer
04-05-08, 06:31 PM
It's good to do some other stuff once in a while. Sometimes, I just can't look at S3D, because some of the things I want to make work (model import anyone?) is driving me crazy...

That said, I'm back on it again :rotfl:

kriller2
04-05-08, 06:58 PM
It's good to do some other stuff once in a while. Sometimes, I just can't look at S3D, because some of the things I want to make work (model import anyone?) is driving me crazy...

That said, I'm back on it again :rotfl:

Yes I know how it is, it's important to have your thoughts somewhere else sometimes and sometimes you find the solution for a problem when you are away from the computer looking at the sea f.ex. :hmm:

Keep up the good work, someday you will get the model import to work and a new door is opening for us modders :yep: