$subd

From Valve Developer Community
Revision as of 05:21, 25 October 2015 by Zwip-Zwap Zapony (talk | contribs) (Image thumbnail sizes.)
Jump to navigation Jump to search
An example of a low-poly sphere.
Same model, utilizing $subd and mat_tessellationlevel 16.
Click the image to expand it.

The QC command $subd is used to mark a model to be tessellated in run-time. This can be used to make models appear smoother than they actually are.

Tip.pngTip:The smoothness can be adjusted using the console variable mat_tessellationlevel <1-16>.
Confirm:Only works with Source Filmmaker?
Warning.pngWarning:Studiomdl will crash if any triangles are present in the model. $subd only works with quads and n-gons with more than 3 edges. This effectively makes the SMD format unusable, meaning you have to use the DMX format, as SMD only supports triangles. The SMD format can still be used for animations, though.

Syntax

$subd

Example

$modelname		"example/subdivison.mdl"
$cdmaterials		"example/subdivision"
$subd
$body		test	"subdivison.dmx"
$sequence	idle	"subdivision_idle.smd"