$upaxis: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The [[QC command]] [[$upaxis]] tells StudioMDL which axis in the .SMD file should be considered ''up''.  
The [[QC command]] <code>[[$upaxis]]</code> tells StudioMDL which axis in the SMD file should be considered 'up'. The default value is <code>z</code>.


* By default StudioMDL will assume the SMD file uses '''$upaxis Z'''.
{{note|The command must be called before any animations - preferably on the first line.}}
* SMD files exported from [[3DS Max]] and [[XSI]] do use '''$upaxis Z''', so there's no need to specify the $upaxis command in your QC file.
* SMD files exported from [[Maya]] (by default) use '''$upaxis Y''', so you need to specify <code>$upaxis Y</code> in your QC file.
{{warning|XSI viewports show '''Y''' as the upaxis ... ? [[User:Beeswax|Beeswax]] 13:44, 3 Apr 2008 (PDT)}}


=== Example Syntax ===
== Exporters ==
$upaxis Y


[[Category:QC Commands]]
;Need $upaxis
:Maya
;Do not need $upaxis
:XSI
:3DS Max
:MilkShape
 
== Usage ==
$upaxis [X|Y|Z]
 
[[Category:QC Commands|u]]
[[Category:Maya]]

Revision as of 12:20, 27 April 2008

The QC command $upaxis tells StudioMDL which axis in the SMD file should be considered 'up'. The default value is z.

Note.pngNote:The command must be called before any animations - preferably on the first line.

Exporters

Need $upaxis
Maya
Do not need $upaxis
XSI
3DS Max
MilkShape

Usage

$upaxis [X|Y|Z]