### Ray project line smoothing between objects

413   3   1
Member
2 posts
Joined: 8月 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.
Member
2591 posts
Joined: 6月 2008
Offline
Try using vellum hair and simulate it the line falling on the collider using vellum drape.
Edited by Enivob - 2024年6月27日 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.
Member
242 posts
Joined: 8月 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 - 2024年6月28日 04:18:45
Member
53 posts
Joined: 4月 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)