Using an edge of my torus sim to run path deform

   1037   1   0
User Avatar
Member
34 posts
Joined: Feb. 2023
Offline
Hi. I am learning Houdini following Entagma tutorials:


Is it possible to use a loop from the torus as an input in the path deform node to make the fish bend around the torus loop and swim while following the sim? Basically, I want the fish to swim in circles (path coming from the torus edge loop) while the torus follows the guide with noise shown in the attachment.

I hope it was clear. Thank you
Edited by zooropa - Sept. 19, 2023 08:35:29
User Avatar
Member
504 posts
Joined: July 2005
Offline
I'm not sure if this works for you, but if you have NURBS-surface (you can usually convert swept surface to it), you can extract iso-curves (same u/v value). You can also push it away from the surface using the normal. Once you have the curve (it can be evaluated using VEX for example), you can resample it and apply orientation attributes, which can be used for the path deformer.

Attachments:
extract_curve_from_surface_pathdeform.hipnc (251.6 KB)

  • Quick Links