Fill an Object with Spheres with Different Sizes without Overlapping Each Other

   5279   3   2
User Avatar
Member
3 posts
Joined: Sept. 2014
Offline
Hi guys,
I'm pretty new to Houdini and want to see if any knows how to fill an object with Spheres with different scale without overlapping each other.
Thanks in advance!!
- ekim
Houdini Noob
User Avatar
Member
719 posts
Joined: Sept. 2013
Offline
Hi ekim,

you can fill objects with spheres by converting them to a volume (eg. VDBfrompolygons) and choose VDBtospheres.
Edited by Konstantin Magnus - May 10, 2018 14:10:32

Attachments:
fill_obj_with_spheres.hiplc (218.5 KB)
obj_spheres.jpg (27.4 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
3 posts
Joined: Sept. 2014
Offline
WOW !!! That's exactly what I need.
It also has a check box to turn overlapping on and off.
Thank you, Konstantin Magnus!!!

Now, I want to replace these spheres with three other objects randomly with the scale of each sphere applied to those three objects.
Can you help me with this one, too??
- ekim
Houdini Noob
User Avatar
Member
719 posts
Joined: Sept. 2013
Offline
You can scale copies by adding a pscale attribute in VDBtospheres. The copy to points-node is accepting pscale to scale each copy accordingly.

You can assign varying copies with a for each loop (see attachment).

Attachments:
fill_obj_with_spheres_copies.hiplc (266.6 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links