Scattering object with Copy to points with collision evasion

   2089   4   0
User Avatar
Member
18 posts
Joined: Jan. 2020
Offline
Hi,

I am trying to model palm oil plantation tree with lots of cut leaves/midrib just like the image below. So my current solution is to scatter slightly randomized polygons on random point on a tube-like surface (or randomizing points on a tube). The issue is some of the polys are colliding to each other like the image below. I can reduce the poly but then it's not like they're on top of each other like a palm tree. I wonder if it is possible to increase the polys but avoiding them to collide to each other. Can anyone help me on this?

My current thought is to create polys and stack them from above. I wonder if this is possible in Houdini.

Thank you
Edited by jttarigan - July 26, 2022 02:04:02

Attachments:
kelapasawit.jpg (84.6 KB)
draft.png (711.0 KB)

User Avatar
Member
2536 posts
Joined: June 2008
Offline
You need a simulation for that. Check out Matt's de-intersect setup.
https://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#RBD_deintersect_the_easy_way [www.tokeru.com]

Attachments:
me_deintersect.gif (412.6 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
7762 posts
Joined: Sept. 2011
Online
They shouldn't be intersecting in the first place if you don't use a scatter. The leaves on a palm aren't popping out at random, they are following an orderly phyllotaxis pattern. Use a rotation on the points about a central axis by a fixed angle.
User Avatar
Member
18 posts
Joined: Jan. 2020
Offline
Enivob
You need a simulation for that. Check out Matt's de-intersect setup.
https://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#RBD_deintersect_the_easy_way [www.tokeru.com]

will take a look. thanks for the link. It's very interesting

jsmack
They shouldn't be intersecting in the first place if you don't use a scatter. The leaves on a palm aren't popping out at random, they are following an orderly phyllotaxis pattern. Use a rotation on the points about a central axis by a fixed angle.

ah okay. That make sense, so I'll just generate the pattern and modify the leaves accordingly. Thank you for the info.
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
you could try with my "autofix geo intersections" tool.
But note that it will modify your geometry, and might give bad results, especially with low res sources like in your case.

https://www.sidefx.com/forum/topic/82432/ [www.sidefx.com]
Edited by Andr - July 29, 2022 07:17:42
  • Quick Links