$unlockdefinebones

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.

通常情况下,$definebone 定义始终用于骨骼的默认位置和旋转。设置 $unlockdefinebones 后,将使用QC文件中最后定义的smd/dmx文件第一帧的骨骼位置作为definebone的基准值。
与studiomdl命令-definebones不同,$unlockdefinebones不会打乱$definebone行的顺序。

Tip.png提示:如果您在QC文件末尾(或至少在$animation$sequence下方)定义$model$body$bodygroup,将基于新的参考姿势生成definebone定义,且不会改变definebone的顺序。
这对于视口模型将手臂和武器分开的情况非常有用,因为不同的definebone顺序会导致问题(例如求生之路2 求生之路2中的情况)。
Note.png注意:此行为与旧版本模型编译器的默认行为相反。在《半条命2:第二章》中,默认行为被修改以避免动画顺序干扰骨骼默认位置(例如附件使用的骨骼)的常见问题——这些骨骼实际上只在一小部分源文件中定义。代价是某些导出错误的LOD模型(因其骨骼与实际姿势不匹配)现在会暴露隐藏的错误。设置$unlockdefinebones可恢复旧版行为。

语法

$unlockdefinebones