View Full Version : REQ Question about shader
Echolot
11-05-10, 01:29 PM
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.
Echol:sunny:t.
Thanks google for translation. :oops:
TheDarkWraith
11-05-10, 04:34 PM
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.
Echol:sunny:t.
Thanks google for translation. :oops:
any shader that is passed color information can be made to display any color wanted :yep: Very easy to do.
Illyustrator
11-05-10, 05:06 PM
You think, that in the fortieth years the World was GREY!? :DL
Echolot
11-06-10, 03:57 AM
You think, that in the fortieth years the World was GREY!? :DL
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?
any shader that is passed color information can be made to display any color wanted :yep: 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.
Echol:sunny:t.
Seeadler
11-06-10, 07:55 AM
Changing the color of a pixel to monochrom is very simple.
In a pixel shader simply return the color of a pixel as:
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
http://s5.directupload.net/images/101106/temp/piwvjvyj.png (http://s5.directupload.net/file/d/2335/piwvjvyj_png.htm)
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 :06:
You think, that in the fortieth years the World was GREY!? :DL
the time was grey, see here:rotfl2:
http://s5.directupload.net/images/101106/a2mu4vah.jpg
Echolot
11-06-10, 08:28 AM
Thank you much for your reply, Seeadler.
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 :06:
:hmmm:
post process shader sounds good, hm..
I will search the web for more information/knowledge.
Thank you again.
Echol:sunny:t.
:rock::rock::rock: subsim :rock::rock::rock:
Seeadler
11-06-10, 09:45 AM
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
[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
...
PhotoFilterColor=9B740000
PhotoFilterIntensity=4.0
this renders the complete exterior scene as a post-process in Sepia color
Echolot
11-06-10, 10:42 AM
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
11-06-10, 11:25 AM
http://img594.imageshack.us/img594/2230/schwarzweiss.jpg (http://img594.imageshack.us/i/schwarzweiss.jpg/)
Uploaded with ImageShack.us (http://imageshack.us)
hdr_exterior.cfg
Thanks again, Seeadler.
Illyustrator
11-06-10, 07:57 PM
...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.:)
the time was grey, see here:rotfl2:
You in vain laugh. The world has always been color, since its birth. The photos were in black-white, but not always...
http://www.subsim.com/radioroom/picture.php?albumid=386&pictureid=3228
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.