Half-Life Tutorials
Update: December 3, 2000
Name:
My First Window
Description:
This tutorial shows in easy steps how to make a glass
window
Update:

December 3, 2000
Download the tutorial here as *.zip file
Visit another Basic Half-Life Tutorial
My First Window - by Tiger
1. Make the window brush
For this tutorial I took the room we created in the first basic tutorial 'My First Room'. Now we start with creating your first window where you can look about in the landscape.
First make a brush with the size of the window and put inside the wall where the window should be make it not high and bring it in the right height so that the player could look outside (around 32 - 40 units above the ground).



If the brush is in the right place, press this button while the window brush is selected. The reaction will be that the window brush is now a part of the wall and the original wall will be split up in four brush, two on the side and one above and below the window brush. So the brush has been carved in the wall but also this is a easy way to carve in brushes use it only with simple rectangles or your wall will be split up in to much and to small brushes!!
Now only choose a nice texture and your first window should look like this




2. A small sky-brush in front of the window
In order a landscape should appear in front of the window you have to create a sky-brush exactly in front of the window to prevent a leak.
So select your window and copy it the new brush should be moved exactly in front of your window. Then make the new brush 8 units bigger in all directions.



Now you can be sure there will be no leak when you're going to compile this map.
The last step to make this a sky-brush is to give it the 'sky' texture (press 'T' and tip in sky and select this texture for the brush) and bring up the entity inspector to choose a sky by entering this key:
key: skyname
value: desert (for example)



3. Make the window transparent
At last we only we have to make the window-brush transparent to finish your first window
To do this make your window brush a func_breakable and bring up the entity inspector to enter this keys:
key: material
value: 7 (for unbreakable glass) or 0 (for breakable glass but then you also need the key health
key: rendermode
value: 2 (for a texture render mode)
key: renderamt
value: 120 (for middle transparency if you want a higher choose a lower value if you want a lower choose a higher number)



Now your first window is ready! If you want an example map just download this tutorial.


Additional Tutorial Information:
Entities of the tutorial: worldspawn
func_breakable
Visit also: Gate And Glass
The Sky Texture
My First Hallway
Questions to: Tiger: tiger@qeradiant.com