Pages: [1]
  Print  
Author Topic: Glass?  (Read 7774 times)
Eli
Nub


Cakes 0
Posts: 28

Member


« on: April 07, 2007, 09:32:07 AM »

Anyone got any cool glass textures?  I need some for a kind of gritty/grunge level, the glass is for acid tanks.
Logged
Amphetamine
Half-Nub


Cakes 0
Posts: 69


Cyberpunk


« Reply #1 on: April 07, 2007, 10:01:59 AM »

Use this shader and the 2 materials I'm posting for you, it should give a nice dirty looking glass effect:



Code:
textures/amph_materials/glass_dirt
{
qer_editorimage textures/amph_materials/glass_dirt.tga
surfaceparm trans
surfaceparm lightfilter
cull disable
{
map textures/amph_materials/glassfx.tga
blendfunc add
tcMod scale 0.5 0.5
tcGen environment
}
{
map textures/amph_materials/glass_dirt.tga
blendfunc blend
alphaGen wave sin 0.3 0 0 0
}
{
map $lightmap
blendfunc filter
}
}


Obviously change the paths to whereever you want the textures.

Save these as:

glass_dirt.jpg



glassfx.jpg


I'll get them in the texture pack I'm doing and get them all GPL'd for you.
Logged

Top 5 tunes last week:
Eli
Nub


Cakes 0
Posts: 28

Member


« Reply #2 on: April 07, 2007, 12:29:00 PM »

Cool thanks dude.  How come there's a landscape-ish looking reflection on that glass?
Logged
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #3 on: April 07, 2007, 12:35:15 PM »

yeah screenshots of non-gpl maps aren't really gpl friendly
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Amphetamine
Half-Nub


Cakes 0
Posts: 69


Cyberpunk


« Reply #4 on: April 07, 2007, 12:52:14 PM »

If you have a replacement tinfx.tga then use that instead. I wasn't sure of you had one or not and I happened to have a replacement envmap laying around. Best I could do in the 7 mins I had to make that glass shader before I had to go out. TBH, it's not rocket science to make a compliant one yourself.
Logged

Top 5 tunes last week:
Pages: [1]
  Print  
 
Jump to: