![]() |
Lightning prob in SH4
http://img75.imageshack.us/img75/4813/flashboatol7.jpg
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! |
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?). |
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! |
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.
|
Moin CC,
have you checked the selfillumination bytes in the tga“s properties section? Regards, DD |
Cheers guys, just home here and will start digging:up:
|
Quote:
In the TGA itself or do you mean in the particles.dat or... Cheers! |
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...
|
Ahhh, cheers. will digg :lol:
|
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. |
Not Hijacking at all I find it very interesting. Keep it up ;)
|
question there is also in the particles file
somthing about transparency for each of the lightnings could this also be part of the problem?
|
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? |
Brilliant Racerboy! Will have to look in the morn as its bedtime here :(
Will dig in with a hexed in the morn. |
Quote:
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... |
All times are GMT -5. The time now is 06:32 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.