Changing a map from day to night during gameplay

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
Null_Clone_Assasin
Lance Corporal
Posts: 90
Joined: Wed Nov 12, 2008 7:24 pm

Changing a map from day to night during gameplay

Post by Null_Clone_Assasin »

is this possible and how would i do it?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: Changing a map from day to night during gameplay

Post by 501st_commander »

The FAQ / Everything You Need Thread: Random Sky/Fx/Lighting Tutorial (FAQ)
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Changing a map from day to night during gameplay

Post by RogueKnight »

Not quite, that tells you how to do random skies, not how to change the sky during a battle.

My best guess would be to make a skydome with an animated .tga, similar to tank treads, and have a texture that scrolled across, slowly turning day into night.
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: Changing a map from day to night during gameplay

Post by DarthD.U.C.K. »

i think that would look ugly
imagine clouds which get more and more squashed when they rise..
User avatar
Gen.Kenobi
Corporal
Corporal
Posts: 150
Joined: Sun Feb 08, 2009 3:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Lieutanant Commander aboard ENTERPRISE NX-01

Re: Changing a map from day to night during gameplay

Post by Gen.Kenobi »

What he said.

But the transition would need to be really slow to make it happen.
User avatar
YouJediJunkie
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Mon Mar 10, 2008 4:06 pm

Re: Changing a map from day to night during gameplay

Post by YouJediJunkie »

Well, simply an animated texture - many frames for the same animated image? Might eat up too much memory, but hey... :music:
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changing a map from day to night during gameplay

Post by Maveritchell »

YouJediJunkie wrote:Well, simply an animated texture - many frames for the same animated image? Might eat up too much memory, but hey... :music:
Hah, an animated skydome? That's preposterous (not to make fun, but it really is laughable if you consider the reasons):
1) Animated textures are really just one texture, divided into a (power of two) number of keyframes (i.e. one texture split into 16 even pieces).
2) Skydome textures need, particularly, to be high-res, because they're stretched over an entire sky.

I think the problem is apparent. :wink:
Null_1138
Jedi
Jedi
Posts: 1192
Joined: Thu Oct 16, 2008 4:05 pm

Re: Changing a map from day to night during gameplay

Post by Null_1138 »

Well, if you can change the ambient lighting ingame, then you can get a work-around. If not, then you're stuck with random skies.

You could have a thick cloud cover, then animate it to move and reveal the skydome. I don't know, I'm just guessing from what I see happen in CoD4's "Ultimatum" map.
User avatar
Null_Clone_Assasin
Lance Corporal
Posts: 90
Joined: Wed Nov 12, 2008 7:24 pm

Re: Changing a map from day to night during gameplay

Post by Null_Clone_Assasin »

thanks guys, sorry, bad question :oops:
Post Reply