RTHMan Posted December 2, 2021 Share Posted December 2, 2021 Is it possible to distribute scatter points/spheres from curves? I want to try something like the curves in the photo. They're from this video. JBL “The Making-Of Chameleon” on Vimeo Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 2, 2021 Share Posted December 2, 2021 Hi Robert, the sweep node has a ribbon mode you could use for adding points, scattering on or creating a triangulated patch from it. sweep_scatter.hiplc Quote Link to comment Share on other sites More sharing options...
RTHMan Posted December 2, 2021 Author Share Posted December 2, 2021 From the points, can I do a Voronoi fracture? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 2, 2021 Share Posted December 2, 2021 Sure, but you could also compute a dual mesh using the divide node on a remeshed surface just like in the video. Quote Link to comment Share on other sites More sharing options...
Librarian Posted December 2, 2021 Share Posted December 2, 2021 @RTHMan just feed on Magnus Example make Att-Randomize pscale than matrix rot = maketransform(0,0,0,{12,0,0},1,@P); vector temp_pos = @P +@pscale *{0,1,0}; int prim = addprim(0,"polyline",addpoint(0,temp_pos)); setprimattrib(0,"pscale",prim,@pscale); setprimattrib(0,"center",prim,@P); vector normal ; for (int i =0; i < 30;i++){ temp_pos*= rot; addvertex(0,prim,addpoint(0,temp_pos)); } removepoint(0,@ptnum); @center = prim(0,"center",@primnum); @pscale = prim(0,"pscale",@primnum); float offset = @pscale ; i[]@prims= pcfind_radius(1,"P","pscale",1,@center,@pscale,25); removevalue(@prims,i@primnum); vector n; float depth; vector near_pos; float near_pscale; float dist; vector r = @P- @center; foreach(int prim;@prims){ near_pos = point(1,"P",prim); n = normalize (near_pos-@center); near_pscale = point(1,"pscale",prim); dist = distance(@center,near_pos); offset =(@pscale / near_pscale)*dist/(1+(@pscale / near_pscale)); if (dot(n,r)-offset>0){ @P-= n*(dot (n,r)-offset); } } 1 1 Quote Link to comment Share on other sites More sharing options...
RTHMan Posted December 2, 2021 Author Share Posted December 2, 2021 Konstantin, can I jitter the points that are on the inside? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 3, 2021 Share Posted December 3, 2021 4 hours ago, RTHMan said: Konstantin, can I jitter the points that are on the inside? Sure, the group node supports selecting borders. sweep_scatter_2.hiplc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.