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 10-14-13, 07:01 PM   #1
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Rubini View Post
They are for another engine and uses shaders which are absent on sh3.
SH3 also uses shaders (shader model 1.1) but unlike SH4/5 the shaders are coded in the executable. I have a special dll that decodes these shaders and writes it to external shader files but there are only pixel shaders for ocean, terrain, shadow and reflections, not for clouds.
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 10-14-13, 08:20 PM   #2
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by Seeadler View Post
SH3 also uses shaders (shader model 1.1) but unlike SH4/5 the shaders are coded in the executable. I have a special dll that decodes these shaders and writes it to external shader files but there are only pixel shaders for ocean, terrain, shadow and reflections, not for clouds.
Hi Seeadler,

Thanks for the clarification! And, by the way, I have worked with shadows sometime ago ... and it works but they aren´t casted on the ocean surface (the big main problem), i tried everthing that I could, then i give up. Perhaps with pixel shaders we could make something about?
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 10-14-13, 09:52 PM   #3
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Ok!
First release is up on the first post!

Moderators: Can you please change that [WIP] for a [REL]? Thanks!
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 10-15-13, 01:55 AM   #4
sublynx
Sea Lord
 
Join Date: Mar 2011
Location: In the conning tower of my VIIC scanning the sea through the periscope
Posts: 1,682
Downloads: 173
Uploads: 7
Default

Downloading, I'm really curious and hoping this will work in my mod soup. I think NYGM+MEP is a 20 km environment, so it might not work that well in my rig, but who knows.

Thank you Rubini
__________________
[SIGPIC][/SIGPIC]
NYGM+H.sie v16+Stiebler 4C+MaGui WS
sublynx is offline   Reply With Quote
Old 10-15-13, 06:16 AM   #5
Kpt. Lehmann
GWX Project Director
 
Kpt. Lehmann's Avatar
 
Join Date: Jul 2005
Location: The Republic of Texas
Posts: 7,086
Downloads: 132
Uploads: 0


Default

Thank you for your hard work, Dr, Rubini. You are the best!
__________________
www.thegreywolves.com
All you need is good men. - Heinrich Lehmann-Willenbrock
Kpt. Lehmann is offline   Reply With Quote
Old 10-15-13, 06:21 AM   #6
flakmonkey
Grey Wolf
 
Join Date: Jul 2006
Location: Staffordshire, Uk
Posts: 944
Downloads: 78
Uploads: 0


Default

Downloaded and had a play around, so far it looks superb. The added sense of immersion if great, just being able to look back and see St.Nazaire disappearing into a big fluffy cloud on the horizon is amazing.
__________________
flakmonkey is offline   Reply With Quote
Old 10-15-13, 09:46 AM   #7
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by flakmonkey View Post
Downloaded and had a play around, so far it looks superb. The added sense of immersion if great, just being able to look back and see St.Nazaire disappearing into a big fluffy cloud on the horizon is amazing.
Thanks guys,

@flakmonkey,
Ehhh... I didin´t tested the mod in an harbour area.
Hopes that it really works "well" there too

All@,
Two hours after I have posted the link to download I made a small fix and reuploaded it. This correct and final v1.0 file ends with a "h". Check it out and download it again if necessary. (Sh3_volumetric_clouds&fog_V1h.7z)
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 10-15-13, 12:30 PM   #8
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

Quote:
Originally Posted by Seeadler View Post
SH3 also uses shaders (shader model 1.1) but unlike SH4/5 the shaders are coded in the executable. I have a special dll that decodes these shaders and writes it to external shader files but there are only pixel shaders for ocean, terrain, shadow and reflections, not for clouds.
Ahoy Seeadler ,

you mean that with your dll we can have more than one shaders on the water at the same time ? if so...then i think that we will be able to create fantastic waters for sh3.
can you upload it for testing ?
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 10-15-13, 01:48 PM   #9
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by makman94 View Post
you mean that with your dll we can have more than one shaders on the water at the same time?
No, my widescreen d3d9.dll decodes at runtime the vertex/pixel shader from memory and writes it as shader assembly code into txt-files. Once these txt-files are available, the SH3 engine uses the shader code from these files and not the hard-coded. At current work status only the shader instructions can be changed by editing the txt-file, no new variables or textures can be passed every (x) frame to the shaders.

the SH3 ocean pixel shader for example:
Code:
    ps_1_1
    tex t0                            
    texbem t1, t0                  
    mad t1, t1, c0.w, c1.w     
    dp3_sat r0, v0_bx2, t0
    lrp r0.xyz, r0.w, c0, c1
    lrp r0.xyz, v0.w, t1, r0
  + mov r0.w, t0.w
// approximately 6 instruction slots used (2 texture, 4 arithmetic)
And yet there is a shader for clouds but only a vertex shader. I assume it is used to calculate the mapping of cloud textures on the 3D cloud dome.
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 10-15-13, 02:06 PM   #10
jaxa
The Old Man
 
Join Date: Mar 2005
Location: Poland
Posts: 1,487
Downloads: 418
Uploads: 0
Default

Wow, the game looks fantastic now.
Good work Rubini, it's the next mod for my "must have" mods set.
__________________
GWX Knight's Cross Edition v2.5
jaxa is offline   Reply With Quote
Old 10-15-13, 02:29 PM   #11
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
Default

Quote:
Originally Posted by Seeadler View Post
No, my widescreen d3d9.dll decodes at runtime the vertex/pixel shader from memory and writes it as shader assembly code into txt-files. Once these txt-files are available, the SH3 engine uses the shader code from these files and not the hard-coded. At current work status only the shader instructions can be changed by editing the txt-file, no new variables or textures can be passed every (x) frame to the shaders.

the SH3 ocean pixel shader for example:
Code:
    ps_1_1
    tex t0                            
    texbem t1, t0                  
    mad t1, t1, c0.w, c1.w     
    dp3_sat r0, v0_bx2, t0
    lrp r0.xyz, r0.w, c0, c1
    lrp r0.xyz, v0.w, t1, r0
  + mov r0.w, t0.w
// approximately 6 instruction slots used (2 texture, 4 arithmetic)
And yet there is a shader for clouds but only a vertex shader. I assume it is used to calculate the mapping of cloud textures on the 3D cloud dome.
Seeadler,

And about shadows, any hope?
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 10-15-13, 03:02 PM   #12
Dronston
Officer
 
Join Date: Jan 2008
Location: Netherlands
Posts: 247
Downloads: 68
Uploads: 0
Default

Thanks Rubini, very nice addition.

I confirm that you can install mid patrol and it seems to work fine in combination with MEP (20 km atmos).
__________________
Live to fight another day!
Dronston is offline   Reply With Quote
Old 10-15-13, 04:08 PM   #13
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Rubini View Post
And about shadows, any hope?
I thought it was a shadow shader but it is only assigned to crew models and do some kind of bump-mapping

what I am trying to do is to replace the shaders with new ones which are configurable from the outside.
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!
Seeadler is offline   Reply With Quote
Old 10-15-13, 04:21 PM   #14
Rhodes
Silent Hunter
 
Rhodes's Avatar
 
Join Date: Aug 2005
Location: Figueira da Foz, Portugal
Posts: 3,661
Downloads: 152
Uploads: 0


Default

^ Psychedelically baby!

Already download it and install it! Great mod! Obrigado cara!
Rhodes is offline   Reply With Quote
Old 10-20-13, 05:22 AM   #15
CaliEs
Loader
 
Join Date: Oct 2011
Posts: 89
Downloads: 27
Uploads: 0
Default

+ easy to install (no conflicts)
- zoom in: "clouds" disappears = immersion killer
- "clouds" hang on the surface
- most "clouds" look uniform
- only useful/realistic if the weather is foggy

Overall: disappointed
__________________
Dietrich von Carlewitz, 2nd Lt.
U-29
CaliEs is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 03:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.