SUBSIM Radio Room Forums  
BUYING GAMES, BOOKS, ELECTRONICS, and STUFF THROUGH THIS LINK SUPPORTS SUBSIM, THANKS!

The Web's #1 BBS for all submarine and naval simulations!

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

Reply
 
Thread Tools Display Modes
Old 04-01-2008, 11:05 PM   #1
skwasjer
Olympian
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,434
Downloads: 16
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-2008 at 11:12 AM.
skwasjer is online   Reply With Quote
Old 04-01-2008, 11:32 PM   #2
gimpy117
Sea Lord
 
Join Date: Jul 2007
Location: hunting the red october
Posts: 1,730
Downloads: 25
Uploads: 0
Default

this would be great for videos...
__________________


Member of the Subsim Zombie Army
gimpy117 is offline   Reply With Quote
Old 04-02-2008, 04:28 AM   #3
MONOLITH
The Old Man
 
Join Date: Nov 2002
Posts: 1,500
Downloads: 0
Uploads: 0
Default

__________________
MONOLITH is offline   Reply With Quote
Old 04-02-2008, 05:31 AM   #4
Dowly
The Finnish Ferret
 
Join Date: Apr 2005
Location: Suomi Finland PERKELE!
Posts: 14,864
Downloads: 13
Uploads: 0
Send a message via MSN to Dowly
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 online   Reply With Quote
Old 04-02-2008, 09:53 AM   #5
castorp345
Weps
 
Join Date: Apr 2005
Location: People's Republic of Cambridge
Posts: 364
Downloads: 38
Uploads: 0
Default

that's bloody neat!


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

Immpresive!

Much more realistic, since we all know the world was in black and white back then(before colour was discovered)
__________________
I feel insulted by the 'always online' requirement. It's degrading to be constantly asked to prove you are innocent and I don't appreciate being dragged into someone elses fight.
wetwarev7 is offline   Reply With Quote
Old 04-02-2008, 10:42 AM   #7
skwasjer
Olympian
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,434
Downloads: 16
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-2008 at 11:13 AM.
skwasjer is online   Reply With Quote
Old 04-02-2008, 11:28 AM   #8
scrapser
Commodore
 
Join Date: Apr 2002
Posts: 605
Downloads: 3
Uploads: 0
Default

Didn't WW2 happen in black and white?
__________________
CM Stacker 830 Evo
DFI LP UT X58-T3eH8
i7 920 @ 20x175 3.5 GHz
TR 120 Extreme HS (lapped)
6 GB OCZ Platinum 1600 (8x175 = 1400)
BFG GTX 295 1720MB
Silverstone DA1000 Modular PSU
NEC 24" 2490WUXi
WinXP Pro/Win7 Pro Dual Boot
scrapser is offline   Reply With Quote
Old 04-02-2008, 12:06 PM   #9
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,150
Downloads: 9
Uploads: 7
Send a message via MSN to Digital_Trucker Send a message via Yahoo to Digital_Trucker
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-2008, 02:39 PM   #10
longam
The Duke
 
Join Date: Jun 2005
Posts: 1,735
Downloads: 18
Uploads: 0
Default

Wow, I like it.
longam is online   Reply With Quote
Old 04-02-2008, 02:40 PM   #11
letterboy1
Gramophone
Operator
 
Join Date: Oct 2003
Location: Columbus, GA, USA
Posts: 475
Downloads: 21
Uploads: 0
Default

Heh heh, I think Werner Sobe was just asking about this. He should like this, too.
__________________

MSI P6N Diamond MoBo
Intel Q6600 (Quad) @2.4 GHz
4 GB Kingston Hyper X DDR2
EVGA GTX 285
150 GB Raptor
74 GB Raptor
Coolmax 1200W PS
letterboy1 is offline   Reply With Quote
Old 04-04-2008, 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-2008, 03:50 AM   #13
skwasjer
Olympian
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,434
Downloads: 16
Uploads: 3
Default

Heh, strange. That actually means it doesn't pass through the post-process filter. I wonder why... bug?
skwasjer is online   Reply With Quote
Old 04-05-2008, 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-2008, 05:23 PM   #15
Xantrokoles
Seasoned Skipper
 
Join Date: Jan 2008
Location: Germany
Posts: 660
Downloads: 6
Uploads: 0
Send a message via ICQ to Xantrokoles
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

Thread Tools
Display Modes

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 06:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 1997- 2010 Subsim