[PoC] Dynamic Weather

Discussions and Support on S.T.A.L.K.E.R. Mods

[PoC] Dynamic Weather

Postby nandersen on 22 Nov 2008 21:30

This is probably the way to make weather in STALKER as dynamic as it can be done without making abrupt and ugly weather switching.

How: a number of separate weather cycles are defined. These configs don't need to match at any time of day, i.e. totally independent cycles. A program loads all of these cycles and generates a config file with intermediate phases for each possible transition for every hour of the day.
Then some scripting: every hour a random number is generated with range from 1 to number of cycles. This is then used to select the next cycle. If the cycle is different from current cycle then a transition phase is initiated. The next hour the transition completes by changing to the new cycle.

The idea is very simple, really but the implementation is not completely simple: you don't want to generate transition sections between two very different looking weathers because the engine works by cross-fading the paramters and does not care if it cross-fades clear sky with sun into black thundercloud with rain. Some rules need to be set up and this significantly reduces the number of generated transitions.

Enough talk, the files for the proof of concept are fully usable (with non-weather mods or vanilla) and you can get them here: http://zhat.dk/stalker/files/dynamic_weather_v0.1.zip
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Postby MeanderingBeing on 23 Nov 2008 05:41

nice dude! totally nice!
LOOK! It says gullible on the ceiling!!!
User avatar
MeanderingBeing
Senior Resident
 
Posts: 631
Joined: 28 Sep 2008 07:03
Location: The Road.... AGAIN....

Postby DARK TEMPLAR on 23 Nov 2008 08:53

Hopefully I can see it for myself soon, got to get the mod I added it to working first ( XiaNi's freeplay )
THE DEDICATED, CERTIFIED RESIDENT MADMAN
There is no such thing as innocence in the ZONE, only degrees of guilt.
CAN YOU FEEL THE TRANQUILLITY OF THE ZONE
Knowledge is power. Guard it well.
We are shaped by fate, just as we shape it
You should never be in the company of anyone with whom you would not want to die.
Akir man yamut malak al-mut
User avatar
DARK TEMPLAR
Senior Resident
 
Posts: 1151
Joined: 16 Sep 2008 07:26
Location: Drifting in an endless haze

Postby ket on 27 Nov 2008 16:14

If this is as good as it sounds, bravo! =D>
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Postby nandersen on 27 Nov 2008 19:31

Probably it isn't :)

I've found a couple of bugs in my transition generator tool, but at least this should give you an idea about the concept.
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Early release version

Postby nandersen on 08 Dec 2008 16:44

Tons of changes to the scripting, weather adjustments and transition generation.

Download page: http://zhat.dk/stalker/

There is also a thread for this on GSC-game forum so I'm not gonna repeat anything other than the credits:
- dez0wave
- xStream
- trojanuch
- {imperialreign}
- Kanyhalos
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Re: [PoC] Dynamic Weather

Postby ket on 08 Dec 2008 16:56

Real nice :thumbright: I like those NV effects too. Looks like more little tweaks for TK 1.1 to do.

ED - Hey nand can I use your dynamic weather mod for TK? It'll make making the scorched earth theme I have planned much easier :D
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby EggChen on 08 Dec 2008 22:10

Yep, sure does look nice, thanks buddy, I'll be trying this one.... my only problem is I love Panoramic Mod, and the last time I merged it with my own weather config it took ages!!
User avatar
EggChen
Moderator
 
Posts: 1016
Joined: 13 Sep 2008 00:44
Location: Birmingham, UK

Re: [PoC] Dynamic Weather

Postby ket on 09 Dec 2008 01:23

Bug report! Your dynamic weather doesnt like mods with blowouts nands. I'm guessing if this is fixable its likely tricky. Whenever a blowout starts with your weather mod the game outright locks up and you have to ctrl,alt,del out.
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby nandersen on 09 Dec 2008 07:24

Thanks guys :)

Ket yes, the blowouts work by setting the weather so this conflicts with this minimod. In general two mods that both try to set the weather will be conflicting.

I'm considering to make some kind of compatibility thingy, but as far as I know there are different mods with blowouts. My solution could be to integrate a blowout system in general and include some merging help text.

EggChen I doubt that you can simply merge this with Panoramic which it is a big mod with its own textures and settings finely tuned. Also, Panoramic uses different texture sets for different levels because of the differing background while my minimod simply uses the same dynamic weather for all outdoor levels. My minimod is automatically adjusted at build time to the light levels and colors in the textures, so if you do try and merge something, send me the .ltx files and I'll try and run the adjuster on it with panoramic textures.
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Re: [PoC] Dynamic Weather

Postby ket on 09 Dec 2008 16:08

If you could do that it would be awesome! But I don't think anyone will hold it against you if you can't. My scripting skills are far from good, but even I can guess making your weather mod compatible for blowouts won't be the most easy of things to do. GL with the development! :-bd
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby nandersen on 09 Dec 2008 16:22

A simple solution could be to skip all weather updates for the duration of the blowout. Which implementation of blowouts are you using, Ket?
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Re: [PoC] Dynamic Weather

Postby ket on 09 Dec 2008 17:21

I'm using the PSI blowouts and emissions mod, so AFAIK blowout sky textures and so forth are the ones the vanilla game has.
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby nandersen on 09 Dec 2008 19:08

Can you provide a download page link?
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Re: [PoC] Dynamic Weather

Postby ket on 10 Dec 2008 22:09

Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby NatVac on 11 Dec 2008 07:25

Cool stuff, nandersen. Nice website, too. Great minds think alike, and so do ours. :P
NatVac
Resident
 
Posts: 152
Joined: 16 Sep 2008 00:13
Location: Texas

Re: [PoC] Dynamic Weather

Postby nandersen on 11 Dec 2008 17:26

OK Ket, I'll try and take a look at it :)

Thanks NatVac ;)
What have you been up to lately?

______________________________________________________

A new version 0.4 is now available.

Also a package for OL2.2: http://zhat.dk/stalker/files/ol2.2_dyna ... v0.4.1.zip
WARNING: big download size (3.5MB), almost untested, no more "chernobyl" weather after blowout, may screw up anomalies, blow up your PC, etc.
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Re: [PoC] Dynamic Weather

Postby ket on 12 Dec 2008 14:34

Cheers :-bd
Mobo: MSI X570 Tomahawk
CPU: R7 3700X @ 4.4GHz 1.3v
RAM: 2x16GB Klevv BoltX 3600MHz 16-20-20-35
GPU: Powercolor 6800XT Red Devil
Sound: Asus Xonar DX 7.1 PCI-E, Realtek ALC1200
HDD: 250GB & 500GB nVME 3.0 M.2 drives, 2TB Seagate Barracuda, Sata3 64MB Cache, 250GB Hynix SL301
Opticals: DVD-RW, Blu-Ray
PSU: eVGA 1000w G2 Supernova
Case: NZXT Phantom 530

STALKER: Singularity (SIN) homepage
User avatar
ket
Senior Resident
 
Posts: 1262
Joined: 14 Sep 2008 11:57
Location: The solar system

Re: [PoC] Dynamic Weather

Postby nandersen on 13 Dec 2008 00:28

Ket, here's one way it can be done: http://zhat.dk/stalker/files/psyzones1. ... v0.5.1.zip
Let me know if this solution works for you.

It seems like this blowout mod has not been maintained for quite some time and that there are currently better options. As you probably have noticed, it is not to be used with any "sleep" mod which pretty much everybody wants to use these days.
"They shoot and I run and I spill my drink - all over my uniform..."
My files for S.T.A.L.K.E.R.: http://zhat.dk/stalker/
User avatar
nandersen
Senior Resident
 
Posts: 212
Joined: 17 Sep 2008 17:24

Next

Return to Mods & Discussions

Who is online

Users browsing this forum: No registered users and 35 guests

cron