I'm reading the official document on Loop: https://www.sidefx.com/docs/houdini/model/looping.html [www.sidefx.com]
The example it provides look like:
But I really don't understand what the point is for this complex loop setup. I made a similar setup:
It seems to do the same thing (the "Swiss Cheese" effect) with the same nodes as the official example, minus the loops.
The official document doesn't provide an HIP file so I can't study it. Could someone enlighten me why they use loops here?
Help me understand the "Swiss Cheese" loop example
1903 5 2- raincole
- Member
- 431 posts
- Joined: Aug. 2019
- Offline
- frostfx
- Member
- 44 posts
- Joined: May 2017
- Offline
the difference is that in your case the vdb subtraction is done in one go while in the doc example the air bubbles are subtracted one by one while feeding the intermediate result into the for loop every time.
Its not so much of a tutorial of how to create a setup to subtract spheres from a box but showcasing some useful workflows with for loops that were pretty difficult to achieve prior to the current way to do loops in vops and sops.
Its not so much of a tutorial of how to create a setup to subtract spheres from a box but showcasing some useful workflows with for loops that were pretty difficult to achieve prior to the current way to do loops in vops and sops.
- raincole
- Member
- 431 posts
- Joined: Aug. 2019
- Offline
frostfx
the difference is that in your case the vdb subtraction is done in one go while in the doc example the air bubbles are subtracted one by one while feeding the intermediate result into the for loop every time.
I know, but what's the benefit of "subtracting one by one" over "subtracting in one go"?
- jsmack
- Member
- 7737 posts
- Joined: Sept. 2011
- Offline
- eikonoklastes
- Member
- 330 posts
- Joined: April 2018
- Offline
The main reason you'd want to use a For Loop when instancing is to get variant control over any incoming parameter from your source geometry.
https://www.sidefx.com/docs/houdini/copy/tutorial_stamping.html [www.sidefx.com]
The above is a simple example, but if you latch on to this, it's an absurdly powerful system to give you precise and high level control over your copies.
https://www.sidefx.com/docs/houdini/copy/tutorial_stamping.html [www.sidefx.com]
The above is a simple example, but if you latch on to this, it's an absurdly powerful system to give you precise and high level control over your copies.
- TwinSnakes007
- Member
- 603 posts
- Joined: July 2013
- Offline
-
- Quick Links