?Fracturing > Clustering & Dops

   2396   3   0
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
Normally I scatter some points and then feed that into the fracture sop. I can paint attributes onto points and then using a point() in dops I can draw in values. In its simplest form I can use it to drive which piece of the fracture becomes active. As the scene attached shows. But if you enable clustering the relationship between the points from scatter sop and the fracture sop gets broken and the method I use fails.
I like the interactive nature of painting or using an attribute to drive things at least using the points I can see whats going on easily. So what is the relationship of the points to the fracture sop, how are they tied together and is it possible to maybe tie some new points created at the centroid of each piece to the fracture pieces and then use those to draw attributes into DOPs .

Would love to get some advice …….

Attachments:
clustering.hip (218.7 KB)

Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
the first thing that comes to my mind when I see your scene is:
why not paint the attributes after the fracturing?
all you need to do is let your new centroid points know who their parents are. I usually call that the “origin” attribute. Both fractured piece and centroid point need to have the same attribute - I usually do that in a foreach sop by extracting the group number from the group string “piece_n” - then you can paint your attributes on the points and transfer the values fast and multithreaded in a VOP Sop back onto the chunks. Voilà, that's it.

If you still want to go the other way and paint your attributes first, then the approach would be similar. You create your centroid points, do a nearest neighbour pointcloud lookup of the scattered points which you're feeding into the voronoi SOP, grab the found points attributes and transfer those back onto the pieces.

Either way, then you can use a point() expression in DOPs and lookup i.e. point #0 and get your values (all points on each piece will have the same values so it doesn''t really matter which point you call)

I'm too lazy right now to setup a file but ask me tomorrow and I might set one up while I'm simulating

cheers,

Manu
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Thanks for the reply , Ive since been hacking away and did think why not let the fracture sop do the hard work. I created a new point attribute and passed it into the fracture sop. The attribute now gets copied to each point or prim. I then moved the OUT_activeAttr named null to after the fracture sop. It all looks right and the values should work fine > except it wont play fair in dops ….

Anyway slight progress …..

Attachments:
clustering_v02.hip (223.0 KB)

Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
Hey Rob, here's a fix for your scene!

Attachments:
trigger_geometry_fix_Manu.hipnc (753.9 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
  • Quick Links