Glass creation (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Modified the tutorial)
mNo edit summary
Line 8: Line 8:
# Select a glass texture of your choice
# Select a glass texture of your choice
# Create a brush
# Create a brush
# Open the Object Properties window (highlight the brush and Ctrl+T)
# Open the Object Properties window (highlight the brush and {{key|Ctrl|t}})
# Change the object class to func_breakable
# Change the object class to func_breakable
# Ensure the Material type is Glass
# Ensure the Material type is Glass
Line 21: Line 21:
# Select a glass texture of your choice
# Select a glass texture of your choice
# Create a brush
# Create a brush
# Open the Object Properties window (highlight the brush and Ctrl+T)
# Open the Object Properties window (highlight the brush and {{key|Ctrl|t}})
# Change the FX Amount of the object to modify the transparency of the glass (1-255; 1 is fully transparent, 255 is fully opaque)
# Change the FX Amount of the object to modify the transparency of the glass (1-255; 1 is fully transparent, 255 is fully opaque)
# (optional) Change the Render Mode to Additive (from Texture) to change the appearance
# (optional) Change the Render Mode to Additive (from Texture) to change the appearance

Revision as of 09:02, 30 April 2024

English (en)Русский (ru)中文 (zh)Translate (Translate)
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 complies 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