Im looking for a regular pane of glass
all i can find are windows with grids
...just glass
Glass Texture
Moderator: Moderators
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
hey, Good Thinking Gen (i'd already thought of it, but still... good thinking :>), but sometimes u need really really big windows, and applying the texture 2 that can sometimes b a pain in the arse, i'm goin 2 make my own glass texture with just a pain of glass on monday, it's in my tooo dooo list, if some1 will tell me where 2 post it, i'll have it grabbable 4 all u wonderful people out there, (oh and that SGT Stafford chap) 
hope this helps, prob not cos it's all foreign 2 me :-/
- General Death
- Moderator
- Posts: 1116
- Joined: Thu Nov 21, 2002 2:33 am
- Location: NC, USA
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Make a shader containing this:
And make 2 .tga files:
glass.tga and reflection.tga
glass.tga should be plain white ( or maby a bit gray ).
reflection.tga should be what is mirrored in the glass ( like a snowy forrest or the inside of an office )
Both .tga's should be 32 bit.
The size of both tga's should be the same.
If you want a big window make a big texture...
Put the files in textures/MyMap/ in main ( or in textures/MyMap/ in a .pk3 placed in main )
I use this kind of reflective windows in my latest map obj/vemork_factory_small ( under downloads ) ... feel free to rip the glass textures
PS: replace all MyMap with the name of your map
Code: Select all
textures/MyMap/glass
{
qer_editorimage textures/MyMap/glass.tga
qer_trans .4
qer_keyword window
qer_keyword glass
surfaceparm glass
{
map textures/MyMap/reflection.tga
tcgen environment
alphagen const .2
blendFunc blend
}
{
map textures/MyMap/glass.tga
depthWrite
alphaFunc GE128
nextbundle
map $lightmap
}
}glass.tga and reflection.tga
glass.tga should be plain white ( or maby a bit gray ).
reflection.tga should be what is mirrored in the glass ( like a snowy forrest or the inside of an office )
Both .tga's should be 32 bit.
The size of both tga's should be the same.
If you want a big window make a big texture...
Put the files in textures/MyMap/ in main ( or in textures/MyMap/ in a .pk3 placed in main )
I use this kind of reflective windows in my latest map obj/vemork_factory_small ( under downloads ) ... feel free to rip the glass textures
PS: replace all MyMap with the name of your map
-
TheShiznaeSpe
- Major
- Posts: 304
- Joined: Wed Feb 05, 2003 11:45 pm
- Location: US
- Contact:


