Static Props show up black/zh

From Valve Developer Community
Jump to: navigation, search

在野火大行动更新后,不少人发现了静态物体无法被正常渲染光照的问题。

要解决这个问题,必须在准备编译时先打开高级编译窗口并选中$light_exe,然后在“Parameters”一栏前面加上-StaticPropLighting

还有一种方法是在默认编译窗口中参数一栏中输入-StaticPropLighting -game $gamedir $path\$file

当你完成上述的一切后,再编译并进入游戏时问题应该已经被解决了。

Valve声明

We released an update to VRAD in the latest update. To get proper lighting on static props, you will need to run with -StaticPropLighting in VRAD, which sadly isn't updated (yet) in Hammer for the default, quick compile settings. This flag will increase compile times, but to help with iteration we also included the ability to tweak the quality of the new lighting by adding -StaticPropSampleScale x parameter (16 = slow, high quality, 4 = default and 0.25 = fast, low quality) which is useful if you want to speed up compile times. Note that adding -final is the same as having -StaticPropLightingScale 16.
— MagnarJ Valve, Mapcore


从英文翻译成中文:

我们在上一次更新时对VRAD也进行了更新,为了正常地使用VRAD进行静态模型光照,你需要在运行VRAD时加入 -StaticPropLighting 这一行参数,只可惜我们还没有更新以让Hammer在快速编译选项中自动加入此参数。如果你想调整编译速度,使用 -StaticPropSampleScale x 参数(16 = 慢速,高质量, 4 = 默认,0.25 = 快速,低质量)这行参数可以调整光照的质量,同时也会影响编译的速度,另外 -final-StaticPropLightingScale 16 这两行参数的效果是一样的。
— MagnarJ Valve, Mapcore