Skip to content

v0.8.0 - Houdini 骨架驅動 procedural / Skeleton-driven procedural

Latest

Choose a tag to compare

@chordee chordee released this 08 Oct 06:25
· 1 commit to master since this release
55c358b

中文

骨架驅動的 Invoke Graph procedural(invokegraph_skinned)

  • 新增 husdplugins/houdiniprocedurals/invokegraph_skinned.py,以 Houdini 22.0.429 原版 invokegraph.py 為基底,於 husk 算圖與 Preview Procedurals 時執行。
  • per-input --skin:在 args['inputs'] 項目後加上旗標,該 input 改取當格經 UsdSkel skinning 與 blendshape 驅動後的模型,而非 bind pose;並排除未綁骨架的 prim。未加旗標的 input 行為與原版相同,兩者可混用。
  • input 可指向 mesh、含多個 mesh 的 Xform、SkelRoot 或更上層 prim。
  • 以 UsdSkel.BakeSkinning 計算點位、normal、blendshape 與 rigid 綁定,在遮罩過的 stage 副本上烘焙,不修改算圖 stage;motion blur 子幀與一拍二動畫皆正確。
  • per-input --velocity:替該 input 加上 point 屬性 v(每秒,依 render camera shutter 計算),供 graph 以 attribute transfer 傳給毛髮等輸出,走 velocity motion blur;可與 --skin 併用,拓樸改變時跳過並警告。
  • 相容 Houdini 21 與 22:H22 支援 MotionAPI 多樣本 deformation blur;H21 的 loader 不收時間樣本,改以 --velocity 取得 motion blur。
  • 使用注意:husk 需加 --allowed-procedurals all(預設 basic 會以 --validategeo 拒絕非 SideFX 簽章的 procedural);Karma 需設 karma:object:vblur = 1 才會使用 velocities。
  • 新增 15 項測試(參數化共 32 案例),於 hython Houdini 21.0.729 與 22.0.429 皆通過,並以兩版 husk 端到端驗證。

USD Layer 盤點工具(layer_inspector)

  • describe() 新增 creatorNode 與 isSopLayer 欄位:implicit layer 沒有存檔路徑、displayName 只是 "LOP",改以 HoudiniCreatorNode 還原建立它的節點路徑,與 Houdini Scene Graph Layers 面板的標示方式一致。

Houdini 端測試函式累計 217 項(v0.7.0 為 199 項)。


English

Skeleton-driven Invoke Graph procedural (invokegraph_skinned)

  • Adds husdplugins/houdiniprocedurals/invokegraph_skinned.py, based on Houdini 22.0.429's stock invokegraph.py; it runs during husk renders and Preview Procedurals.
  • Per-input --skin: append the flag to an entry in args['inputs'] and that input is imported as the UsdSkel-skinned, blendshape-deformed model at the current frame instead of the bind pose, with prims that carry no skeleton binding dropped. Entries without the flag behave exactly as in the stock procedural, and the two can be mixed.
  • An input may point at a mesh, an Xform holding several meshes, a SkelRoot, or any prim above it.
  • Points, normals, blendshapes and rigid bindings are computed by UsdSkel.BakeSkinning on a masked copy of the stage, so the render stage is never modified; motion blur subframes and animation keyed on twos come out correctly.
  • Per-input --velocity: adds a point v attribute (units per second, measured across the render camera's shutter) to that input, so the graph can transfer it onto what it generates, such as hair, for velocity motion blur. Combines with --skin; if the point count changes across the shutter, v is skipped with a warning.
  • Houdini 21 and 22 compatible: Houdini 22 supports multi-sample deformation blur through MotionAPI; Houdini 21's loader accepts no time samples, so use --velocity for motion blur there.
  • Notes: husk needs --allowed-procedurals all (the default basic runs --validategeo, which rejects procedurals not signed by SideFX), and Karma only uses velocities with karma:object:vblur = 1.
  • 15 new tests (32 cases with parametrization), passing under hython in Houdini 21.0.729 and 22.0.429, plus end-to-end checks with both versions of husk.

USD layer inspector (layer_inspector)

  • describe() gains creatorNode and isSopLayer fields. An implicit layer has no save path and its displayName is just "LOP", so the node that created it is now resolved from HoudiniCreatorNode, matching how Houdini's Scene Graph Layers panel labels it.

Houdini-side test functions now total 217 (199 at v0.7.0).