What & How & Why

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
vfx:houdini:concepts:geo:geo_attr [2019/04/12 01:26] – [几何体属性的优先级] codingharevfx:houdini:concepts:geo:geo_attr [2021/11/11 08:07] (当前版本) codinghare
行 2: 行 2:
 Houdini 中的几何属性相关知识点。\\ Houdini 中的几何属性相关知识点。\\
  
-===== =====+----
  
 ====属性不是本地变量==== ====属性不是本地变量====
行 52: 行 52:
 \\ \\
 \\ \\
-我们同时还可以使用 ''Attribute Cast'' 节点对属性进行精度的控制(参考 [[vfx:houdini:sop:attribute:attr_cast|Attribute Cast]])。+我们同时还可以使用 ''Attribute Cast'' 节点对属性进行精度的控制(参考 [[vfx:houdini:sop:node:attribute:attr_cast|Attribute Cast]])。
  
 ====Intrinsic attributes==== ====Intrinsic attributes====
行 72: 行 72:
     * Inspect tool     * Inspect tool
 ==使用 Intrinsic attributes == ==使用 Intrinsic attributes ==
- Tools  ^  Usage  ^  +^Tools  ^  Usage  ^  
-  VEX    |  以 <color #900>intrinsic:xxxx</color> 的形式直接读取,no ''@'',use <color #900>primintrinsic()</color> 、<color #900>detailintrinisc()</color>   | +| VEX    |  以 <color #900>intrinsic:xxxx</color> 的形式直接读取,no ''@'',use <color #900>primintrinsic()</color> 、<color #900>detailintrinisc()</color>   | 
- Python  |  <color #900>hou.Geometry.intrinsicNames()</color>、<color #900>intrinsicValue()</color> 、<color #900>.intrinsicValueDict()</color>                | +|Python  |  <color #900>hou.Geometry.intrinsicNames()</color>、<color #900>intrinsicValue()</color> 、<color #900>.intrinsicValueDict()</color>                | 
- Group    <color #900>@ + intrinsic:xxx + //condition// </color>,E.g.: @intrinsic:indexorder<100         |+|Group    <color #900>@ + intrinsic:xxx + //condition// </color>,E.g.: @intrinsic:indexorder<100         |
 ====不同精度的存储==== ====不同精度的存储====
 存储属性有高精度 / 低精度 两种方式存储。 存储属性有高精度 / 低精度 两种方式存储。
行 88: 行 88:
  
 ===Geometry=== ===Geometry===
- Name  ^  Type  ^  What  ^  Where  ^  Tips  ^ +^Name  ^  Type  ^  What  ^  Where  ^  Tips  ^ 
- <color #900>P</color>  |  vector  |  Point Position  |  Points  |  PTA, 不唯一 +|<color #900>P</color>  |  vector  |  Point Position  |  Points  |  PTA, 不唯一 
- <color #900>N</color>  |  vector  |  Normal direction  |   | +|<color #900>N</color>  |  vector  |  Normal direction  |   | 
- <color #900>v</color>  |  vector  |  Velocity  |  Motion blur, particle Dop  |  可用 ''Trail'' 计算 +|<color #900>v</color>  |  vector  |  Velocity  |  Motion blur, particle Dop  |  可用 ''Trail'' 计算 
- <color #900>id</color>  |  int  |  unique element ID  |  particle Dop  |  唯一, 和  P 这类的 element number 不同 +|<color #900>id</color>  |  int  |  unique element ID  |  particle Dop  |  唯一, 和  P 这类的 element number 不同 
- <color #900>name</color>  |  string  |   primitive name  |  packed primitives, volumes  |  可通过寻找 name 来选中几何体 +|<color #900>name</color>  |  string  |   primitive name  |  packed primitives, volumes  |  可通过寻找 name 来选中几何体 
- <color #900>piece</color>  |  int  |   broken pieces    Dop     独立碎块的编号,碎片的面共享该编号  |+|<color #900>piece</color>  |  int  |   broken pieces    Dop     独立碎块的编号,碎片的面共享该编号  |
 ===Sizes / Rotations=== ===Sizes / Rotations===
- Name  ^  Type  ^  What  ^  Where  ^  Tips  ^ +^Name  ^Type  ^  What  ^  Where  ^  Tips  ^ 
- <color #900>pscale</color>  float  |  Uniform scaling factor  |  Rendering  |  控制点和粒子的大小、instancing 的几何体大小 +|<color #900>pscale</color>  |float  |  Uniform scaling factor  |  Rendering  |  控制点和粒子的大小、instancing 的几何体大小 
- <color #900>scale</color>  vector  |  <color #2c7ba5>Axis</color> scaling factor  |  Rendering  |  在坐标轴方向上**分别**缩放 +|<color #900>scale</color>  |vector  |  <color #2c7ba5>Axis</color> scaling factor  |  Rendering  |  在坐标轴方向上**分别**缩放 
- <color #900>width</color>  float    Open curve width  |   Rendering  |  PTA,调整渲染时曲线的宽度(世界坐标系下) +|<color #900>width</color>  |float    Open curve width  |   Rendering  |  PTA,调整渲染时曲线的宽度(世界坐标系下) 
- <color #900>lod</color>  float    Level of detail  |  Instanting  |  PRA, DA   | +|<color #900>lod</color>  |float    Level of detail  |  Instanting  |  PRA, DA   | 
- <color #900>spritescale</color>   vector  |  sprint scaling factor  |  sprint image  |  PTA,  Default(1,1,1) +|<color #900>spritescale</color>|vector  |  sprint scaling factor  |  sprint image  |  PTA,  Default(1,1,1) 
- <color #900>spriterot</color>  float  |  sprite rotation factor  |  sprint image  |  PTA, Default 0  |+|<color #900>spriterot</color>  |float  |  sprite rotation factor  |  sprint image  |  PTA, Default 0  |
  
 ====参考资料==== ====参考资料====