SUBSIM Radio Room Forums
Frau kaleun shops here, how about you?
Want to support Subsim and make Amazon pay for it? Click here to start any Amazon shopping.


SUBSIM: The Web's #1 BBS for all submarine and naval simulations!

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-18-2011, 06:01 AM   #1
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,934
Downloads: 38
Uploads: 0
Default SNOW...its possible!

Inspired by two mods, the frozen harbours of LSH and the vanishing food by DivingDuck, i thought about a snow mod. And its possible! Even with restrictions.



This is how it works:

We use the technique of how snow and rain in films are made. Its just on a certain area around the boat. This gives us the feeling of snow (no use of external camera!)

To produce the snow, we create 4 particle generators higher above the boat (in a special radius around it), which are linked via the statemachinecontroller to the forecast, the use of rainjackets or to the raincontroller itself. So, if there is rain (which is "disabled" due to an edited scene.dat), the emitters produce snow. The particle generators use a special texture for the snow, an ice crystal. This is possible. Its shown by the smoke and fire emitters, they also use certain textures. With negative values to the weight, the particles fall down and can have all properties of particles in the game. So they can fall fast, slow, wind affected, many or just a few.

Additionally there could be a texture changer controller, which is also linked to the statemachinecontrollers. It changes the texture of the boat itself, to an icy one (this already exists by tomi99), when the snow falls.

The whole mod is only producing universal snow. So it must be enabled during the winter via JSME before patrol. Using this technique, theres also the possibility giving the merchants and other ships snow textures. But this would mean, they always are snowy, even if theres no snow falling. This could also be done with the boat texture itself.

This solution isnt perfect, but its a way to have real snow in the game. As i have no experience in how using the statemachinecontrollers, this is i where asked for help now!...

If you are experienced in using them correctly, please let me know. I only can create the particle emitters (+ the texture and the functions) and link them to certain parts, but not to statemachinecontrollers.

__________________


urfisch is offline   Reply With Quote
Old 12-18-2011, 09:32 AM   #2
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,934
Downloads: 38
Uploads: 0
Default

UPDATE

After some research:

- rain deactivation, no problem
- linkin particle controller to skydome, possible
- no controller for the weater state found, so we can use a texture changer (snow texture, when snowing) for the boat or other ships

all precipitations are now snow with this scene.dat i made.



this is how it looks now. needs some finetuning, as the amount of snowflakes variies a lot sometimes. and i might rework the snowflake texture.

__________________



Last edited by urfisch; 12-18-2011 at 02:54 PM.
urfisch is offline   Reply With Quote
Old 12-18-2011, 09:40 AM   #3
von Kinderei
Admiral
 
Join Date: Dec 2007
Location: Virginia
Posts: 2,170
Downloads: 112
Uploads: 0


Default

WOW ...

Man would that be a nice add-on ... good luck
__________________
vK
von Kinderei is offline   Reply With Quote
Old 12-18-2011, 10:50 AM   #4
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 8,620
Downloads: 93
Uploads: 3


Default



Pics, or it didn't happen
__________________
"Wiser is the Devil for being old than for being the Devil" - Old spanish say

Hitman is offline   Reply With Quote
Old 12-18-2011, 11:29 AM   #5
Victor Schutze
Chief
 
Join Date: Mar 2010
Location: Drowning in mods soup
Posts: 316
Downloads: 432
Uploads: 0
Default

Man, I am looking forward for this one!
__________________
Don't rejoice in his defeat, you men.

For though the world stood up and stopped the bastard,

The bitch that bore him is in heat again.

Bertolt Brecht
Victor Schutze is offline   Reply With Quote
Old 12-18-2011, 04:25 PM   #6
irish1958
Ocean Warrior
 
Join Date: Apr 2005
Location: Carmel, Indiana
Posts: 3,150
Downloads: 284
Uploads: 11
Default Snow

Looking good. I.suspect it will be a ton of work to get the ships all to be snow covered.
''Keep up the good work!"
__________________
Irish1958
irish1958 is offline   Reply With Quote
Old 12-18-2011, 04:38 PM   #7
Sepp von Ch.
The Old Man
 
Join Date: Dec 2009
Location: Czech Republic and U-552 in North Atlantic
Posts: 1,572
Downloads: 747
Uploads: 0
Default

Wow! Christmas is here! Looks really great!
__________________
Beware the U-552! We're feared tanker killers!
U-552 for BDU: I´m the galloping ghost of the american coast! Pauke, Pauke!
Sepp von Ch. is online   Reply With Quote
Old 12-18-2011, 04:40 PM   #8
USS Drum
Grey Wolf
 
Join Date: Oct 2011
Location: Shorline, Washington
Posts: 972
Downloads: 126
Uploads: 0
Default

Just in time for Christmas.
__________________
"We run silent and we run deep"

Proud owner of multiple SH games.
USS Drum is offline   Reply With Quote
Old 12-19-2011, 12:30 AM   #9
dcb
Lazy Cat
 
dcb's Avatar
 
Join Date: Apr 2005
Location: Bucharest, Romania
Posts: 805
Downloads: 425
Uploads: 0
Default

Looking very nice. This could be enabled via SH3 Commander during winter months, on a random basis, I think.
dcb is offline   Reply With Quote
Old 12-19-2011, 02:00 AM   #10
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,182
Downloads: 130
Uploads: 0


Thumbs up

cool!
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 12-19-2011, 03:10 AM   #11
BUKER
Lieutenant
 
Join Date: Jan 2010
Location: RUSSIA-Siberia
Posts: 258
Downloads: 333
Uploads: 0
Default

Hi urfisch,

Great idea!
__________________
BUKER is offline   Reply With Quote
Old 12-19-2011, 05:56 AM   #12
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,934
Downloads: 38
Uploads: 0
Default

bad news. im sorry guys, but the snow is now always there. seems as if adding another controller in the rain of the scene.dat is not recognized as "rain"...instead its always active.

so, without a controller which allows us to activate the snow, just when the rain is activated, theres gonna be no snow.

__________________


urfisch is offline   Reply With Quote
Old 12-19-2011, 06:31 AM   #13
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,794
Downloads: 120
Uploads: 0
Default

Hi Urfish,

Isn't possible to just change the rain texture (to a new snow texture)? This way we will have snow instead rain. The scene.dat can be easily modified to alter the rain precipitation properties. I don't know if all the properties that a particle have but we can produce just fine and sparse rain easily, and perhaps this could be enough.
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 12-19-2011, 06:42 AM   #14
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,934
Downloads: 38
Uploads: 0
Default

no, just tried that. the template for the rain render controller is a fixed one. without digging into the code, there is no change possible. and even adding new parameters to the rain render controller must not mean, the game accepts them. i am experimenting with the rain itself, but it looks more like an old tv screen without signal, than snow. this is due to the parameters, which create the rain particles. they are hardcoded, which means they are designed to be stripes, not particles. so we have no access to the "size"...

a workaround would be my first mentioned solution:

a particle generator linked to the turret of each boat. this works, i already tried that and it looks good as far as you dont use the external camera. but this controller needs to be linked to the state of weather, so it is only activated, when precipitations are activated. this could be achieved by using a statemachinecontroller, which allows the change of the "existance" of the snow generator, as DD used it in when creating vanishing food. this food is linked to the fuel parameters, which makes it vanish during the patrol. this technique would allow us, to have a snow generator, which is only active when certain parameters are given.

BUT SO

our generator needs to be linked to the weather report or the cloth of the watchcrew. but HOW, is the problem. i have no experience in the coding and statemachinecontroller stuff. maybe one of the coding guys could help??



this is how it looks, whith editing the rain itself. you see, the drops are very small and look more like a snow drizzle, than snow flakes. but this is all you get out of the rain controller.



__________________



Last edited by urfisch; 12-19-2011 at 07:00 AM.
urfisch is offline   Reply With Quote
Old 12-19-2011, 07:00 AM   #15
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,794
Downloads: 120
Uploads: 0
Default

Ok , I understood. Again this can fall to the h.sie type of hardcode work...

I already messed with statemachine controllers some time ago...but I can't remember now if a statemachine controller reference to wheather state exist.
(but is easy to know taking a look at some of the act files (IIRC) where the statemachine references are described. I have not my SH3 files and tools for now (new ultimate machine, new games, new SO (W764bits), so some time needed to port all my old files and games...)

Take a look on the act file to see if a linked statemachine command exist for this mod intention .
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 1997- 2013 Subsim