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 08-02-07, 04:26 AM   #1
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default Lightning prob in SH4



As I think you guys might have a trick or 2 up your sleeves I decided to post a plea here

Over at the SH4 mod forum we are trying to figure why the lightning is not showing up as it should in bad weather. We can now see it but only when its really dark, and it only seem to emanate from one spot etc.
Thread Link:
http://www.subsim.com/radioroom/showthread.php?t=115503

I have been searching this forum for a lead but have not really found any hard facts as of yet. Maybe one of you guys remember or did a tweak for this stuff in GWX for example or simply looked at enhancing the lightning for SH3 and could give us some hints as to what to look for.

We found that there are settings for "Lightning" in the
Scene.dat
Materials.dat
Particles.dat

But are there any other .dat that might control this stuff?

Thanks and Cheers!
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 04:59 AM   #2
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Those 3 files do control the lightning.

I think you need to look elsewhere, maybe the Environment settings. I reckon the improved environmental effects in SH4 are affecting the lightning. What do they look like with all the filters off?

Also, don't forget that the files are DDS and as such, the further away the lightning is rendered the game will use the reduced version (are they dds is SH4?).
__________________
danlisa is offline   Reply With Quote
Old 08-02-07, 05:09 AM   #3
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Surprisingly they are TGA's. One of the 1st thing i looked at.
Environment settings might be a lead. Did not yet check that stuff. Will have a look. Thanks!
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 07:32 AM   #4
Dowly
Lucky Jack
 
Join Date: Apr 2005
Location: Finland
Posts: 25,054
Downloads: 32
Uploads: 0


Default

Just a though, check if the alpha channel of the lighting .tga is messed up. If it's solid white or close to solid white, it there's no problem. But if it's very very very transparent white that you can barely see, then that's the problem.
Dowly is offline   Reply With Quote
Old 08-02-07, 07:45 AM   #5
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

Moin CC,

have you checked the selfillumination bytes in the tga´s properties section?

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 08-02-07, 10:34 AM   #6
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Cheers guys, just home here and will start digging
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 12:05 PM   #7
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Quote:
Originally Posted by DivingDuck
Moin CC,

have you checked the selfillumination bytes in the tga´s properties section?

Regards,
DD
Where would i find that?
In the TGA itself or do you mean in the particles.dat or...

Cheers!
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 01:11 PM   #8
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

I think DD means some bytes part of the self illumination chunk, or material chunk that references the tga? My tool does not display them atm though...
skwasjer is offline   Reply With Quote
Old 08-02-07, 01:23 PM   #9
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Ahhh, cheers. will digg
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 01:49 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

I took apart the funnel_smoke used in particles.dat and found that it used the material DE6E9B8F8621FB6C for the smoke. I found this in the materials.dat and here's the entry before the tga file that's packed in:

02 00 00 00 00 00 00 00 36 00 00 00 DE 6E 9B 8F
86 21 FB 6C 23 FF FF FF 00 E5 E5 E5 00 3F 00 00
1D 85 00 00 2C 00 01 00 E8 91 06 40 00 00 00 00

53 6D 6F 6B 65 5F 76 6F 6C 75 6D 30 32 2E 74 67
61 00

Is the highlighted yellow the self illumination bytes? If so, how do you read this? If it's not, what is this and how do you read it?


EDIT: Stupid me! I knew what the second highlighted text was! I have removed it now. So the question remains what is the above highlighted text?

DD, help! What are these highlighted things? I can't make sense of it.

Not trying to highjack this thread but since self illumination bytes were brought up I thought I'd ask.


If you'd like to see what Visio can do then look here:

http://rapidshare.com/files/46583793...visio.jpg.html

The text is small because the breakdown of funnel_smoke was big! It's just to give you an idea of what you can do with it.

Last edited by TheDarkWraith; 08-02-07 at 03:09 PM.
TheDarkWraith is offline   Reply With Quote
Old 08-02-07, 03:03 PM   #11
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Not Hijacking at all I find it very interesting. Keep it up
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 03:18 PM   #12
leovampire
Eternal Patrol
 
Join Date: Apr 2007
Location: Waterbury, CT. USA
Posts: 2,336
Downloads: 0
Uploads: 0
Default question there is also in the particles file

somthing about transparency for each of the lightnings could this also be part of the problem?
leovampire is offline   Reply With Quote
Old 08-02-07, 04:07 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Ok, partial mystery solved on the highlighted text. Using S3D (great app though it has many problems still!) I found out what some are and it breaks down to the following:

02 00 00 00 00 00 00 00 36 00 00 00 DE 6E 9B 8F
86 21 FB 6C 23 FF FF FF 00 E5 E5 E5 00 3F 00 00
1D 85 00 00 2C 00 01 00 E8 91 06 40
00 00 00 00
53 6D 6F 6B 65 5F 76 6F 6C 75 6D 30 32 2E 74 67
61 00

0x23 = opacity (35d)
0xFFFFFF = Diffuse (255d,255d,255d)
0x00 = ?? (Diffuse strength?? - would make sense since it follows Diffuse)
0xE5E5E5 = Specular (229d,229d,229d)
0x00 = ?? (Specular strength?? - would make sense since it follows Specular)
0x3F = Glossiness
0x00000000 = should be the marker for end of data and next to follow is the tag name

rest of yellow highlight still a mystery............DD????
Could these be the self illumination bytes?
TheDarkWraith is offline   Reply With Quote
Old 08-02-07, 04:14 PM   #14
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Brilliant Racerboy! Will have to look in the morn as its bedtime here
Will dig in with a hexed in the morn.
__________________
CaptainCox is offline   Reply With Quote
Old 08-02-07, 05:34 PM   #15
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

Quote:
Originally Posted by Racerboy
02 00 00 00 00 00 00 00 36 00 00 00 DE 6E 9B 8F
86 21 FB 6C 23 FF FF FF 00 E5 E5 E5 00 3F 00 00
1D 85 00 00 2C 00 01 00 E8 91 06 40
00 00 00 00
53 6D 6F 6B 65 5F 76 6F 6C 75 6D 30 32 2E 74 67
61 00
Red is the size of the TGA file.
Blue control the self illuminance according to DD. How, I don't know...

The rest I don't know yet... If I do, I can add it to my tool...
skwasjer 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 08:32 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.