美文网首页
【Houdini】矩阵变换

【Houdini】矩阵变换

作者: _More | 来源:发表于2023-08-10 15:34 被阅读0次

    matrix m = indent();

    float scale = fit();float scale = chf(“scale”);

    translate(m,move)

     scale(m,scale) //scale(m,set(scale,1,1));

    p *=m;


    逆矩阵

    matrix mat = 4@mat

    matrix imat = invert(mat);

    @P *=imat;


    matrix m = lookat(from,to,roll)

    matrix m = instance(P,N,S)


    rotate(m,angle,radians,axis)

    rotate(m,angle,axis)


    int trs = chi("trs");

    intxyz = chi("xyz");

    matrix m = maketransform(trs,xyz,move,rotate,scale)


    eulerquatanion()


    解构矩阵

    4@mat = m;

    int trs = chi("trs");

     intxyz = chi("xyz");

    vector t,r,s;

    cracktransform(trs,xyz,set(0,0,0),4@m,t,r,s);

    v@t= t;

    v@r = r;

    v@s= s;


    vector v1 =

    vector v2 =

    matrix m =  dihedral(v1,v2);

    @P *=m;

    相关文章

      网友评论

          本文标题:【Houdini】矩阵变换

          本文链接:https://www.haomeiwen.com/subject/fqpkwrtx.html