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

Reply
 
Thread Tools Display Modes
Old 05-17-09, 01:43 AM   #1
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default [TEC] Pixel Shader

So a few months ago I was modding Oblivion and I discovered that by combining the official SDK-type-thing with a modder-made modding tool I could write my own pixel shader and have the game use it! I'd never written a pixel shader before but it wasn't too difficult and I managed to get some pretty cool effects going even without really knowing much about it. So it got me wondering... can this be done with other games? Is there some sort of tool out there that lets me tell D3D to apply my own personal post-processing effect to every frame before it's sent to the screen? If anyone knows anything about this and can point me to places where I can find or read about such tools, I'd really appreciate it!
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 05-17-09, 02:21 AM   #2
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

I can't help you with that, but I just wanted to ask what does SH3 use pixel shader for? I know SH4 uses it for the radar display, but SH3?
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 05-17-09, 02:28 AM   #3
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Quote:
Originally Posted by Hitman View Post
I can't help you with that, but I just wanted to ask what does SH3 use pixel shader for? I know SH4 uses it for the radar display, but SH3?
I've no idea. AFAIK the only post-processing effect in SH3 is that "bloom" thing you get by pressing Shift+PgUp, but I don't know whether that's done with a pixel shader. Perhaps you misunderstood me: I don't want to edit existing pixel shader effects, I want to add new post-processing effects. The thing about post-processing is that simple effects are possible without knowing anything about the game engine/variables. It's like using photoshop. You can take the finished frame and apply some effect to it (e.g. glow, or black and white, or whatever you can code) based soley on the information in the frame buffer.
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 05-17-09, 03:18 AM   #4
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Wow excellent Post process filters and sun light reflection effects in the water in SH4 are on of the key visual differences between both games ... if you could add one that would already be amazing

The other major grip I have with SH3 is the 3D models of the crew, which for me have always bee inmersion killers...but Racerboy suggested that it *might* be possible to port them over from SH4 to SH3
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 05-17-09, 03:26 AM   #5
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Quote:
Originally Posted by Hitman View Post
Wow excellent Post process filters and sun light reflection effects in the water in SH4 are on of the key visual differences between both games ... if you could add one that would already be amazing
Heh, definitely no way to do that I'm afraid. Sunlight on the water would require much more information than just what is in the frame buffer. No, I'm talking about very simple post-processing effects such as simple bloom methods, desaturated colours, simple cel shaders, that sort of thing. You can't do anything fancy using only the frame buffer.
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 05-17-09, 03:40 AM   #6
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Yes I know reflections are hardcoded, sorry I just listed the main things I see as sifferences and wanted to say that if one of them (post process) can be implemented in SH3 that would already improve a lot the looks of the game

Do you have SH4? The post process filters there are apparently simple, but do a lot to improve image eye-candy. Contrast is higher, colours are somehow deeper and livelier...I really like it a lot and would love to see it in SH3
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 05-17-09, 03:21 AM   #7
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

In SH4 use of HLSL files is hardcoded (and by name)...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart 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 08:25 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.