$upaxis: Difference between revisions
Jump to navigation
Jump to search

Note:The command affects only animations & models below it.
Tip:You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.
mNo edit summary |
Trigger hurt (talk | contribs) m (Making use of the "this is a" template for the first line here, and some other misc improvements.) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{this is a|QC command|name=$upaxis}} It tells [[StudioMDL_(Source)|StudioMDL]] which axis should be considered 'up' in the model files below it. This is sometimes necessary because not every modeling package treats <code>Z</code> as the up axis, such as [[Maya]]. If unspecified, the up axis s <code>Z</code>. | |||
{{note|The command | {{note|The command affects only animations & models below it.{{tip|You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.}}}} | ||
{{ | |||
== Syntax == | |||
$upaxis <X|-X|Y|-Y|Z|-Z> | |||
== Exporters == | == Exporters == | ||
This command is mostly used by Valve for reorienting models created in Maya, which treats the Y axis as up unlike the game engine itself (and many other modeling packages), which use Z. | |||
; | ;These exporters generally need $upaxis (Don't usually treat the Z axis as 'up'): | ||
:Maya | :[[Maya]] (Y) | ||
; | ;These exporters generally don't need $upaxis (Already treat the Z axis as 'up'): | ||
:XSI | :[[Softimage Mod Tool|XSI]] | ||
:3DS Max | :[[3DS Max]] | ||
:MilkShape | :[[MilkShape 3D]] | ||
:Blender | :[[Blender]] | ||
== | == See also == | ||
* [[Modeling]] | |||
[[Category:QC Commands| | [[Category:QC Commands|upaxis]] | ||
[[Category:Maya]] | [[Category:Maya]] |
Revision as of 17:30, 14 July 2024


$upaxis
is a QC command available in all Source games. It tells StudioMDL which axis should be considered 'up' in the model files below it. This is sometimes necessary because not every modeling package treats
Z
as the up axis, such as Maya. If unspecified, the up axis s Z
.


Syntax
$upaxis <X|-X|Y|-Y|Z|-Z>
Exporters
This command is mostly used by Valve for reorienting models created in Maya, which treats the Y axis as up unlike the game engine itself (and many other modeling packages), which use Z.
- These exporters generally need $upaxis (Don't usually treat the Z axis as 'up')
- Maya (Y)
- These exporters generally don't need $upaxis (Already treat the Z axis as 'up')
- XSI
- 3DS Max
- MilkShape 3D
- Blender