Foreach and Ray SOP to stack skinned curves

   3657   9   0
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Hello,

I have made a example file of my question, in this example file I have 3 Curve SOPs that i put into a Foreach.

I was thinking/hoping that the Ray SOP within the Foreach would get each itterations result and Ray against so I could “stack” these skinned Curve's ..but either I am doing something wrong or it wont work? Any suggestions ?

Attachments:
ForEach_Ray_Example.hipnc (69.3 KB)

/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Well after some fiddeling around I got a solution, sharing it here.

Still needs some tweak to make the overlap look nicer but atleast it is heading in the right direction.

Attachments:
ForEach_Ray_Sopping.JPG (148.6 KB)
ForEach_Ray_Example2.hipnc (74.5 KB)

/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Well actually something seems off, the more curve SOPs you add the more apparent the problem is. It is like the current curve only knows about the last skinned one or perhaps the two last ones..since it is missing alot..

See file and image..

Suggestions ?

Attachments:
ForEach_Ray_Example3.hipnc (82.2 KB)
ForEach_Ray_Sopping2.JPG (97.3 KB)

/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Togeather with MikePiaxao at work we managed to “solve” it like this. Not a super nice solution since it has to be cleaned up in the end, but still it works.

Attachments:
ForEach_Ray_Sopping3.PNG (268.9 KB)
foreach_ray_example4.hipnc (95.3 KB)

/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
glad we could help
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
arctor
glad we could help

Thanks ! You are still welcome to make it better because I am sure it can be done !
Edited by - Nov. 7, 2014 15:38:52
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
good job man
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
36 posts
Joined: Sept. 2014
Offline
I am still transitioning from ICE, at some point I will actually have a clue what I am doing!
todo: add signature
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
And here is a update where the curves are now “pipes” and the ground is a tube.

Attachments:
ForEach_Ray_Sopping4.JPG (159.6 KB)

/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
2529 posts
Joined: June 2008
Offline
@MagnusL3D: How did you get the tube/cylinder to work? I replaced the grid object in the ForEach with a Sphere object and I did get the curves to conform to that shape but I lost the overlapping effect.

Is there something more I need to do?

Attachments:
Screen Shot 2014-12-08 at 10.00.15 AM.png (811.7 KB)

Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links