Night textures

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Night textures

Post by Agent West » Sun Mar 25, 2012 6:35 am

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'.
Rest in peace, AliceD (AKA Happy Alice)! miss ya!

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Night textures

Post by JeffM » Sun Mar 25, 2012 3:43 pm

Changing the texture no, changing the color with dynamic colors yes.

User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Night textures

Post by Agent West » Tue Mar 27, 2012 2:26 am

It'll still have to get timed manually though, right?
Rest in peace, AliceD (AKA Happy Alice)! miss ya!

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Night textures

Post by JeffM » Tue Mar 27, 2012 2:31 am

Yes, you would have to get it synced up.

User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Night textures

Post by Agent West » Wed Mar 28, 2012 5:23 am

Ok. Thanks for the help.
Rest in peace, AliceD (AKA Happy Alice)! miss ya!

User avatar
optic delusion
Special Forces
Special Forces
Posts: 965
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Night textures

Post by optic delusion » Fri Mar 30, 2012 12:21 pm

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....
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
blast
General
General
Posts: 4681
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Night textures

Post by blast » Fri Mar 30, 2012 2:53 pm

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
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Night textures

Post by joevano » Fri Mar 30, 2012 6:46 pm

But couldn't the client then change their "time of day" using '+/-" defeating the -synctime ?
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

User avatar
optic delusion
Special Forces
Special Forces
Posts: 965
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Night textures

Post by optic delusion » Fri Mar 30, 2012 9:11 pm

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.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
blast
General
General
Posts: 4681
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Night textures

Post by blast » Fri Mar 30, 2012 10:52 pm

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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests