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

$checkuv: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Removing deprecated Category)
 
Line 1: Line 1:
[[$checkuv]] is a QC command available in all games since [[Source 2013]]. It checks the UVs of meshes and prints out messages if the checks fail.
{{This is a|since=Source 2013|name=$checkuv|QC command}} It checks the UVs of meshes and prints out messages if the checks fail.
{{important|[[$checkuv]] appears to affect meshes provided through <i>any</i> QC commands that accept meshes, including those whose meshes do not typically contain any form of comprehensive UV mapping (such as [[$collisionmodel]]). Depending on the [[$checkuv]] commands issued, this may cause model compilation to fail when said behavior would be otherwise undesired.}}
{{important|[[$checkuv]] appears to affect meshes provided through <i>any</i> QC commands that accept meshes, including those whose meshes do not typically contain any form of comprehensive UV mapping (such as [[$collisionmodel]]). Depending on the [[$checkuv]] commands issued, this may cause model compilation to fail when said behavior would be otherwise undesired.}}
== Syntax ==
== Syntax ==
Line 15: Line 15:
: Checks that the distance between edges in UV islands is a minimum number of pixels for a given texture size
: Checks that the distance between edges in UV islands is a minimum number of pixels for a given texture size
{{Note|gutter does not function as it has not been implemented}}
{{Note|gutter does not function as it has not been implemented}}
[[Category:QC Commands|c]]

Latest revision as of 21:15, 16 July 2025

$checkuv is a QC command available in all Source Source games since Source 2013 Source 2013. It checks the UVs of meshes and prints out messages if the checks fail.

Icon-Important.pngImportant:$checkuv appears to affect meshes provided through any QC commands that accept meshes, including those whose meshes do not typically contain any form of comprehensive UV mapping (such as $collisionmodel). Depending on the $checkuv commands issued, this may cause model compilation to fail when said behavior would be otherwise undesired.

Syntax

$checkuv <0to1> <overlap> <inverse> <gutter [res] [min]>
0to1
Checks that all UVs are in the [0, 1] range
overlap
Checks that all polygons in UV do not overlap
inverse
Check that all polygons in UV have the correct winding, i.e. the cross product of edge AB x BC points the right direction
gutter
Checks that the distance between edges in UV islands is a minimum number of pixels for a given texture size
Note.pngNote:gutter does not function as it has not been implemented