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 02-15-09, 09:45 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

I saw this and took a huge interest in it since it seems it's possible to have shadows. As I have not been able to duplicate Privateer's results (yet) I have though come up with another type of shadow - a shadow on the object's side that doesn't have direct sunlight on it and partial shading from obscured light. In the fist screenie below you'll see the left side of the VIIb at sunset. You can tell that everything is lit normally due to the sunlight (though there is some partial shading on the 88mm gun base - mouse arrow):


now when I go to the other side notice how the base of the 88mm gun is black (where the mouse arrow is) and some other items of the 88mm gun - it's shadowed! Nothing else is shadowed because I was only focusing a couple of the items of the 88mm to see if it was feasible or not. Now I will dig deeper into this. For you nay sayers, look at the entire gun. Notice how other parts aren't black and look at the side of the Turm - it's not black.


it's unbelievably simple once you've seen and know how it works. You need a light source at the top of your root tree (DynamicShadow controller) that shines the light (ambient light) to make the shadow. The child nodes of this root node (containing the light source) have to contain an SHD_xxx node AND that SHD_xxxx node has to have a DynamicShadowCast controller attached to it to make shadows. Simple (although it took me 10 hours today to just figure this out!) Unlike some others I believe in sharing information that I find. The more heads looking into this the better IMO (I thought the attitude had changed around here - I see nothing ever changes as always).

Last edited by TheDarkWraith; 02-16-09 at 12:16 AM.
TheDarkWraith is offline   Reply With Quote
Old 02-15-09, 09:50 PM   #2
Task Force
Rear Admiral
 
Join Date: Jul 2008
Location: SPACE!!!!
Posts: 10,142
Downloads: 85
Uploads: 0
Default

Veary nice finds privateer/Racerboy.
__________________
Task Force industries "Taking control of the world, one mind at a time"
Task Force is offline   Reply With Quote
Old 02-16-09, 12:52 AM   #3
rascal101
Grey Wolf
 
Join Date: Jun 2006
Posts: 769
Downloads: 200
Uploads: 0
Default

I'm very interested in this please keep investigating and keep us informed, also curious if any one knows how to improve glare, ie when light hits a metal surfacew there is a reflected glare, would be more pronounced on wet surfaces. does any one think this can be improved or modded?
rascal101 is offline   Reply With Quote
Old 02-16-09, 01:00 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by rascal101
I'm very interested in this please keep investigating and keep us informed, also curious if any one knows how to improve glare, ie when light hits a metal surfacew there is a reflected glare, would be more pronounced on wet surfaces. does any one think this can be improved or modded?
play with the specular. If you're going for a desired effect for one particular item then you'll need to create a new 2/0 node for it.

Well I took what I found above and applied it to the hull and turm of the VIIb and it's very interesting what came about from it. The shading of light is very pronounced and profound - I like it! And it hasn't even been tweaked yet, this was just slapped together to see how it would appear in game.

left side:


camera moved over to right side:


okay played enough today. I'm tired
Maybe Privateer will let us know what he did and we can get some very interesting effects. If not, in time I'll figure it out.
TheDarkWraith is offline   Reply With Quote
Old 02-16-09, 05:58 AM   #5
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

RB, your pics ... "Ìíîãî øóìà èç íè÷åãî" ...
Speech about shadow, not illumination ...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 02-16-09, 09:33 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Anvart
RB, your pics ... "Ìíîãî øóìà èç íè÷åãî" ...
Speech about shadow, not illumination ...
Hey Anvart, I have no clue what you said let alone do I really care. But let me pose this question to you....why not work with me on this? I know you're good with hex editing as I am. Oh, and this should put your whatever you said above to rest....




By replacing the light source from ambient to sunlight I was able to have the object cast shadows onto itself. Now I just have to have it project those shadows onto other objects.....
TheDarkWraith is offline   Reply With Quote
Old 02-16-09, 07:58 PM   #7
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,752
Downloads: 171
Uploads: 0
Default

Quote:
Now I just have to have it project those shadows onto other objects.....
Is that all!!
BTW, G'day.
__________________

Sub captains go down with their ship!
Reece is offline   Reply With Quote
Old 02-19-09, 04:33 AM   #8
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by Racerboy
Quote:
Originally Posted by Anvart
RB, your pics ... "Много шума из ничего" ...
Speech about shadow, not illumination ...
Hey Anvart, I have no clue what you said let alone do I really care. But let me pose this question to you....why not work with me on this? I know you're good with hex editing as I am. Oh, and this should put your whatever you said above to rest....




By replacing the light source from ambient to sunlight I was able to have the object cast shadows onto itself. Now I just have to have it project those shadows onto other objects.....
OK. Now i see ...
I do not see necessity of my participation in this work (SH3 and SH4 are not interesting for me for a long time) ...
You will make all well and correctly, i think ...
Good luck.
__________________
Alex ®


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

Last edited by Anvart; 02-19-09 at 05:13 AM.
Anvart is offline   Reply With Quote
Old 02-07-22, 08:51 AM   #9
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 925
Downloads: 27
Uploads: 0


Default

Dynamic shadows don't add a lot of "eye candy" in SH3, and they are buggy anyway. I think that SH3 is just not good enough to create "realistic" environmental scenes. Particule effects are also very limited.

Quote:
Originally Posted by TheDarkWraith View Post
Unlike some others I believe in sharing information that I find. The more heads looking into this the better IMO (I thought the attitude had changed around here - I see nothing ever changes as always).
Mister_M 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:11 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.