Author Topic: Rain shader  (Read 24241 times)

X-20

  • Posts: 268
  • Turrets: +62/-33
Rain shader
« 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
« Last Edit: December 22, 2008, 02:10:30 am by X-20 »
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

nubcake

  • Posts: 529
  • Turrets: +49/-85
Re: Rain shader
« Reply #1 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

X-20

  • Posts: 268
  • Turrets: +62/-33
Re: Rain shader
« Reply #2 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:
« Last Edit: December 22, 2008, 02:11:31 am by X-20 »
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

Evoc

  • Posts: 127
  • Turrets: +13/-12
Re: Rain shader
« Reply #3 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.
Quote from: ...lying to people about being banned...
Evoc: I JUST GOT BANNED FROM THE FORUMS
Amanieu: lolwut
Thorn: nice
your_face: rofl
Thorn: the less places you can say anything the better

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Rain shader
« Reply #4 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?

Knowitall66

  • Posts: 492
  • Turrets: +70/-52
Re: Rain shader
« Reply #5 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)

nubcake

  • Posts: 529
  • Turrets: +49/-85
Re: Rain shader
« Reply #6 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?)
« Last Edit: December 23, 2008, 10:08:37 am by nubcake »

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Rain shader
« Reply #7 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 ;)

Kaleo

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
Re: Rain shader
« Reply #8 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.
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

nubcake

  • Posts: 529
  • Turrets: +49/-85
Re: Rain shader
« Reply #9 on: December 25, 2008, 11:29:19 am »



it has potential... :D

cactusfrog

  • Posts: 390
  • Turrets: +678/-176
    • tremulous fun server offical site
Re: Rain shader
« Reply #10 on: December 25, 2008, 06:40:36 pm »
wow nice!

Kaleo

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
Re: Rain shader
« Reply #11 on: December 26, 2008, 02:45:42 am »
Brushwork and texturing still look a bit riged, but otherwise, great work.
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

Drakotsu

  • Posts: 110
  • Turrets: +2/-1
Re: Rain shader
« Reply #12 on: December 28, 2008, 12:13:11 am »
Great!
:D Very nice, Ive always wanted to see a map with rain in it!

amz181

  • Posts: 919
  • Turrets: +64/-93
Re: Rain shader
« Reply #13 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?

Kromeh

  • Posts: 36
  • Turrets: +1/-4
Re: Rain shader
« Reply #14 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.

fleash eater

  • Posts: 408
  • Turrets: +25/-33
Re: Rain shader
« Reply #15 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?
for Chaos info, contributing, and Community events go to chaos.Nomnomclan.org

MitSugna

  • Guest
Re: Rain shader
« Reply #16 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

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Rain shader
« Reply #17 on: June 12, 2009, 03:50:24 pm »
Whats the difference between using this and the gl_weather_rain thats in the engine?

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Rain shader
« Reply #18 on: June 12, 2009, 06:27:15 pm »
This exists and gl_weather_rain doesn't ?

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Rain shader
« Reply #19 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.

Repatition

  • Posts: 332
  • Turrets: +11/-196
    • http://jbjarts.blogspot.com/
Re: Rain shader
« Reply #20 on: June 13, 2009, 08:21:03 pm »



it has potential... :D

What map is this! i want it

CreatureofHell

  • Posts: 2422
  • Turrets: +430/-126
    • Tremtopia
Re: Rain shader
« Reply #21 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
{NoS}StalKer
Quote
<Timbo> posting on the trem forums rarely results in anything good

danmal

  • Posts: 244
  • Turrets: +21/-6
Re: Rain shader
« Reply #22 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.

Repatition

  • Posts: 332
  • Turrets: +11/-196
    • http://jbjarts.blogspot.com/
Re: Rain shader
« Reply #23 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!

fleash eater

  • Posts: 408
  • Turrets: +25/-33
Re: Rain shader
« Reply #24 on: June 15, 2009, 02:39:32 am »
he sent me a demo somewhere, man i miss that guys mapping it was pro.
for Chaos info, contributing, and Community events go to chaos.Nomnomclan.org

Repatition

  • Posts: 332
  • Turrets: +11/-196
    • http://jbjarts.blogspot.com/
Re: Rain shader
« Reply #25 on: June 15, 2009, 02:54:22 am »
Whats the map called?????? or your dead :tyrant:

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Rain shader
« Reply #26 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
« Last Edit: June 15, 2009, 03:36:16 am by bacon665 »

fleash eater

  • Posts: 408
  • Turrets: +25/-33
Re: Rain shader
« Reply #27 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.
for Chaos info, contributing, and Community events go to chaos.Nomnomclan.org

danmal

  • Posts: 244
  • Turrets: +21/-6
Re: Rain shader
« Reply #28 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. Please gimme some credits and evos now k thanx.

Repatition

  • Posts: 332
  • Turrets: +11/-196
    • http://jbjarts.blogspot.com/
Re: Rain shader
« Reply #29 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?