OpenArena Message Boards

OpenArena Contributions => Maps => Topic started by: Eli on April 07, 2007, 09:32:07 AM



Title: Glass?
Post by: Eli 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.


Title: Re: Glass?
Post by: Amphetamine 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
(http://img144.imageshack.us/img144/451/glass1ng2.jpg)


glassfx.jpg
(http://img144.imageshack.us/img144/1114/glass2jh3.jpg)

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


Title: Re: Glass?
Post by: Eli on April 07, 2007, 12:29:00 PM
Cool thanks dude.  How come there's a landscape-ish looking reflection on that glass?


Title: Re: Glass?
Post by: fromhell on April 07, 2007, 12:35:15 PM
yeah screenshots of non-gpl maps aren't really gpl friendly


Title: Re: Glass?
Post by: Amphetamine 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.