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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-05-10, 01:29 PM   #1
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
REQ Question about shader

Would it be possible to program or modify shader or filters for the game to render in black/white or sepia style?
I've seen in Far Cry and Call of Duty if i remember right.
Perhaps this could be part of an environment mod.
Where can I get more information about shader?

Dank und Gruss.

Echolt.

Thanks google for translation.
Echolot is offline   Reply With Quote
Old 11-05-10, 04:34 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
Would it be possible to program or modify shader or filters for the game to render in black/white or sepia style?
I've seen in Far Cry and Call of Duty if i remember right.
Perhaps this could be part of an environment mod.
Where can I get more information about shader?

Dank und Gruss.

Echolt.

Thanks google for translation.
any shader that is passed color information can be made to display any color wanted Very easy to do.
TheDarkWraith is offline   Reply With Quote
Old 11-05-10, 05:06 PM   #3
Illyustrator
中国水兵
 
Join Date: May 2010
Location: BY
Posts: 271
Downloads: 80
Uploads: 1
Default

You think, that in the fortieth years the World was GREY!?
Illyustrator is offline   Reply With Quote
Old 11-06-10, 03:57 AM   #4
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Quote:
You think, that in the fortieth years the World was GREY!?
No.

But we could make nice movie clips from the game.

I see many sreenshots in the screenshots threads in grey style.

Maybe other effects where possible with the shader.

Just an idea.

Could Seeadler provide more information about?

Quote:
any shader that is passed color information can be made to display any color wanted Very easy to do.
Thank you TDW. Thats what I wanted to hear.

Will take a look at.

Maybe comic style.

Maybe old movie effects.

For variety.

Thanks and greets.

Echolt.
Echolot is offline   Reply With Quote
Old 11-06-10, 07:55 AM   #5
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Changing the color of a pixel to monochrom is very simple.

In a pixel shader simply return the color of a pixel as:
Code:
return Color.rgb=(Color.r+Color.b+Color.g)/3.0f;
Example: only the pixels of the water shader are set to monochrome with this function


The only problem can be to found a suitable SH5 shader or to develop a new shader that act as a post process shader and colors the entire scene

Quote:
Originally Posted by Illyustrator View Post
You think, that in the fortieth years the World was GREY!?
the time was grey, see here
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 11-06-10, 08:28 AM   #6
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Thank you much for your reply, Seeadler.

Quote:
The only problem can be to found a suitable SH5 shader or to develop a new shader that act as a post process shader and colors the entire scene


post process shader sounds good, hm..

I will search the web for more information/knowledge.

Thank you again.

Echolt.


subsim
Echolot is offline   Reply With Quote
Old 11-06-10, 09:45 AM   #7
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Echolot View Post
post process shader sounds good, hm..
I will search the web for more information/knowledge.
There is an easier way, because the post-process fuctions are still there, a relict of SH4, but disabled

open \Silent Hunter 5\data\Filters\ColorCorrection\hdr_exterior.cfg

Code:
[ColorCorrectionFilter]
Gamma=0.7
Brightness=1.0
Saturation=0.8
Contrast=1.0
LevelsInputBlack=0.0
LevelsInputMidtone=1.0
LevelsInputWhite=1.0
LevelsOutputBlack=0.0
LevelsOutputWhite=1.0
ColorBalanceR=0.0
ColorBalanceG=0.0
ColorBalanceB=0.0
ColorBalanceTone=1
HueColor=FFFFFF00
HueOpacity=0.0
PhotoFilterColor=00000000
PhotoFilterIntensity=0.0
set PhotoFilterColor and PhotoFilterIntensity to a Sepia color
Code:
...
PhotoFilterColor=9B740000
PhotoFilterIntensity=4.0
this renders the complete exterior scene as a post-process in Sepia color
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 11-06-10, 10:42 AM   #8
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Ich hab damit mal rumgespielt, aber ich denke, das ist mit den Filtern so nicht möglich, was ich beispielsweise in Deinem vorher geposteten Screenshot bestaunen durfte. Das Wasser ist genauso, wie ich es mir vorstelle. Mit den Filtern sieht das seltsam aus. Ich habe mal Schwarz versucht (000000) und das sieht eher aus wie ein Negativ. Ich versuch mal weiter. Die Shader-Geschichte scheint mir attraktiver.

I played around with the filters, but i think, with shaders is the better way.
Echolot is offline   Reply With Quote
Old 11-06-10, 11:25 AM   #9
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default



Uploaded with ImageShack.us

hdr_exterior.cfg

Thanks again, Seeadler.
Echolot is offline   Reply With Quote
Old 11-06-10, 07:57 PM   #10
Illyustrator
中国水兵
 
Join Date: May 2010
Location: BY
Posts: 271
Downloads: 80
Uploads: 1
Default

Quote:
...But we could make nice movie clips from the game...
I am sorry. Not at once has understood. Has thought, suggest to make game SH5 by sulphur... Clips - idea good. Still "Dust" and "Scratches" to add, then precisely you will not distinguish.
Quote:
the time was grey, see here
You in vain laugh. The world has always been color, since its birth. The photos were in black-white, but not always...
Illyustrator 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 05:08 PM.


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