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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 03:44 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.