News:

Come Chat with us live! Learn how HERE!

Main Menu

Rain shader

Started by X-20, December 21, 2008, 11:46:10 PM

X-20

Here is that one single shader that is a myth to everyone.
---
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.
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
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

By FPS, how low does it drop? A map with rain would be so unbelievably awesome I would implode

X-20

#2
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:
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

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

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

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

#6
oooooo just used it. So it wont make when you're inside it? just the effect from the outside (ie 2d?)

amz181

Quote from: 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?)

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

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


cactusfrog


Kaleo

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

Great!
:D Very nice, Ive always wanted to see a map with rain in it!

amz181

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

Quote from: 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?

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

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


bacon665

Whats the difference between using this and the gl_weather_rain thats in the engine?

gimhael

This exists and gl_weather_rain doesn't ?

Bissig

Quote from: bacon665 on June 12, 2009, 03:50:24 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


CreatureofHell

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

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

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

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

Whats the map called?????? or your dead :tyrant:

bacon665

#26
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

fleash eater

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

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

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?