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-05-08, 06:03 PM   #9
kriller2
Ace of the Deep
 
Join Date: Apr 2005
Posts: 1,227
Downloads: 19
Uploads: 0
Default

Wow! a mod from you mr. skwasjer, do you have time for that ?
Thanks will try it now
__________________
Kriller2.
[MODs]

Real Environment mod

and Pacific Enviroments 4 mod
kriller2 is offline   Reply With Quote
Old 04-05-08, 06:31 PM   #10
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

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:
skwasjer is offline   Reply With Quote
Old 04-05-08, 06:58 PM   #11
kriller2
Ace of the Deep
 
Join Date: Apr 2005
Posts: 1,227
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by skwasjer
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
__________________
Kriller2.
[MODs]

Real Environment mod

and Pacific Enviroments 4 mod
kriller2 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 11:09 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.