Lighting Woes

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
ps2owner
Corporal
Corporal
Posts: 155
Joined: Wed Jun 23, 2010 8:25 pm

Lighting Woes

Post by ps2owner »

So I've placed lights in ZE and burned the terrain, but all models and units are pitch black except when they're near a Command Post. Oh, and I have the ambient light to a really low level, because my map is set at night. Help? Thanks in advance.

(Offtopic: This forum is a million times more mature then the MC forums)
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Lighting Woes

Post by DarthD.U.C.K. »

what kind of lights did you place in ze? if you have a directional light you should enter its name under "directional light 1" on the right to make it a global light. also activate "enable specular" and "cast shadows" for it.
Last edited by DarthD.U.C.K. on Sat Nov 26, 2011 6:42 pm, edited 1 time in total.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Lighting Woes

Post by THEWULFMAN »

ps2owner wrote:(Offtopic: This forum is a million times more mature then every other forum in the internet)
Fixed.



Post the contents of your .sky file, and your .lgt file (in Hide tags).
User avatar
ps2owner
Corporal
Corporal
Posts: 155
Joined: Wed Jun 23, 2010 8:25 pm

Re: Lighting Woes

Post by ps2owner »

I'm using Spotlights.
Sky File
Hidden/Spoiler:
SkyInfo()
{
Enable(1);
FogColor(20,20,20,128);
PS2()
{
FogRange(0, 0);
NearSceneRange(0.5, 85.0, 100.0);
FarSceneRange(5000.0);
SplitOptions()
{
PropClusterEnable(1);
PropClusterFadeAdj(0.6);
PropClusterDensity(0.1);
}
}
XBOX()
{
FogRange(-200.0, 1300.0);
NearSceneRange(0.5, 85.0, 100.0);
FarSceneRange(3000.0);
NearSplitScreenRange(0.2, 110.0, 160.0);
FarSplitScreenRange(0.0);
SplitOptions()
{
FogRange(5.0, 140.0);
PropClusterEnable(0);
}
}
PC()
{
NearSceneRange(30.0, 160.0, 40.0, 200.0);
FarSceneRange(5000.0, 5000.0);

FarSceneRange(5000.0);
FogRange(-100.0, 600.0);
}

}


DomeInfo()
{
Texture("sky_naboo2");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Filter(1);
Threshold(150);
Intensity(50);

Softness(1);
SoftnessParam(60);

DomeModel()
{
Geometry("sky_yav2");
}


}
LGT File (So that's where the lights are stored)
Hidden/Spoiler:
Light("Light 27", 41532921)
{
Rotation(0.651138, 0.758959, 0.000000, 0.000000);
Position(161.250534, 22.396893, -364.641541);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 1.221730);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 9", 140734512)
{
Rotation(0.695626, 0.718404, 0.000000, 0.000000);
Position(-206.102509, 22.955879, -375.801575);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.396263, 1.396263);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 12", 144259219)
{
Rotation(0.643538, 0.765414, 0.000000, 0.000000);
Position(-62.499588, 21.572004, -395.098450);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 23", 291877130)
{
Rotation(0.715733, 0.698375, 0.000000, 0.000000);
Position(-186.982040, 63.631241, -163.797043);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 32", 494209670)
{
Rotation(0.757215, 0.653168, 0.000000, 0.000000);
Position(62.003647, 61.672546, -151.672791);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.221730, 1.221730);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 7", 592304873)
{
Rotation(0.737335, 0.675528, 0.000000, 0.000000);
Position(-283.182404, 55.165276, -170.707642);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 29", 822974876)
{
Rotation(0.681163, 0.732132, 0.000000, 0.000000);
Position(115.206276, 44.999252, -218.242050);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 31", 994966879)
{
Rotation(0.688429, 0.725304, 0.000000, 0.000000);
Position(26.500454, 39.322933, -241.597290);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 17", 1286540057)
{
Rotation(0.684982, 0.721675, -0.072476, -0.068791);
Position(-238.249390, 114.664131, 25.334976);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 11", 1323749729)
{
Rotation(0.716801, 0.697278, 0.000000, 0.000000);
Position(-60.838734, 24.950960, -353.605011);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 5", 1498000025)
{
Rotation(0.763931, 0.645298, 0.000000, 0.000000);
Position(-314.876892, 41.945335, -236.687622);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 6", 1669707651)
{
Rotation(0.695626, 0.718404, 0.000000, 0.000000);
Position(-315.499542, 55.221397, -168.320648);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(100.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 28", 1722806731)
{
Rotation(0.709908, 0.704296, 0.000000, 0.000000);
Position(167.500275, 30.918718, -281.064148);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.221730, 1.221730);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 24", 1796837781)
{
Rotation(0.688429, 0.725304, 0.000000, 0.000000);
Position(-57.499111, 28.260479, -279.120880);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.221730, 1.221730);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 25", 1969103961)
{
Rotation(0.709814, 0.704390, 0.000000, 0.000000);
Position(-99.499687, 38.615715, -240.158646);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.396263, 1.396263);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 18", 1989684242)
{
Rotation(1.000000, 0.000000, 0.000000, 0.000000);
Position(-295.896576, 97.414536, 45.058884);
Type(2);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(30.000000);
}

Light("Light 16", 2089470049)
{
Rotation(0.750663, 0.660687, 0.000000, 0.000000);
Position(-239.985519, 114.604515, 69.314034);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 22", 2182419078)
{
Rotation(0.709814, 0.704390, 0.000000, 0.000000);
Position(-134.499161, 55.978546, -154.030380);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 33", 2304463620)
{
Rotation(0.695626, 0.718404, 0.000000, 0.000000);
Position(8.000618, 76.533051, -95.606239);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 30", 2322946453)
{
Rotation(0.666142, 0.745825, 0.000000, 0.000000);
Position(48.500553, 39.082169, -231.529953);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 20", 2331202623)
{
Rotation(0.688429, 0.725304, 0.000000, 0.000000);
Position(-115.499725, 103.760986, 17.618176);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(30.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 3", 2448093718)
{
Rotation(0.681162, 0.732133, 0.000000, 0.000000);
Position(-295.592194, 32.661503, -290.467346);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 10", 2643246554)
{
Rotation(0.709814, 0.704390, 0.000000, 0.000000);
Position(-143.886887, 22.752026, -370.773529);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 0.872665);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 8", 2759475053)
{
Rotation(0.673829, 0.738887, 0.000000, 0.000000);
Position(-252.251648, 22.600288, -347.598785);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 19", 2866562617)
{
Rotation(0.695625, 0.718405, 0.000000, 0.000000);
Position(-183.499420, 115.406303, 56.891338);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(0.785398, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 15", 2897141401)
{
Rotation(0.716801, 0.697277, 0.000000, 0.000000);
Position(-338.842957, 114.320419, 79.278488);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 2", 3025521022)
{
Rotation(0.688431, 0.725302, 0.000000, 0.000000);
Position(-230.472260, 32.344105, -283.874054);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(25.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 1", 3503558681)
{
Rotation(0.716801, 0.697278, 0.000000, 0.000000);
Position(-263.935333, 32.800156, -290.835297);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 13", 3674984539)
{
Rotation(0.716801, 0.697278, 0.000000, 0.000000);
Position(-0.467683, 25.806618, -355.702820);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 14", 3735193683)
{
Rotation(0.716801, 0.697278, 0.000000, 0.000000);
Position(-0.499630, 25.430828, -401.378967);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 21", 3804575240)
{
Rotation(0.763931, 0.645298, 0.000000, 0.000000);
Position(-45.999790, 76.314728, -87.772423);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 26", 3970955040)
{
Rotation(0.695626, 0.718404, 0.000000, 0.000000);
Position(70.500488, 21.785112, -384.970764);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.221730, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

Light("Light 4", 4083448606)
{
Rotation(0.612507, 0.790465, 0.000000, 0.000000);
Position(-337.892761, 115.014565, 26.237947);
Type(3);
Color(1.000000, 1.000000, 1.000000);
Static();
Range(40.000000);
Cone(1.745329, 1.745329);
PS2BlendMode(0);
Bidirectional(0);
}

GlobalLights()
{
Light1("");
Light2("");
Top(25, 25, 25);
Bottom(0, 0, 0);
}
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Lighting Woes

Post by Marth8880 »

ps2owner wrote:I'm using Spotlights.
There's your problem; you need to use a directional light for global lighting.
User avatar
ps2owner
Corporal
Corporal
Posts: 155
Joined: Wed Jun 23, 2010 8:25 pm

Re: Lighting Woes

Post by ps2owner »

Well, I'm using spot lights for light in a low ambiance light map. It's supposed to be night on this map.
EDIT: Crap, now the map wont load. It just freezes at the loading screen with the bar filled. I'll try and fix this.
Post Reply