08.11.2007, 06:42
About the Nightfghter project - Figured out how to alter the ambient and diffuse lighting for individual maps.
Files\maps\_Tex\Landlights.mat
In the Landlights.mat, I changed from 1.0 to:
[ClassInfo]
ClassName TMaterial
[LightParams]
Ambient 0.7
Diffuse 0.5
Was able to make this lighting individual to this particular map too:
I made a copy of the generic Landlight.mat and renamed it to LandLight_Nacht.mat. Then put it with the other one in the _Tex folder.
In the load.ini for my night Berlin map, I changed the entry to:
[LIGHT]
LandLight = LandLight_Nacht.mat
Finally, I put the entry Files\maps\_Tex\Landlights.mat into my Fileslist so that the game knew where to find the file. Now I have extra dark nights for this particular map. All the others are unchanged. This means we can customise the lighting to individual maps without changing the global one.
An interesting experiment would be to increase the glare on desert maps to see how it looks
Files\maps\_Tex\Landlights.mat
In the Landlights.mat, I changed from 1.0 to:
[ClassInfo]
ClassName TMaterial
[LightParams]
Ambient 0.7
Diffuse 0.5
Was able to make this lighting individual to this particular map too:
I made a copy of the generic Landlight.mat and renamed it to LandLight_Nacht.mat. Then put it with the other one in the _Tex folder.
In the load.ini for my night Berlin map, I changed the entry to:
[LIGHT]
LandLight = LandLight_Nacht.mat
Finally, I put the entry Files\maps\_Tex\Landlights.mat into my Fileslist so that the game knew where to find the file. Now I have extra dark nights for this particular map. All the others are unchanged. This means we can customise the lighting to individual maps without changing the global one.
An interesting experiment would be to increase the glare on desert maps to see how it looks