Page 1 of 1

Night textures

Posted: Sun Mar 25, 2012 6:35 am
by Agent West
Is it possible to make textures that change when it becomes 'night time' on a map?
So far the only thing that changes is lighting.

I guess one way is to have basically a timed 'slideshow' of textures on every surface, but the timing might be a bit tricky, would be better if it ran off server time that positions the 'sun' in the 'sky'.

Re: Night textures

Posted: Sun Mar 25, 2012 3:43 pm
by JeffM
Changing the texture no, changing the color with dynamic colors yes.

Re: Night textures

Posted: Tue Mar 27, 2012 2:26 am
by Agent West
It'll still have to get timed manually though, right?

Re: Night textures

Posted: Tue Mar 27, 2012 2:31 am
by JeffM
Yes, you would have to get it synced up.

Re: Night textures

Posted: Wed Mar 28, 2012 5:23 am
by Agent West
Ok. Thanks for the help.

Re: Night textures

Posted: Fri Mar 30, 2012 12:21 pm
by optic delusion
I think this is definitely possible with ridiculously long timing (period) of an alpha channel sequence in a pair of dynamic colors. Similar to the MoFo billboards.
However, clients determine the day/night time, not servers, so you never know when the player's client will be in day or night.
Now.. If you also used dyncols on a sky dome....

Re: Night textures

Posted: Fri Mar 30, 2012 2:53 pm
by blast
Optic Delusion wrote:However, clients determine the day/night time, not servers, so you never know when the player's client will be in day or night.
These two options exist for bzfs. Paired up with a proper _latitude/_longitude setting, wouldn't they allow that to work?

Code: Select all

-synctime: synchronize time of day on all clients
-synclocation: synchronize latitude and longitude on all clients

Re: Night textures

Posted: Fri Mar 30, 2012 6:46 pm
by joevano
But couldn't the client then change their "time of day" using '+/-" defeating the -synctime ?

Re: Night textures

Posted: Fri Mar 30, 2012 9:11 pm
by optic delusion
in my experience, I've never gotten -synctime to work. I even tried tricks that I saw Trepan use, (when I used /saveworld on his maps), like -synctime 7777.
-synclocation is new to me. Is it new to 2.4 ? I always set -latitude and -longitude.
If someone does get this to work, I'd be interested to know the trick that i couldn't figure out. Maybe it was just that I missed -synclocation.

Re: Night textures

Posted: Fri Mar 30, 2012 10:52 pm
by blast
joevano wrote:But couldn't the client then change their "time of day" using '+/-" defeating the -synctime ?
From what I understand, when the server has -synctime, the client cannot control the time of day.