$checkuv

From Valve Developer Community
Revision as of 14:39, 21 July 2020 by Ficool2 (talk | contribs) (New completely undocumented QC command! ZERO results on Google)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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