Zh/Static Props show up black: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(Translated a page from English to S-Chinese)
 
mNo edit summary
Line 5: Line 5:
在野火大行动更新后,不少人发现了静态物体无法被正常渲染光照的问题。
在野火大行动更新后,不少人发现了静态物体无法被正常渲染光照的问题。


要解决这个问题,必须在编译时先打开高级编译窗口并选中$light_exe,然后在‘Parameters’一栏前面加上<code>-StaticPropLighting</code>.
要解决这个问题,必须在编译时先打开高级编译窗口并选中$light_exe,然后在‘Parameters’一栏前面加上<code>-StaticPropLighting</code>


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

Revision as of 09:01, 26 May 2016

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

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

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

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


参见:

"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."