Random/Switching Lighting?

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
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Random/Switching Lighting?

Post by Sky_216 »

Well I've got switchable/random skydomes and fx files to work (in much the same way as space maps do it). However, I can't seem to get lighting (LGT files) to switch with them. What I've tried so far is:
1) Load LGT files along with sky files+fx files in the same method the space skies use. No effect.
2) Create two seperate layers in ZE with different lighting. Load only 1. If the base layer's LGT file is removed they have no effect, if it's still their then no effect.

Anyone got any ideas how to get around this?
My current best idea is to use fx/sky files to modify world brightness/contrast, although I'm not sure exactly what parameters to use.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Random/Switching Lighting?

Post by FragMe! »

Not sure if this will help you at all but I do know that each .lyr file has a line in it to call for a .lgt file so theoretically you could load a different lgt per mode but I am not sure about being random.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Random/Switching Lighting?

Post by Sky_216 »

Yeah I tried that....but the map just uses the base layer's lighting, and if that gets removed it just uses no lighting.
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Random/Switching Lighting?

Post by Ace_Azzameen_5 »

You have lgt calls in the lyr but not in the base? Any other lgt being called?
I can't remember if I got that to work ever... I'm not sure if I settled on using .fx's and shadow regions instead ...
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Random/Switching Lighting?

Post by Sky_216 »

Nope no other lights being called....
Don't suppose you remember how you got it to work with fx and shadowregions?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Random/Switching Lighting?

Post by FragMe! »

Not totally sure where you want to go with this, but did some playing and all spot, omni and directional lights can be on different mode layers and can be different colors, locations etc.
If you copy the Global light settings from the map.lgt file to the mode.lgt file and change the top and bottom colors that also works it didn't seem to change the ambient light though still have to work on that one.
Here is a picture of two modes, conquest and assault same location different color omni lights.
Pictures we darkened a bit so the colors showed up better but that is all that was changed.
Hidden/Spoiler:
Image
Post Reply