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

Reply
 
Thread Tools Display Modes
Old 02-23-10, 08:12 AM   #1
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default [WIP] SH4 Graphics Extender

I have developed a DLL which is loaded by SH4 at runtime and given me access to the 3D image data before it is rendered.
This enables me, like the ENB-Series for other games, to use my own external post-process shaders to extend the visuals.

I implement a fake HDR shader first, it worked!

normal:


with HDR shader:


The values are overdosed at the moment just to see the effect for debugging purpose


It also enables me to render my own harcoded stuff on the screen and something more I don't wish to tell at present time because I'm not realy sure if it will work.


With a few minor changes, this could also work for SH3, but it failed so far in some areas in combination with the Sh3HighRex-fix, which uses a similar method to "hook" the ongoing render process.
Seeadler is offline   Reply With Quote
Old 02-23-10, 08:36 AM   #2
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 27,343
Downloads: 90
Uploads: 0


Default

I do not understand what this is accomplishing.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-23-10, 10:55 AM   #3
CWorth
Grey Wolf
 
Join Date: Apr 2005
Location: Gettysburg PA
Posts: 845
Downloads: 38
Uploads: 0
Default

Well if that is doing what I think it is,a version of this has been around for a long time already.

It looks like it is basically adding an HDR Bloom effect to the game.

This has been around since Lock On Modern Air Combat which it was made for originally and can be used in any DirectX based game.

I use it for IL2,Lock On,Steel Beasts ProPE etc..

http://www.mediafire.com/?lmhyt2jtffd

So you may be able to save yourself some work since there is already one available.And as you said it does have problems with SH3 using the Hires mod also.
CWorth is offline   Reply With Quote
Old 02-23-10, 11:31 AM   #4
Navarre
Helmsman
 
Join Date: Jul 2003
Location: Europe
Posts: 101
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by CWorth View Post
I use it for IL2,Lock On,Steel Beasts ProPE etc..
http://www.mediafire.com/?lmhyt2jtffd
That is ENB Series for DirectX 8, and none of this series work for Silent Hunter because it uses DirectX 9. Also at least I could not find any version of the DirectX 9 ENB Series which work with Silent Hunter all I tried crashed at start.
Navarre is offline   Reply With Quote
Old 02-23-10, 12:31 PM   #5
CWorth
Grey Wolf
 
Join Date: Apr 2005
Location: Gettysburg PA
Posts: 845
Downloads: 38
Uploads: 0
Default

Quote:
Originally Posted by Navarre View Post
That is ENB Series for DirectX 8, and none of this series work for Silent Hunter because it uses DirectX 9. Also at least I could not find any version of the DirectX 9 ENB Series which work with Silent Hunter all I tried crashed at start.
I have to look as I did have a DX9 based one I used just have to find the right link

My post was just stating that there is already something like this out already so he may be able to save himself some work.

Edit:Found it..this is the DX9 version
http://www.dejawolf.com/steelbeasts/.../bloom-mod.rar

Of course the .ini file would need tweaked according to taste.Not sur eif it works but it may be tweakable to get it going.

Last edited by CWorth; 02-23-10 at 12:45 PM.
CWorth is offline   Reply With Quote
Old 02-23-10, 12:41 PM   #6
Navarre
Helmsman
 
Join Date: Jul 2003
Location: Europe
Posts: 101
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by CWorth View Post
I have to look as I did have a DX9 based one I used just have to find the right link
It would be great if I could get one for DX9 which works with the SH4.exe because all I tried produce me a CtD. I have one which enables missing shadows in other games and I would try that with SH4.
Navarre is offline   Reply With Quote
Old 02-23-10, 01:32 PM   #7
CWorth
Grey Wolf
 
Join Date: Apr 2005
Location: Gettysburg PA
Posts: 845
Downloads: 38
Uploads: 0
Default

Quote:
Originally Posted by Navarre View Post
It would be great if I could get one for DX9 which works with the SH4.exe because all I tried produce me a CtD. I have one which enables missing shadows in other games and I would try that with SH4.
Not sure if the one I linked above will work.

Could simply be the way the code for the game is written and Seeadler will have to pretty much go from scratch as he is doing.
CWorth is offline   Reply With Quote
Old 02-23-10, 01:47 PM   #8
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Navarre View Post
It would be great if I could get one for DX9 which works with the SH4.exe because all I tried produce me a CtD.
Yes that was also my first intention to do a similar work.

The ENB-series dll's are for a particular game, one for GTA, one for NfS and so on. They may work for other games also, but as you, I can't find one which work with SH4.
Based on opensource projects of such dll's I investigated how such a dll must be loaded from SH4 and which entry points the SH4.exe used.

During the implementation of this proof-of-concept for SH4, I found a way do a similar thing also with the *.act files in SH4. That gave me an insight on what's going on in EffectManagers.act or SHControllers.act for example or how the hardcoded periscope reticles and bearing markings are rendered

prospects for the future:
Now when SH5 is released and it includes a special shader file which modders want to convert to SH4 but it fails because particular hardcoded values are provided by the SH5 engine to this shader file, my concept may help to provide these values externaly via the extender dll's
Seeadler is offline   Reply With Quote
Old 02-25-10, 07:52 AM   #9
Galanti
Captain
 
Join Date: Apr 2004
Location: Ottawa
Posts: 536
Downloads: 99
Uploads: 0
Default

This is great stuff, please keep us posted on your progress!
Galanti is offline   Reply With Quote
Old 02-27-10, 10:44 PM   #10
tomoose
Grey Wolf
 
Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
Default Still not sure.....

......what this is doing/bringing to the game. Can someone clarify please?
tomoose is offline   Reply With Quote
Old 02-28-10, 01:43 PM   #11
sergbuto
Pacific Aces Dev Team
 
Join Date: Sep 2002
Location: Sweden
Posts: 1,331
Downloads: 15
Uploads: 0


Default

Seeadler,

Would it be possible to make things such as f.e. bringing back a possibility to switch the external camera view not only between the ships but between planes and land objects (as it was in SH3)? My guess this is hidden in .act files somewhere.
__________________
Serg's SH4 and SH3 pages
sergbuto is offline   Reply With Quote
Old 03-01-10, 09:08 AM   #12
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Pretty cool

I've been messing around with this about a year ago as well, based on older code I had (although this was vqm/ogl stuff). I did something similar for Q3 (where I made a capture-to-avi hook for movie capture, including DoF/MB filters). Q3 could only save each frame to a separate TGA and did not support those filters. I captured the z-buffers and frame buffer (and merged/averaged frames for motion blur), and stored them in lossless-compressed AVI. Was very useful for HQ movie making, and saved alot of disk space too.
I never got anything decent working for SH4 though (mind you, it would not be movie related)

You can do quite a lot of fancy stuff now. Cool stuff
skwasjer 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 02:43 AM.


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.