Extremely odd and annoying lighting problems.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Extremely odd and annoying lighting problems.

Post by Fiodis »

I'm trying to give the shipped Endor a quick edit - namely, freeze it.

To this end, I made everything snowy, added snow, etc. A problem, however, arises.

The white ground gives off a painful white glare.
Hidden/Spoiler:
Image
How do I get rid of this? I tried changing a few lines in the world's fx file:

Code: Select all

	WorldBrightness(0.25);
//And also this:
	PC()
	{
		GammaBrightness(0.25);
Where before they were both .5, but that didn't work. I thought about setting a darker ambient light, but when I loaded the stock Endor world file from my mod's folders, almost none of the objects appeared, and I didn't want to save a corrupted world file.

Anyone know how I can lower the intensity of this brightness?


Another lighting problem is this:
The ground has green lighting. No doubt this is good for stock Endor, but not so much for me. I think it's ambient lighting - although it looks a bit different, and it "moves" to simulate trees swaying in the wind, which I didn't know ambient lighting could do. I don't want to try setting a new ambient lighting with the world file coming up strangely as it does in ZE....any ideas?

A pic:
Hidden/Spoiler:
Image
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Extremely odd and annoying lighting problems.

Post by Maveritchell »

Remove this section from Endor's .fx file:

Code: Select all

Effect("WorldShadowMap")
{
	Enable(1);
	Texture("end_canopy");
	LightName("sun");
	TextureScale(70.0);	
	AnimationFrequency(0.1);
	AnimationAmplitude0(2.0, 0.0);
	AnimationAmplitude1(0.05,-0.1);
}
...and your problems will be gone.
Post Reply