SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   REQ Question about shader (https://www.subsim.com/radioroom/showthread.php?t=176831)

Echolot 11-05-10 01:29 PM

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.

Echol:sunny:t.

Thanks google for translation. :oops:

TheDarkWraith 11-05-10 04:34 PM

Quote:

Originally Posted by Echolot (Post 1530006)
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

Quote:

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?

Quote:

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:
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
http://s5.directupload.net/images/10...p/piwvjvyj.png

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:

Quote:

Originally Posted by Illyustrator (Post 1530170)
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.

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 :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

Quote:

Originally Posted by Echolot (Post 1530612)
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

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/2...hwarzweiss.jpg

Uploaded with ImageShack.us

hdr_exterior.cfg

Thanks again, Seeadler.

Illyustrator 11-06-10 07:57 PM

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: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/pict...pictureid=3228


All times are GMT -5. The time now is 03:09 AM.

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.