$subd: Difference between revisions
Jump to navigation
Jump to search
Tip:The smoothness can be adjusted using the console variable
Confirm:Only works with Source Filmmaker?
Warning:Studiomdl will crash if any triangles are present in the model.
m (Oops. I should probably put this in the QC Commands category... since it's a QC command.) |
m (Fixed a small typo.) |
||
Line 17: | Line 17: | ||
== Example == | == Example == | ||
[[$modelname]] "example/ | [[$modelname]] "example/subdivision.mdl" | ||
[[$cdmaterials]] "example/subdivision" | [[$cdmaterials]] "example/subdivision" | ||
'''$subd''' | '''$subd''' |
Revision as of 02:35, 2 February 2016
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.

mat_tessellationlevel <1-16>
.

$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/subdivision.mdl" $cdmaterials "example/subdivision" $subd $body test "subdivison.dmx" $sequence idle "subdivision_idle.smd"