検索 - User list
Full Version: Heightfield tile split with for loop
Root » Houdini Indie and Apprentice » Heightfield tile split with for loop
keberos
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 !
animatrix_
Hi,

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

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.
animatrix_
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.
rtmzzi
animatrix_
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.
Hi, Beginner User here, also my first post

Did you hook the the iteraction like this? I set my for each iteraction (by count), then in iteractions parameter I multiplied the with ch(../tileheightfieldx) * ch(../tileheightfieldy), is this the good approach?
animatrix_
Hi,

Yes that's the right way.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB