Matrix in Houdini

Posted vfxjerry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Matrix in Houdini相关的知识,希望对你有一定的参考价值。

  Matrix in houdini is still just a collection of numbers, the only different is :How you apply this data determines what kind of matrix it is.

  There is always 3x3 or 4x4 or QxQ matrix in houdini.

0.3x3 Matrix is:

技术图片 

1.Main type of matrix in houdini.

技术图片

2.If you want to rotate some points using matrix......

技术图片

 

3.If you want to translate something......

技术图片

 

The meaning of this matrix is:

 

 技术图片

 

 

 4.Identity matrix is a matrix which keeps your positions the same

技术图片

 

 

 5.Example rotate geometry using wrangle node.

技术图片

.In the wrangle node ,the vex script is:

1 //create a identity matrix ‘rotY‘
2 matrix3 rotY = ident();
3 
4 //Applies a rotation value to the given matrix, here is rotY.
5 //Channel ‘rotY_value‘ is the rotation degree.
6 rotate(rotY, radians(chf(rotY_value)), {0,1,0});
7 
8 @P *= rotY;

6. Set a component of a matrix.

. We can use ‘setcomp‘ in VEX to modify a single component of a exist matrix.

 

 

 技术图片

X.* is the X Axis direction vector of this Axis.

Y.*  is the Y Axis direction vector of this Axis.

Z.*   is the Z Axis direction vector of this Axis.

P.* is the position of this Axis.

以上是关于Matrix in Houdini的主要内容,如果未能解决你的问题,请参考以下文章

How_to_select_items_to_install_in_houdini_with_linux

Houdini OpenCL

Houdini RBD 研究笔记

Client / Server Interoperability Support Matrix for Different Oracle Versions (Doc ID 207303.1)(代码片段

如何仅使用 Python 源代码编辑器在 Houdini 中创建动画书?

Ubuntu配置PyCharm for Houdini