2D Imaging / Animation
Adobe Photoshop Adobe Flash 3D Imaging / Animation
Autodesk Maya Cinema 4D Game Development Valve Hammer (Source) Web Adobe Dreamweaver AJAX HTML / CSS PHP Programming C++ Java Python
Making and using glass in Hammer
Views: 1432
Infinity Style
Submitted by: AksumkA on 5-10-09 at 12:53 am
In: Valve Hammer
Keywords: hammer, glass, texture, source, entity, material

Unbreakable Glass


Create a brush that you want to act as your glass. I recommend using the tools/ nodraw texture to cover the brush for now.
 Image
Now we are going to apply a glass texture. Open the Texture Application Tool and click browse.
 Image
 Image
In the Texture browse window, filter all glass textures. Select one that looks the best to you.
 Image
Apply the texture to the faces that players will see. It’s best to use the nodraw texture on faces that are not visible.

Shatter Glass


Start by following the same steps taken to make unbreakable glass. Now with your brush select press Ctrl + T. This will bring up the Tie to entity window.
 Image
Select the drop down box on top where it says "func_detail" and select "func_breakable." The default setting are fine for what we are trying to do.
 Image
Now, when this brush is shot or damaged, it will break completely.

Realistic Breakable Glass


Make you brush only 1 unit thick. If your grid is too big, press the [ key to make it smaller. Use the ] key to do the opposite.
 Image
Using the texture application tool, cover the entire brush with the nodraw texture.
 Image
Select one of the two faces that will be visible to the player and apply the glass texture. All other faces should still be covered in the nodraw texture.
With the brush selected, press Ctrl+T and select "func_breakable_surf." Again, the settings are fine for what we are doing.
 Image
That is all there is to creating glass in the Source engine!
If you have any questions or run into some problems feel free to ask them here.