【发布时间】:2022-12-21 12:05:51
【问题描述】:
我正在尝试为 3ds max 创建我的导入插件,但我遇到了问题。如何仅将变换矩阵分配给主元。
我尝试使用 SetNodeTM,但它使用对象本身转换枢轴
【问题讨论】:
我正在尝试为 3ds max 创建我的导入插件,但我遇到了问题。如何仅将变换矩阵分配给主元。
我尝试使用 SetNodeTM,但它使用对象本身转换枢轴
【问题讨论】:
我不知道有任何方法可以直接操作对象的枢轴转变, 但INode 确实提供了获取/设置枢轴位置、旋转和缩放的方法。因此,如果您能够将枢轴分解为这些组件,则可以那样设置。
从开发工具包:
/*!
emarks Sets the position portion of the object offset from
the node. See the Advanced Topics section on
~{ Transformation and Rotation }~ for an overview of the object offset transformation.
param p Specifies the position portion of the object-offset. */
virtual void SetObjOffsetPos(Point3 p)=0;
/*!
emarks Sets the rotation portion of the object-offset from
the node. See the Advanced Topics section on
~{ Transformation and Rotation }~ for an overview of the object offset transformation.
param q The rotation offset. */
virtual void SetObjOffsetRot(Quat q)=0;
/*!
emarks Sets the scale portion of the object-offset matrix.
See the Advanced Topics section on
~{ Transformation and Rotation }~ for an overview of the object offset transformation.
param sv The scale portion of the offset. See Class ScaleValue. */
virtual void SetObjOffsetScale(ScaleValue sv)=0;
【讨论】: