Tremulous Forum

Media => Mapping Center => Topic started by: X-20 on December 21, 2008, 11:46:10 pm

Title: Rain shader
Post by: X-20 on December 21, 2008, 11:46:10 pm
Here is that one single shader that is a myth to everyone.
---
Code: [Select]
textures/mapname/texturename
{
        surfaceparm trans
        surfaceparm nomarks
        surfaceparm nonsolid
surfaceparm nolightmap
        qer_trans .5
        deformVertexes move 3 1 0  sin 0 5 0 0.2
        deformVertexes move .6 3.3 0  sin 0 5 0 0.4
        deformVertexes wave 30 sin 0 10 0 .2
cull none
        //nopicmip
       
{
map textures/mapname/texturename.tga
                tcMod Scroll .5 -8
                tcMod turb .1 .25 0 -.1
                blendFunc GL_ONE GL_ONE
        }
        {
map textures/mapname/texturename.tga
                tcMod Scroll .01 -6.3
               
                blendFunc GL_ONE GL_ONE
        }
       
     
}
---
Texture that i used for the shader.
http://files.filefront.com/xraintga/;12728657;/fileinfo.html
Credit to Seventh-Monkey for the texture, renamed by X-20.
-----
So in this case, my .shader file looks like this.
Code: [Select]
textures/xrain/xrain
{
        surfaceparm trans
        surfaceparm nomarks
        surfaceparm nonsolid
surfaceparm nolightmap
        qer_trans .5
        deformVertexes move 3 1 0  sin 0 5 0 0.2
        deformVertexes move .6 3.3 0  sin 0 5 0 0.4
        deformVertexes wave 30 sin 0 10 0 .2
cull none
        //nopicmip
       
{
map textures/xrain/xrain.tga
                tcMod Scroll .5 -8
                tcMod turb .1 .25 0 -.1
                blendFunc GL_ONE GL_ONE
        }
        {
map textures/xrain/xrain.tga
                tcMod Scroll .01 -6.3
               
                blendFunc GL_ONE GL_ONE
        }
       
     
}
-----
If anyone can make a more FPS friendly version of this, please post it.
Have fun! And here is a example map of the shader in use.
http://files.filefront.com/test+project+295pk3/;12721133;/fileinfo.html
Title: Re: Rain shader
Post by: nubcake on December 22, 2008, 01:57:03 am
By FPS, how low does it drop? A map with rain would be so unbelievably awesome I would implode
Title: Re: Rain shader
Post by: X-20 on December 22, 2008, 02:08:17 am
Well in the map that i posted in Dev. shots, from the one brush that i made outside the window, i get...

Looking at a wall = 200 fps (capped it there)

Looking out the window = 76-82 fps
EDIT: Included the example map in first post.  :granger:
Title: Re: Rain shader
Post by: Evoc on December 22, 2008, 01:49:33 pm
That's awesome! Also, I'm sure that one could do "layers" of it outside to give it a more realistic look, but it already looks brilliant as it is. Good job, X-20.

Also, the map file is called "project-295", so do /devmap project-295.
Title: Re: Rain shader
Post by: amz181 on December 22, 2008, 02:27:45 pm
it looks really nice ;) did the rain overlap with the wall because i get graphical glitches when sometimes the wall flickers with the rain shader.

It looks great, im gonna use it in my map if its alright with you?
Title: Re: Rain shader
Post by: Knowitall66 on December 23, 2008, 12:22:23 am
Amz the shader is basically water just with a different texture. It'll 'wave' into the walls sometimes. (If you know what I mean :P)
Title: Re: Rain shader
Post by: nubcake on December 23, 2008, 03:17:32 am
oooooo just used it. So it wont make when you're inside it? just the effect from the outside (ie 2d?)
Title: Re: Rain shader
Post by: amz181 on December 23, 2008, 01:12:44 pm
oooooo just used it. So it wont make when you're inside it? just the effect from the outside (ie 2d?)

thats what i was thinking but i couldve sworn that in the random dev shots he had a pic with himself in it...

knowitall> thanks ;)
Title: Re: Rain shader
Post by: Kaleo on December 24, 2008, 09:10:08 am
I think W:ET had some pretty efficient rain shaders.

You could download it and see if you can salvage some shaders from it and use your own textures for legality purposes.
Title: Re: Rain shader
Post by: nubcake on December 25, 2008, 11:29:19 am
(http://i530.photobucket.com/albums/dd342/prof_flex/shot0058.jpg)
(http://i530.photobucket.com/albums/dd342/prof_flex/shot0057-2.jpg)

it has potential... :D
Title: Re: Rain shader
Post by: cactusfrog on December 25, 2008, 06:40:36 pm
wow nice!
Title: Re: Rain shader
Post by: Kaleo on December 26, 2008, 02:45:42 am
Brushwork and texturing still look a bit riged, but otherwise, great work.
Title: Re: Rain shader
Post by: Drakotsu on December 28, 2008, 12:13:11 am
Great!
:D Very nice, Ive always wanted to see a map with rain in it!
Title: Re: Rain shader
Post by: amz181 on December 28, 2008, 12:41:51 pm
can you walk through the rain, or is it still solid?

and if you can walk through the rain, does it have a bigger effect on FPS?
Title: Re: Rain shader
Post by: Kromeh on January 31, 2009, 03:44:37 pm
can you walk through the rain, or is it still solid?

and if you can walk through the rain, does it have a bigger effect on FPS?

In the shader code, you can see it is not solid.  And I am betting it has a DRASTIC effect on some machines.  It would eat mine to pieces I bet.
Title: Re: Rain shader
Post by: fleash eater on June 10, 2009, 10:23:27 pm
i hate to be a necro'er but the link to the texture is borked :d anyone have a textre upload i can use?
Title: Re: Rain shader
Post by: MitSugna on June 12, 2009, 01:09:46 pm
http://www.twhl.co.za/tutorial.php?id=52
There is a wad file. I wonder if this jpg file is the same.
http://twhl.co.za/tutpics/scrollrain.jpg
Title: Re: Rain shader
Post by: bacon665 on June 12, 2009, 03:50:24 pm
Whats the difference between using this and the gl_weather_rain thats in the engine?
Title: Re: Rain shader
Post by: gimhael on June 12, 2009, 06:27:15 pm
This exists and gl_weather_rain doesn't ?
Title: Re: Rain shader
Post by: Bissig on June 12, 2009, 08:36:37 pm
Whats the difference between using this and the gl_weather_rain thats in the engine?

Another quality posting from our favourite burned cooked meat.
Title: Re: Rain shader
Post by: Repatition on June 13, 2009, 08:21:03 pm
(http://i530.photobucket.com/albums/dd342/prof_flex/shot0058.jpg)
(http://i530.photobucket.com/albums/dd342/prof_flex/shot0057-2.jpg)

it has potential... :D

What map is this! i want it
Title: Re: Rain shader
Post by: CreatureofHell on June 13, 2009, 10:15:58 pm
1. Please don't quote images
2. It looks like a map he was working on that he never released
Title: Re: Rain shader
Post by: danmal on June 14, 2009, 05:28:27 am
He may have never have released it on the tremulous.net forums but he did complete it. I'm not sure what he ended up calling it but it'll be one of the maps at maps.tremwars.com (http://maps.tremwars.com).
Title: Re: Rain shader
Post by: Repatition on June 15, 2009, 02:16:12 am
If some one finds out what it is called POST!!! IT!!!
And I will Give you all my credits :armoury:/evos next time i play with you!
Title: Re: Rain shader
Post by: fleash eater on June 15, 2009, 02:39:32 am
he sent me a demo somewhere, man i miss that guys mapping it was pro.
Title: Re: Rain shader
Post by: Repatition on June 15, 2009, 02:54:22 am
Whats the map called?????? or your dead :tyrant:
Title: Re: Rain shader
Post by: bacon665 on June 15, 2009, 03:29:54 am
From looking at those screenshots and looking through that list. i would think its darkcastle.
I stuck it in the appdata/tremulous/base folder and hosted a LAN server but it doesn't show up in the list :S
Title: Re: Rain shader
Post by: fleash eater on June 15, 2009, 03:45:56 am
incorrect, it doesnt have a name and isnt on that list, its called "mymap1' and ill contact him bout maybe a release of all hi s maps he did.
Title: Re: Rain shader
Post by: danmal on June 15, 2009, 07:24:33 am
Yeah, pretty much all his maps should be there. That's the map repo Chuck/nubcake used for putting his maps up for testing. Apparently he's come back so maybe we'll see some more maps soon.

It's called fool's gold (http://maps.tremwars.com/base/map-foolsgoldbeta.pk3). Please gimme some credits and evos now k thanx.
Title: Re: Rain shader
Post by: Repatition on June 15, 2009, 07:33:39 pm
Thanks awesome map! do know how the game play would be but its cool ;D  :battlesuit:

you will get many Credits :armoury:/evos but i need to know what server you play on

Is danmal your player name?
Title: Re: Rain shader
Post by: danmal on June 16, 2009, 08:27:28 am
Don't worry about it. I play on Australian servers so it might be hard for you to give me any evos.
Title: Re: Rain shader
Post by: nubcake on June 20, 2009, 01:53:26 am
he sent me a demo somewhere, man i miss that guys mapping it was pro.

Yes it was...
Title: Re: Rain shader
Post by: your face on June 20, 2009, 04:21:12 am
self-righteous!