Night and twilight

Get some help with creating maps or modding.
Need a map editor or other tools, look here!

Night and twilight

Postby alaska » 30 Jun 2016, 16:47

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.
alaska
New user
 
Posts: 5
Joined: 27 Jun 2016, 17:23

Re: Night and twilight

Postby Per » 30 Jun 2016, 20:05

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.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3510
Joined: 03 Aug 2006, 19:39

Re: Night and twilight

Postby alaska » 30 Jun 2016, 22:22

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.
alaska
New user
 
Posts: 5
Joined: 27 Jun 2016, 17:23

Re: Night and twilight

Postby NoQ » 01 Jul 2016, 17:13

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.
User avatar
NoQ
Elite
Elite
 
Posts: 5988
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Night and twilight

Postby Tzeentch » 02 Jul 2016, 11:11

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?
More or less grey
User avatar
Tzeentch
Trained
Trained
 
Posts: 232
Joined: 14 Oct 2012, 14:24

Re: Night and twilight

Postby Per » 02 Jul 2016, 12:26

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.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3510
Joined: 03 Aug 2006, 19:39

Re: Night and twilight

Postby Tzeentch » 07 Aug 2016, 11:34

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
More or less grey
User avatar
Tzeentch
Trained
Trained
 
Posts: 232
Joined: 14 Oct 2012, 14:24

Re: Night and twilight

Postby Per » 07 Aug 2016, 15:06

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.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3510
Joined: 03 Aug 2006, 19:39


Return to Mapping / Modding tools & discussions