Scatter in Maya

   3594   3   1
User Avatar
Member
948 posts
Joined: April 2008
Offline
If I try to use a Maya deforming curve on my asset, inside Maya off course, to generate a surface (polywire) and scatter points I have those points jittering even if I create the rest position with a attribute interpolate or wire deform, any tips on how to fix it?


Thanks.
Edited by mzigaib - Sept. 15, 2016 14:11:49
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: April 2008
Offline
Anyone?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Using Attribute Interpolate would be the right approach. But there are two things that you need to watch out for.

1. Getting the correct rest geometry. In Houdini, this is commonly done by using a timeshift node to get the geometry from the first frame. However, this doesn't work through Houdini Engine. Whenever Houdini Engine cooks, it only sees one snapshot of the Maya world. So time nodes cannot be used to get Maya geometry from an arbitrary frame. To workaround that, use a second input to pass in the rest geometry. This also means that you have to mesh the two input curves separately.

2. Geometry from PolyWire is not exactly stable. When the curve is deforming, the resulting geometry looks smooth and continuous. But if you look at the prim number, the prim number actually rearranges randomly. This break the interpolation workflow. So instead of using PolyWire, use Sweep with a circle.

See the attached scene and asset for an example. Hope this helps!
Edited by awong - Sept. 16, 2016 10:27:40

Attachments:
curve_scatter.mb (47.9 KB)
curve_scatter.hda (7.3 KB)

Andrew / アンドリュー
User Avatar
Member
948 posts
Joined: April 2008
Offline
Dude this is gold, thanks for that it is good to know more about the quirks about Houdini Engine in Maya.

Cheers!
Edited by mzigaib - Sept. 18, 2016 02:12:05
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links