![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#31 | |
Black Magic
![]() |
![]() Quote:
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! ![]() 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. |
|
![]() |
![]() |
![]() |
#32 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
RB, your pics ... "Ìíîãî øóìà èç íè÷åãî" ...
Speech about shadow, not illumination ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
![]() |
![]() |
![]() |
#33 | |
Black Magic
![]() |
![]() Quote:
![]() ![]() 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..... |
|
![]() |
![]() |
![]() |
#34 | |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,764
Downloads: 171
Uploads: 0
|
![]() Quote:
![]() BTW, G'day. ![]()
__________________
Sub captains go down with their ship! |
|
![]() |
![]() |
![]() |
#35 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Brillianty stuff RacerBoy and a big thumbs up to your open attitude, its a refreshing thing to have.
Say NO to fuddy duddy modders, say YES to Glasnost! ![]() |
![]() |
![]() |
#36 |
Ocean Warrior
![]() Join Date: Nov 2008
Location: Auburn, Alabama
Posts: 3,333
Downloads: 101
Uploads: 0
|
![]()
Wow, looking forward to this, hopefully my rig can take it.
![]()
__________________
![]() |
![]() |
![]() |
![]() |
#37 |
Black Magic
![]() |
![]()
You might be waiting awhile. I understand how to make it work on the 88mm gun but I don't fully understand why it works. Also I have not been able to make it cast those shadows onto other objects.
I've been trying to make other objects cast shadows onto themselves and haven't had much luck yet ![]() So today's project is picking the 88mm completely apart, node by node, playing node isolation and node hiding to try and fully understand why it works on the 88mm. I've been hoping Privateer might chime in since it appears he's obviously figured out how to cast shadows onto other objects. Maybe even Anvart might take an interest and dive into the files with his hex editor and discover something? The 88mm casting shadows onto itself didn't even make my laptop (2.0 GHz 8600 GeGorce) flinch. It doesn't appear to use much processing power to make them. The shadow is basically a reflection but instead of on water it's on the object. Time to get busy. |
![]() |
![]() |
![]() |
#38 |
Navy Seal
![]() Join Date: Mar 2007
Location: New Mexico, USA
Posts: 9,023
Downloads: 8
Uploads: 2
|
![]()
It can't be as trivial as setting UseObjectVisibility = False to "True" in the DynamicShadowCast controller, right?
I lack the will to stick a SH3 gun on something to try it (as simple as that is, I'm feeling lazy right now). |
![]() |
![]() |
![]() |
#39 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#40 | |
Chief
![]() Join Date: Jul 2005
Posts: 316
Downloads: 28
Uploads: 0
|
![]() Quote:
![]()
__________________
Everything comes to him who waits |
|
![]() |
![]() |
![]() |
#41 |
Black Magic
![]() |
![]()
this is like a living document of my tearing the 88mm deckgun apart in the GUNS_SUB.dat file:
well here's observation #1: before I went to bed last night shadows were working on the 88mm. I wake up this morning and shadows don't work ![]() ![]() SH3 version 1's SH3Controllers.ACT file is 148kb. SH3 version 1.4b's SH3Controllers.ACT file is 144kb. When you look at both using a hex editor you see that the DynamicShadows render controller was removed from the 1.4b version. So step #1 in getting shadows to work is you have to use SH3 1.0's SH3Controllers.ACT file. ![]() observation #2: I was thinking that a WaterReflection controller might need to be attached to them to make it work (since the 88mm had some WaterReflection controllers in it and in the 3D world you make 'projections' of the object to cast shadows of it and the WaterReflection is a type of projection) but no. I removed all the WaterReflection controllers and still got wonderful shadows: ![]() you can see the wheels and the knobs of the wheels being reflected along with the harnesses on the 88mm itself ![]() observation #3: where the DynamicShadow light source is placed matters. Placing it at the root node (one with no 3D model ID and no parent ID) will not produce shadows. It has to be placed on a node with a 3D model AND a parent ID. I tried adding a dummy node to the root so that the dummy node had a parent ID to see if it would work - nope. It appears it needs a 3D model with the light source. Now whether it will work on a node with a 3D model ID and no parent ID is something to try. The light source comes from the \data\scene.DAT file. From SH3 v1.0 SH3Controllers.ACT file: DynamicShadow.......DynamicShadow Render Controller. The entire sub hierarchy will receive shadow from all objects with DynamicShadowCast user data (NOT DRAWLIST & FREE) in this sub hierarchy. d..lG...G..`G...G...G..NG..Light...object..Paralle l light which will cast shadow... ... a...E...E...E...c..HG..BG..<G...\DynamicShadow.cpp I'm thinking 'NOT FREE' means no parent ID and/or no 3D model ID. 'NOT DRAWLIST' has me stumped. observation #4: the node the DynamicShadow light source is attached to DOES NOT need an SHD_ node attached to it. Ok, this makes sense now. Trying to attach the DynamicShadow light source to the root node with no 3D model will have it trying to projects shadows onto nothing. Once I moved it to the beginning node with a 3D model in the 88mm gun (the base or copil) then it had a place to cast shadows onto (the base or copil and the hierarchy under it). An SHD node was not needed for this base (or copil) because this is where the shadows are being projected onto (the entire hierarchy of copil). Well that puts observation #3 partially to rest. observation #5: using different light sources produces different effects or none at all. Using ambient light gives blocky, black shadows (of different shades depending on light) over the entire object surface (you can't tell what's being shadowed), using sunlight for the light source gives the results above in the screenie, using sun_reflection as the light source gives no shadows. Have to try making my own light source and figure out how this works. observation #6: everything under copil that is wanting to be shadowed has to have (appears as of now) an SHD type node with a DynamicShadowCast controller attached to that SHD node. Time to tear this apart and see how it works. as I suspected it works. Removed the SHD_88mm_UDeck_Gun_High_Base node (along with it's DynamicShadowCast node) and here's what I got (just the shadowing from the main gun body): ![]() From SH3 v1.0 SH3Controllers.ACT file: DynamicShadowCast...DynamicShadowCast User Data.....UseObjectVisibility.Use the object visibility for shadow.... ....b...E...E...E...b..HG..BG..<G...T...b...b...E. ..E.. c..`c...F...F..e:\ubi_projects\silenthunter_root\s ilenthunter3\src\sh3controllers\DynamicShadow now to determine the different combinations (if any besides the known) that will bring back the missing shadows that I removed. Time to play. Gave 88mm_UDeck_Gun_High_Base node: - just SHD node - buzzer - just DynamicShadowCast with UseObjectVisibility set to 0x0 - buzzer - just DynamicShadowCast with UseObjectVisibility set to 0x1 - buzzer - SHD node and DynamicShadowCast node with UseObjectVisibility set to 0x0 - buzzer - SHD node and DynamicShadowCast node with UseObjectVisibility set to 0x1 - buzzer - SHD node with DynamicShadowCast node attached to it with UseObjectVisibility set to 0x1 - buzzer - SHD node with DynamicShadowCast node attached to it with UseObjectVisibility set to 0x0 - ding ding winner!! (as I expected) now to try and make another gun cast shadows onto itself. 20mm single looks like a good one... Last edited by TheDarkWraith; 02-17-09 at 05:42 PM. |
![]() |
![]() |
![]() |
#42 |
Captain
![]() Join Date: Jul 2007
Location: Somewhere under the ocean
Posts: 504
Downloads: 302
Uploads: 0
|
![]()
Hi Guys
Great to know that you are working on such a necessary and refreshing update- just to say that I very much appreciate your efforts and will watch this very closely! Good luck ![]() |
![]() |
![]() |
![]() |
#43 | |
Planesman
![]() Join Date: Jun 2006
Location: Southern California
Posts: 194
Downloads: 78
Uploads: 0
|
Racerboy
Privateer stated (back in post 13) that they were still in version 1.4 but that there were "other" problems involved?? ![]() I hope somebody can make it work ![]() This would be spectacular! Quote:
|
|
![]() |
![]() |
![]() |
#44 |
Black Magic
![]() |
![]()
that is a correct statement, DynamicShadows are in 1.4b BUT they are disabled because they removed DynamicShadows from the SH3Controllers.ACT file (the controllers file) in 1.4b. There are other reasons they are disabled (like missing light sources for one). From my post ealier I lost my shadows when I used the 1.4b SH3Controllers.ACT file.
Now I have not been able to duplicate Privateer's casting shadows onto other objects. Maybe he has found something else here than I have. |
![]() |
![]() |
![]() |
#45 |
Black Magic
![]() |
![]()
ok I added what was missing to the 88mm deckgun to get good looking shadows. I'm not finished with ensuring it's totally correct (SHD nodes need all their 3D models verified for one) but here's a working example for you all to view and see how it looks on your computer (SH3 v1.0 SH3Controllers.ACT included in it):
http://rapidshare.com/files/19938658...esting.7z.html just unzip to MODS folder. Enable 'SHD_testing' and then run the single mission 'SHD_testing'. Let me know what you think so far. Note: all reflections have been stripped out of this one for the 88mm. I needed a base to work from. Rapidshare says only 10 people get to download this. Get it while it's hot ![]() |
![]() |
![]() |
![]() |
|
|