aligning directional lighting with the sun

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
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

aligning directional lighting with the sun

Post by MileHighGuy »

Is there a way to align the directional lighting in the map with the sun in the .sky file? Do I have to eyeball it? Use trigonometry? Copy and Paste?
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: aligning directional lighting with the sun

Post by Marth8880 »

Set the sun's position first, look at where it is in-game, and then set the directional light.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: aligning directional lighting with the sun

Post by MileHighGuy »

so eyeballing it is then.. I was just hoping for a more accurate way..
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: aligning directional lighting with the sun

Post by AQT »

A more accurate way would be to set the sun's position and then go in-game. Find where the sun is, and make sure your unit is directly facing the sun. Then rotate your unit 180 degrees such that your unit's backside is parallel to the sun. Bring up the minimap display, and take a screenshot for reference. You now know in which direction your directional lighting has to point in relation to North based on your unit's arrow.
Post Reply