这篇条目有关 "金源" 引擎。如需详情,点击这里。

Glass creation (GoldSrc)

From Valve Developer Community
< Zh
Jump to navigation Jump to search
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

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.
English (en)Русский (ru)中文 (zh)Translate (Translate)
GoldSrc (Half-Life SDK) Level Design
Broom icon.png
此物品需要清理以符合更高的质量标准,因为:
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.
如需帮助,请参阅 VDC 编辑帮助维基百科清理过程。另外,请记住在本文的讨论页检查标记者留下的任何笔记。

本文将指导您使用 Valve Hammer 编辑器为 GoldSrc(半条命)引擎创建一个简单的玻璃。

可破坏的玻璃

  1. 打开纹理浏览器
  2. 选择你喜欢的玻璃纹理
  3. 创建一个刷子(brush)
  4. 打开对象属性窗口(高亮刷子并按下 Ctrl+t)
  5. 将对象类更改为 func_breakable
  6. 确保材质类型为玻璃
  7. 更改对象的 FX 量以修改玻璃的透明度(1-255;1 是完全透明,255 是完全不透明)
  8. (可选)更改对象的强度以修改打破玻璃所需的伤害量(值越高,玻璃的“生命值”越高)
  9. (可选)将碎片方向从随机更改为相对于攻击方向
  10. (可选)将渲染模式从纹理更改为添加以改变外观
待完善: 添加模式实际上是做什么的?

不可破坏的玻璃

  1. 打开纹理浏览器
  2. 选择你喜欢的玻璃纹理
  3. 创建一个刷子
  4. 打开对象属性窗口(高亮刷子并按下 Ctrl+t
  5. 更改对象的 FX 量以修改玻璃的透明度(1-255;1 是完全透明,255 是完全不透明)
  6. (可选)将渲染模式从纹理更改为添加以改变外观
待完善: 添加模式实际上是做什么的?

外链

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