Heightfield tile split with for loop

   1058   3   1
User Avatar
Member
1 posts
Joined: Jan. 2022
Offline
Hello,
I am trying to loop through the tiles of my heightfield but I don't understand how it is supposed to work.

I know it's possible because it's in the documentation :

The usual workflow for this node is to animate the Tile number parameter to extract each individual tile, for example in a for-each loop, to save each one to an individual file. This can be useful to work on the tiles in parallel, or to break huge areas into chunks for a game engine.

If someone can help me, it would be very appreciated

Thanks for any help in advance !
User Avatar
Member
4991 posts
Joined: Feb. 2012
Online
Hi,

You can reference the for loop iteration inside the Tile Number parameter like this:

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
7 posts
Joined: Oct. 2015
Offline
animatrix_
Hi,

You can reference the for loop iteration inside the Tile Number parameter like this:


Hi animatrix_,
Thanks for showing an example of the loop iteration. I was wondering how did you display all the bounding boxes being assigned to all tiles? I was only able to get one bounding box visible while using the $F expression for the Tile Split node's Tile Number parameter.
User Avatar
Member
4991 posts
Joined: Feb. 2012
Online
WaveRacer27
animatrix_
Hi,

You can reference the for loop iteration inside the Tile Number parameter like this:


Hi animatrix_,
Thanks for showing an example of the loop iteration. I was wondering how did you display all the bounding boxes being assigned to all tiles? I was only able to get one bounding box visible while using the $F expression for the Tile Split node's Tile Number parameter.

Hi,

Inside the for loop I access the iteration attribute from the meta node and merge each of them together.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
  • Quick Links