SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-01-08, 11:05 PM   #1
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default [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:



Grayscale factor 0.75:

Last edited by skwasjer; 04-02-08 at 11:12 AM.
skwasjer is offline   Reply With Quote
Old 04-01-08, 11:32 PM   #2
gimpy117
Ocean Warrior
 
Join Date: Jul 2007
Location: Kalamazoo, MI
Posts: 3,243
Downloads: 108
Uploads: 0
Default

this would be great for videos...
__________________
Member of the Subsim Zombie Army
gimpy117 is offline   Reply With Quote
Old 04-02-08, 04:28 AM   #3
MONOLITH
Grey Wolf
 
Join Date: Nov 2002
Posts: 997
Downloads: 0
Uploads: 0
Default

__________________
MONOLITH is offline   Reply With Quote
Old 04-02-08, 05:31 AM   #4
Dowly
Lucky Jack
 
Join Date: Apr 2005
Location: Finland
Posts: 25,005
Downloads: 32
Uploads: 0


Default

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.
Dowly is offline   Reply With Quote
Old 04-02-08, 09:53 AM   #5
castorp345
Sonar Guy
 
Join Date: Apr 2005
Location: People's Republic of Cambridge
Posts: 379
Downloads: 118
Uploads: 0
Default

that's bloody neat!


castorp345 is offline   Reply With Quote
Old 04-02-08, 10:20 AM   #6
wetwarev7
Grey Wolf
 
Join Date: Oct 2005
Location: Deep Waters
Posts: 871
Downloads: 31
Uploads: 0
Default

Immpresive!

Much more realistic, since we all know the world was in black and white back then(before colour was discovered)
__________________
Guess I should change my sig since SH5 has an offline mode now
wetwarev7 is offline   Reply With Quote
Old 04-02-08, 10:42 AM   #7
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

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...

Last edited by skwasjer; 04-02-08 at 11:13 AM.
skwasjer is offline   Reply With Quote
Old 04-02-08, 11:28 AM   #8
scrapser
Captain
 
Join Date: Apr 2002
Posts: 530
Downloads: 12
Uploads: 0
Default

Didn't WW2 happen in black and white?
__________________
Gaming Computer Specs:
CM Stacker 930
DFI LP UT X58-T3eH8
i7 920 CPU
TR 120 Extreme HS (lapped)
6 GB OCZ Platinum 1600 (8x175 = 1400)
BFG GTX 295
Silverstone DA1000W PSU
Sony GDM-FW900 24" Wide Screen CRT
WinXP Pro 32-bit
scrapser is offline   Reply With Quote
Old 04-02-08, 12:06 PM   #9
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Congrats on the first mod, skwas Nice one, too.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 04-02-08, 02:39 PM   #10
longam
Admiral
 
Join Date: Jun 2005
Posts: 2,014
Downloads: 26
Uploads: 0
Default

Wow, I like it.
longam is offline   Reply With Quote
Old 04-02-08, 02:40 PM   #11
letterboy1
Captain
 
Join Date: Oct 2003
Location: Columbus, GA, USA
Posts: 525
Downloads: 89
Uploads: 0
Default

Heh heh, I think Werner Sobe was just asking about this. He should like this, too.
__________________
Asus P8 Z68 Deluxe MoBo
Intel Core i7 @ 4.4 GHz
16 GB RAM
EVGA GTX Titan Black
1.5 T-byte HDD
Antec 1 KW True Power Quattro PS
letterboy1 is offline   Reply With Quote
Old 04-04-08, 11:04 PM   #12
WernerSobe
Commodore
 
Join Date: Jul 2006
Posts: 625
Downloads: 5
Uploads: 0
Default

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.
WernerSobe is offline   Reply With Quote
Old 04-05-08, 03:50 AM   #13
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Heh, strange. That actually means it doesn't pass through the post-process filter. I wonder why... bug?
skwasjer is offline   Reply With Quote
Old 04-05-08, 09:25 AM   #14
WernerSobe
Commodore
 
Join Date: Jul 2006
Posts: 625
Downloads: 5
Uploads: 0
Default

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.
WernerSobe is offline   Reply With Quote
Old 04-05-08, 05:23 PM   #15
Xantrokoles
Seasoned Skipper
 
Join Date: Jan 2008
Location: Germany
Posts: 659
Downloads: 13
Uploads: 0
Default

Thank U Skwasjer!

Quote:
Originally Posted by scrapser
Didn't WW2 happen in black and white?
:rotfl:
__________________
Xantrokoles is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:50 AM.


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.