How use volumes to detect collision in sop and deform

   3661   2   0
User Avatar
Member
3 posts
Joined: June 2016
Offline
Hey guys, sorry for my english

There is a way in Houdini to detect the collision and have a organic style deformation without dynamics to avoid the intersection of the meshes? I have some geometry groups (tentacles based on curves) in a single object, so, I thinks is possible with volumes and a vex expression with if and else, but I'm not so good with vex, i'm still learning. So, using a foreach loop , maybe converting the mesh into volumes and use a scatter to have the surface and inside points to detect their position, how can I import in a wrangle the groups and their points info to create this type of action?

I know the message but i don't know how to write it, some ideas?

Thank you
User Avatar
Member
8038 posts
Joined: Sept. 2011
Offline
If you don't know vex, then why do you want to go that route? There exist nodes (VOPs) for most operations possible in code. It's easier to learn vex if you already have an understanding of what operations are possible, and when to use which technique.

As for your problem, it sounds like you want to use sdf collision. To move points to the surface of an sdf, add the sdf's gradient multiplied by the absolute value of the sdf value to the point's position.
User Avatar
Member
3 posts
Joined: June 2016
Offline
I don't know vex but want learn how use it!
Yes, I should use a sdf collision, with vop I can use a twoway and a compare to create a if operation, can I import automatically groups information from the opinput, right? or a import point group or bind.
Thank you for your feedback jsmack!
  • Quick Links