Ducimus
03-14-08, 02:24 PM
The following is a repost of a post i made on the ubi forms awhile back:
----------------------------------------------------------------
Ok, heres a little gem for you gents before i make my made dash out of the door. As part of this release, i was going to mess with the interior lighting of the interiors. I opted not to because opinion about whats correct, or what people like is rather varied. So i left lighting alone.
Instead, ill tell you how to tweak it to your own personal taste.
Fire up S3D, and open up one of the interior dat files. I suggest backing this file up first before you do anythign to it. Personally, i just use the acutal mod as a backup (since deactiveating the mod restores the orginal), or just copy the dat straight to the desktop, and copy it back into the game directory later on in case i royaly screw up.
In this example, im opening up data/interior/NSS_Gato/NSS_Gato_CT.dat
This is for, as the name suggests, the conning tower.
http://www.ducimus.net/sh415/int_color1.jpg
Look where im navigating too. You can do this for daytime lights and nightime lights. if you press the button to the left of the little red arrow you'll get this popup box:
http://www.ducimus.net/sh415/int_color2.jpg
If you look at the previous screenshot, you'll see the default value for this is 235, for Red, green, and blue values, which is fairly bright. Im just going to make it darker. So lets save it, and fire up SH4. I use the bungo pete mission alot for testing since i can select any boat, and not have to start a new career game to do it. Plus the way i made the mission, your relatively unmolested at startup, so you have time to experiment and see what you did.
So, lets fire up the game, and run the bungo pete mission and go look in the conning tower.
http://www.ducimus.net/sh415/int_color3.jpg
While i kinda like the way the green lights stick out more, the lack of light bulbs sucks! EVerything went dark. How fun is that? Not very much in my opinion. Time to fix that.
Create yourself a little modlet to run in JSGME. The file your after is
Data\Shaders\InteriorIllumination\LightHalloPS.fx
Open this up in notepad, and you'll be looking at some bit of C code that will probably confuse the hell out of you if youve never done anything related before. Fear not. heres the bit, which probably wont format correct in the forum, but ill highlight the part you'll be changing.
float3 Color : register(c0);
struct PS_IN
{
float2 Tex0 : TEXCOORD0;
};
float4 main( PS_IN In ) : COLOR
{
float dist = saturate(1-length(2*In.Tex0));
dist = pow(dist, 3.0);
dist *= 0.5;
return float4(Color * dist, 1);
}
dist *= 0.5 is what you'll be changing, but more specifically, the 0.5 in this variable. The higher you make this number, the greater the intensity of the light halo. So in this example, ill substitue 0.5 with 2.5
dist *= 2.5;
Still with me? Save the file, enable it in JSGME, and go fire up the bungo pete mission, and go check out your new lighting.
http://www.ducimus.net/sh415/int_color4.jpg
Well, now thats better isn't it? heck ya!
Now, some things to note here. Your adjustments made to lighting halos on the interior are univseral. Remember the control room which we did NOT darken? It now looks like this:
http://www.ducimus.net/sh415/int_color5.jpg
Jumpin' Jesus on a pogo stick im going blind! Basically what you do for darkness levels in one room, you must also apply to the other room as well. They dont neccessarily have to be the same color, but the darkness level should be dark enough in both areas to offset the increased light halo intensity. Also, the darker you make a room, the greater the light intensity that will be required in order for the lightbulbs to show "hey , yes were on, and theres light coming out of here".
Anyway, you could make this, any color you wanted.
A shade of blue:
http://www.ducimus.net/sh415/int_color6.jpg
Or a shade of yellow
http://www.ducimus.net/sh415/int_color7.jpg
You can have your CT one color, and the CR another if you like. Each area has a daytime and night time light setting. If you dont think the redlights at night are bright enough, you can change that. You dont like redlights and prefer bluelights at night? you can change it.
Gotta love that tool.
have fun, its friday, and i gotta get to work.
----------------------------------------------------------------
Ok, heres a little gem for you gents before i make my made dash out of the door. As part of this release, i was going to mess with the interior lighting of the interiors. I opted not to because opinion about whats correct, or what people like is rather varied. So i left lighting alone.
Instead, ill tell you how to tweak it to your own personal taste.
Fire up S3D, and open up one of the interior dat files. I suggest backing this file up first before you do anythign to it. Personally, i just use the acutal mod as a backup (since deactiveating the mod restores the orginal), or just copy the dat straight to the desktop, and copy it back into the game directory later on in case i royaly screw up.
In this example, im opening up data/interior/NSS_Gato/NSS_Gato_CT.dat
This is for, as the name suggests, the conning tower.
http://www.ducimus.net/sh415/int_color1.jpg
Look where im navigating too. You can do this for daytime lights and nightime lights. if you press the button to the left of the little red arrow you'll get this popup box:
http://www.ducimus.net/sh415/int_color2.jpg
If you look at the previous screenshot, you'll see the default value for this is 235, for Red, green, and blue values, which is fairly bright. Im just going to make it darker. So lets save it, and fire up SH4. I use the bungo pete mission alot for testing since i can select any boat, and not have to start a new career game to do it. Plus the way i made the mission, your relatively unmolested at startup, so you have time to experiment and see what you did.
So, lets fire up the game, and run the bungo pete mission and go look in the conning tower.
http://www.ducimus.net/sh415/int_color3.jpg
While i kinda like the way the green lights stick out more, the lack of light bulbs sucks! EVerything went dark. How fun is that? Not very much in my opinion. Time to fix that.
Create yourself a little modlet to run in JSGME. The file your after is
Data\Shaders\InteriorIllumination\LightHalloPS.fx
Open this up in notepad, and you'll be looking at some bit of C code that will probably confuse the hell out of you if youve never done anything related before. Fear not. heres the bit, which probably wont format correct in the forum, but ill highlight the part you'll be changing.
float3 Color : register(c0);
struct PS_IN
{
float2 Tex0 : TEXCOORD0;
};
float4 main( PS_IN In ) : COLOR
{
float dist = saturate(1-length(2*In.Tex0));
dist = pow(dist, 3.0);
dist *= 0.5;
return float4(Color * dist, 1);
}
dist *= 0.5 is what you'll be changing, but more specifically, the 0.5 in this variable. The higher you make this number, the greater the intensity of the light halo. So in this example, ill substitue 0.5 with 2.5
dist *= 2.5;
Still with me? Save the file, enable it in JSGME, and go fire up the bungo pete mission, and go check out your new lighting.
http://www.ducimus.net/sh415/int_color4.jpg
Well, now thats better isn't it? heck ya!
Now, some things to note here. Your adjustments made to lighting halos on the interior are univseral. Remember the control room which we did NOT darken? It now looks like this:
http://www.ducimus.net/sh415/int_color5.jpg
Jumpin' Jesus on a pogo stick im going blind! Basically what you do for darkness levels in one room, you must also apply to the other room as well. They dont neccessarily have to be the same color, but the darkness level should be dark enough in both areas to offset the increased light halo intensity. Also, the darker you make a room, the greater the light intensity that will be required in order for the lightbulbs to show "hey , yes were on, and theres light coming out of here".
Anyway, you could make this, any color you wanted.
A shade of blue:
http://www.ducimus.net/sh415/int_color6.jpg
Or a shade of yellow
http://www.ducimus.net/sh415/int_color7.jpg
You can have your CT one color, and the CR another if you like. Each area has a daytime and night time light setting. If you dont think the redlights at night are bright enough, you can change that. You dont like redlights and prefer bluelights at night? you can change it.
Gotta love that tool.
have fun, its friday, and i gotta get to work.