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, 05:46 AM   #16
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by Hitman View Post
...
if the screen resolution instructions can be "intercepted" and resized via an external DLL, as the hi-res tweak does, then I suppose that the same technic can be used to change other parameters, right?
It's called hooking ..., right?
Quote:
Another idea (Brainstorming): If the currently built-in AA modifier (SHIFT+Page Up/down) is using some sort of post processing filter, may be the parameters for it are somewhere in an external file. If we find this file, we could use the in-game built tool to provide other effects
... hardcoded in executable files ... hook this call and execute new dll, right?
Ну ... можно и штаны через голову одевать ...
If interestingly, you can use (for example) 3D Ripper DX for capture some shaders code (SP v. 1.1) from memory ...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 05-17-09, 08:06 AM   #17
Letum
Navy Seal
 
Join Date: Feb 2005
Location: York - UK
Posts: 6,079
Downloads: 43
Uploads: 0
Default

I ran 3dripperDX and the shaders output file gets longer when the shift+pgup
mode is on, so yes, it is a post-processed shader effect.
__________________
Letum is offline   Reply With Quote
Old 05-17-09, 08:17 AM   #18
Letum
Navy Seal
 
Join Date: Feb 2005
Location: York - UK
Posts: 6,079
Downloads: 43
Uploads: 0
Default

Whilst we are innovating a little....
I came across SH3's water tile.
Does anyone know if this is stored in a .dat file? Which one?

__________________
Letum is offline   Reply With Quote
Old 05-17-09, 11:25 AM   #19
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Mmmm the model for the waves is stored somewhere, recenly Seeadler or OLC (Can't remember who) showed a polygon model of the SH3 sea, and it was exactly what you are showing, but without texture.
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 05-17-09, 12:55 PM   #20
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

All of this can be done theoretically with DirectX API Hooking.
Theoretically, because DirectX programs does not always follow the guidelines by Microsoft, because programmers may have used certain techniques to bypass DX functions to obtain a speed advantage in their games.

If someone is interested in such things, a tool for Morrowind use hooking techniques and is open-source:
http://morrgraphext.wiki.sourceforge.net/Misc

The mentioned Oblivion Shader Editor is also open-source:
http://timeslip.chorrol.com/
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!

Last edited by Seeadler; 05-17-09 at 01:11 PM.
Seeadler is offline   Reply With Quote
Old 05-18-09, 04:54 PM   #21
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Thanks Seeadler.

I found this. Could it be used? If so, any idea how to change it to apply a custom pixel shader? Looking at that code I'm completely lost.
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 05-19-09, 08:20 PM   #22
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by onelifecrisis View Post
I found this. Could it be used?
I've tested it with SH3 but it don't work because these applications manually load D3D9.dll via LoadLibrary as described as limitations in the linked thread.

SH3 needs a d3d9.dll wrapper instead of a DX dll injection, a d3d9.dll wrapper like the one for the high-res fix. This wrapper must done the same work for high-res (otherwise this feature get lost) and the desired custom shader functions.

d3d9.dll wrapper example:
http://www.codeguru.com/cpp/g-m/dire...cle.php/c11453
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 05-23-09, 11:49 AM   #23
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

I've got a very basic D3D hook in work, it's not stable, sometimes the dll injection don't work (particularly with Vista) but I can overwrite the BeginScene() and EndScene() funtion a for example. To implement post-processing effects, a little bit more must be done, but yes it seems be possible.

__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 05-23-09, 09:07 PM   #24
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Impressive!
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 06-12-09, 09:44 AM   #25
johan_d
Samurai Navy
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 556
Downloads: 113
Uploads: 1
Default

Nice, then a postprocess effect to let the scene look like Das Boot or perhaps old movies, and we are set!
johan_d is offline   Reply With Quote
Old 07-26-09, 09:54 AM   #26
Azrael Valedhel
Watch
 
Join Date: May 2008
Posts: 25
Downloads: 14
Uploads: 0
Default

So... is anyone doing anything with this? It could be pretty cool to e.g. change colors of the scene. Make some kind of bloom effect maybe?
__________________
With regards.
Azrael Valedhel is offline   Reply With Quote
Old 07-26-09, 01:16 PM   #27
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default

Quote:
Originally Posted by johan_d View Post
Nice, then a postprocess effect to let the scene look like Das Boot or perhaps old movies, and we are set!

Just a side note, most modern lcd monitors come with a bunch of effects like b&w/sepia/cartoon etc, its pretty easy to get that movie look by applying one of these effects and tweaking the contrast.
__________________
flakmonkey is offline   Reply With Quote
Old 07-26-09, 02:25 PM   #28
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

one-two of tonns ...
DX-Tweaker 2005.1
3D-Analyze 2.36b
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 07-26-09 at 02:41 PM.
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 02:03 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.