This article's documentation is for the "GoldSrc" engine. Click here for more information.

Glass creation (GoldSrc)

From Valve Developer Community
Jump to navigation Jump to search
English (en)Русский (ru)中文 (zh)Translate (Translate)
GoldSrc (Half-Life SDK) Level Design
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality because:
Need to cover the following topics:
  • Additive translucency is the most common transparency method for glass, but changing renderamt can also work.
  • Rendermodes "texture" and "additive" always render the brush entity as fullbright, which the non-FGD ZHLT/VHLT KV zhlt_embedlightmap can be used to work around.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.
The following content or section specifically needs to be translated:
This is a DeepL translation of Glass creation (GoldSrc)/ru with some lingual cleanup. It is not completely formatted, and may have some errors.

This article will walk you through the process of creating a simple glass in the Valve Hammer Editor for the GoldSrc (Half-Life) engine.

Breakable glass

  1. Open the texture browser
  2. Select a glass texture of your choice
  3. Create a brush
  4. Open the Object Properties window (highlight the brush and Ctrl+t)
  5. Change the object class to func_breakable
  6. Ensure the Material type is Glass
  7. Change the FX Amount of the object to modify the transparency of the glass (1-255; 1 is fully transparent, 255 is fully opaque)
  8. (optional) Change the Strength of the object to modify the amount of damage required to break the glass (higher value is higher "health" of the glass)
  9. (optional) Change Gibs Direction from Random to Relative to Attack
  10. (optional) Change the Render Mode to Additive (from Texture) to change the appearance
Todo: What does Additive actually do?

Unbreakable glass

  1. Open the texture browser
  2. Select a glass texture of your choice
  3. Create a brush
  4. Open the Object Properties window (highlight the brush and Ctrl+t)
  5. Change the FX Amount of the object to modify the transparency of the glass (1-255; 1 is fully transparent, 255 is fully opaque)
  6. (optional) Change the Render Mode to Additive (from Texture) to change the appearance
Todo: What does Additive actually do?

External links

Twhl hammer emote.png VERC: Glass and Transparency (originally posted on the VERC; mirrored from the original on the TWHL Wiki)
Twhl hammer emote.png Tutorial: Glass
Twhl hammer emote.png Vlatitude: Glass Tutorial
Twhl hammer emote.png Tutorial: Adding Glass to Doors