This article's documentation is for anything that uses the Source engine. Click here for more information.

$cbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Sets the clipping bounding box for the model. This box is used for the culling of models in the game for optimization. A model will be culled as soon as the clipping bounding box is no longer in view of the camera. If the coordinates of the this clipping bounding box are all zero, [[$bbox]] is used instead.
{{LanguageBar|$cbox|title=$cbox}}
{{tabsBar|main=gs|base=$cbox}}
{{this is a|QC command|name=$cbox}}  It sets the clipping [[Bounding_box|bounding box]] for the [[model]]. This box is used for the culling of models in the game for optimization.


== Syntax ==
A model will be culled as soon as the clipping bounding box is no longer in view of the camera.


If the [[coordinates]] of the clipping bounding box are all zero, <code>[[$bbox]]</code> is used instead.
{{confirm|Actual clipping box may often be overridden by game code for entities such as [[NPC]]s, as is the case for the GoldSrc equivalent.}}
==Syntax==
  $cbox (min x) (min y) (min z) (max x) (max y) (max z)
  $cbox (min x) (min y) (min z) (max x) (max y) (max z)


[[Category:QC Commands|cbox]]__NOTOC__
==See also==
* [[$bbox]]
* [[$hbox]]
* [[$hboxset]]
 
[[Category:Modeling]]
[[Category:Source]]

Latest revision as of 21:16, 16 July 2025

English (en)中文 (zh)Translate (Translate)

$cbox is a QC command available in all Source Source games. It sets the clipping bounding box for the model. This box is used for the culling of models in the game for optimization.

A model will be culled as soon as the clipping bounding box is no longer in view of the camera.

If the coordinates of the clipping bounding box are all zero, $bbox is used instead.

Confirm:Actual clipping box may often be overridden by game code for entities such as NPCs, as is the case for the GoldSrc equivalent.

Syntax

$cbox (min x) (min y) (min z) (max x) (max y) (max z)

See also