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

Zh/$cbox: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
No edit summary
(deepseek translation)
 
Line 1: Line 1:
{{wip}}{{translating}}
{{Machine Translation}}
{{lang|$cbox|title=$cbox}}
{{lang|$cbox|title=$cbox}}
{{tabsBar|main=gs|base=$cbox}}
{{tabsBar|main=gs|base=$cbox}}
{{this is a|QC command|name=$cbox}} It sets the clipping {{L|Bounding_box|bounding box}} for the {{L|model}}. This box is used for the culling of models in the game for optimization.
{{this is a|QC 命令|name=$cbox}} 该命令用于设置模型的剪裁{{L|Bounding_box|包围盒}}。该包围盒用于游戏中对模型进行视锥剔除以优化性能。


A model will be culled as soon as the clipping bounding box is no longer in view of the camera.
当剪裁包围盒不在摄像机视域范围内时,模型将被立即剔除。


If the {{L|coordinates}} of the clipping bounding box are all zero, <code>{{L|$bbox}}</code> is used instead.
若剪裁包围盒的{{L|coordinates|坐标}}值均为零,则会自动使用<code>{{L|$bbox}}</code>代替。
{{confirm|Actual clipping box may often be overridden by game code for entities such as {{L|NPC}}s, as is the case for the GoldSrc equivalent.}}
{{confirm|实际剪裁盒常会被游戏代码覆盖(例如{{L|NPC}}等实体),此行为与GoldSrc引擎的处理方式一致。}}


==Syntax==
==语法==
  $cbox (min x) (min y) (min z) (max x) (max y) (max z)
  $cbox (最小x) (最小y) (最小z) (最大x) (最大y) (最大z)


==See also==
==另见==
* {{L|$bbox}}
* {{L|$bbox}}
* {{L|$hbox}}
* {{L|$hbox}}
* {{L|$hboxset}}
* {{L|$hboxset}}


{{ACategory|Modeling}}
{{ACategory|建模}}
{{ACategory|QC Commands|cbox}}
{{ACategory|QC 命令|cbox}}
{{ACategory|Source}}
{{ACategory|起源引擎}}

Latest revision as of 19:13, 18 April 2025

Info content.png
This page is Machine translated
It is not recommended to use machine translation without any corrections.
If the article is not corrected in the long term, it will be removed.
Also, please make sure the article complies with the alternate languages guide.(en)
English (en)中文 (zh)Translate (Translate)

$cbox是一个QC 命令,可在所有的 起源 起源 游戏中使用。 该命令用于设置模型的剪裁包围盒(en)。该包围盒用于游戏中对模型进行视锥剔除以优化性能。

当剪裁包围盒不在摄像机视域范围内时,模型将被立即剔除。

若剪裁包围盒的坐标(en)值均为零,则会自动使用$bbox(en)代替。

证实:实际剪裁盒常会被游戏代码覆盖(例如NPC(en)等实体),此行为与GoldSrc引擎的处理方式一致。

语法

$cbox (最小x) (最小y) (最小z) (最大x) (最大y) (最大z)

另见