【问题标题】:3ds Max SDK How to set tranformation matrix for pivot only3ds Max SDK 如何仅获取枢轴的变换矩阵
【发布时间】:2022-12-21 12:05:51
【问题描述】:

我正在尝试为 3ds max 创建我的导入插件,但我遇到了问题。如何仅将变换矩阵分配给主元。

我尝试使用 SetNodeTM,但它使用对象本身转换枢轴

【问题讨论】:

    标签: c++ plugins 3dsmax


    【解决方案1】:

    我不知道有任何方法可以直接操作对象的枢轴转变, 但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;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-06
      • 2013-01-17
      • 2018-02-26
      • 1970-01-01
      • 2013-09-07
      • 2017-02-16
      • 1970-01-01
      • 2019-08-08
      相关资源
      最近更新 更多