Tremulous Forum

Media => Mapping Center => Topic started by: A Spork on January 15, 2011, 09:05:14 pm

Title: Snow/blizzard Shader
Post by: A Spork on January 15, 2011, 09:05:14 pm
So, basically i'm creating a smallish outside section for Thule, and I want it to look like its Blizzarding(or at least snowing).
I tried using that rain shader found here (http://tremulous.net/forum/index.php?topic=9920.0), and just altering the texture to look more like snow, but that doesnt work(Just get a box that looks like the texture is just painted on it, but its nonsolid)
I've also tried modifying a moving water shader with fog, but that just goes notex.


Can anyone give me a hand with this?
Title: Re: Snow/blizzard Shader
Post by: DraZiLoX on January 15, 2011, 11:47:04 pm
Well, there is nice snow particle system in niveus, is that fine?
Title: Re: Snow/blizzard Shader
Post by: A Spork on January 16, 2011, 04:04:51 am
Well withthe size of the area a particle system would absolutely murder the FPS...
Title: Re: Snow/blizzard Shader
Post by: DraZiLoX on January 16, 2011, 10:05:22 am
smallish outside section
Posted it for that up there, but okay.
Title: Re: Snow/blizzard Shader
Post by: CATAHA on January 16, 2011, 11:25:57 am
You can try use few patch meshes instead of brushes.
Or (may be) you have problems in shader. Seems you used 'snow' image without transparency or something.
Title: Re: Snow/blizzard Shader
Post by: Odin on January 17, 2011, 03:53:29 am
You can try use few patch meshes instead of brushes.
Or (may be) you have problems in shader. Seems you used 'snow' image without transparency or something.
The following blendFunc
Code: [Select]
blendFunc GL_ONE GL_ONE...will definitely produce transparency results.
Title: Re: Snow/blizzard Shader
Post by: CATAHA on January 17, 2011, 11:32:10 am
Depends from source image i think. =D
Title: Re: Snow/blizzard Shader
Post by: jm82792 on January 17, 2011, 06:24:01 pm
Animate textures on planes(with transparency layer) and add some random movement for distance where you can't see it up close.
The planes would have an image of snow falling and would save FPS theoretically speaking.