Ray project line smoothing between objects

   493   3   1
User Avatar
Member
2 posts
Joined: Aug. 2022
Offline
I'm a houdini beginner and I've been breaking my head over this for a while now, please #help




I setup this test scene for readability.
Its what I get with ray sop, got two objects and projecting a line on them.

HOWEVER, I'd very much like to find a way to smooth out the 'hanging' regions of the projected curve,
like what would happen naturally with a silk sheet for example.



I can't use shrinkwrap cloth stuff (iTried)
because I need lines to be geometrically perfectly straight except for Y axis

I googled and chatgpt'd this issue to no success, any help much appreciated.
User Avatar
Member
2607 posts
Joined: June 2008
Offline
Try using vellum hair and simulate it the line falling on the collider using vellum drape.
Edited by Enivob - June 27, 2024 09:17:19

Attachments:
vellum_drape.gif (277.0 KB)
ap_vellum_drape_hair_062724.hiplc (523.7 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
253 posts
Joined: Aug. 2018
Offline
Assuming the above is simplified geometry, if you found your line was getting slightly bent on the x axis you could always follow it with a point wrangle to move the points back to their original x position.
Connect your vellum result into the first input (input 0) and connect your original undistorted line into the second input (input 1), then copy and paste:

@P.x = point(1,"P",@ptnum);
Edited by Mike_A - June 28, 2024 04:18:45
User Avatar
Member
53 posts
Joined: April 2013
Offline
There is also the labs node called "edge_smooth"

"group" sharper edges by the angle between them.....then adjust.

Attachments:
Edge_Smooth.hipnc (193.6 KB)

  • Quick Links