SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] Grayscale PP-filter for SH1.4/1.5 (version 1.0) (https://www.subsim.com/radioroom/showthread.php?t=134343)

skwasjer 04-01-08 11:05 PM

[REL] Grayscale PP-filter for SH1.4/1.5 (version 1.1)
 
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
  1. Extract to MODS folder.
  2. Install with JSGME.
  3. Run game.
  4. 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
  1. Deactivate the mod.
  2. Open the Data\Shaders\Filters\CompoundFilterPS.fx file in this mod.
  3. Scroll down all the way to the end, and find the line that contains:

    float grayscaleFactor = 1.0f;
  4. 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.
  5. 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


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

Quote:

Originally Posted by Dowly
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

Quote:

Originally Posted by skwasjer
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!

Quote:

Originally Posted by scrapser
Didn't WW2 happen in black and white?

:rotfl:


All times are GMT -5. The time now is 12:28 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.