Page 1 of 1

Night and twilight

Posted: 30 Jun 2016, 16:47
by alaska
Does anyone know if warzone is capable of having night or anyway to change the world lighting?

It was something I was thinking about the other day.

Re: Night and twilight

Posted: 30 Jun 2016, 20:05
by Per
Yes, you can script it in 3.2. Call setSunPosition(x, y, z) and setSunIntensity(ambient r, g, b, diffuse r, g, b, specular r, g, b).

You can also change the weather and the skybox... and even replace texture pages on the fly during the game.

Re: Night and twilight

Posted: 30 Jun 2016, 22:22
by alaska
That's really good to know, it's also nice to be able to tint the lighting. I haven't done a lot of scripting before, only some for Mechwarrior 4 Mercs bots. I know their is some tutorials.

It would be nice to have it timed to create a day/night cycle.

Re: Night and twilight

Posted: 01 Jul 2016, 17:13
by NoQ
A little demo, Script.

Unfortunately, terrain shadows are still hardcoded, and it's hard to change terrain illumination through textures, because smooth transitions would require an enormous amount of textures. So there needs to be a better mechanism for terrain lighting before we have a full-featured day-night cycle.

Re: Night and twilight

Posted: 02 Jul 2016, 11:11
by Tzeentch
That's a cool concept, simulate time passing in game (reminds me of that person simulation game by EA Maxis). I guess this would be some future enhancement to change to make it happen. Other older games had different appearances of time i.e. Tiberian Sun with: Dusk, Dawn, & midnight I think? However it was static during the match. Maybe that could be the first step before making it dynamic?

Re: Night and twilight

Posted: 02 Jul 2016, 12:26
by Per
Simulating the day/night cycle in the game is something that sounds cool in theory, but multiple people have tried and found to be merely distracting.

Re: Night and twilight

Posted: 07 Aug 2016, 11:34
by Tzeentch
I guess only if you did this in a more subtle way or had preset values like the game is day, night, dawn or dusk. It'd feel like time passing without being intrusive

Re: Night and twilight

Posted: 07 Aug 2016, 15:06
by Per
Starcraft2 has some really cool zombie mods/levels where day/night switching plays a vital role. I think we have scripting support to do the same now.