Hi,
I'm experiencing a problem with using the Heightfield Tile Split node to separate a heightfield into multiple tiles (4 x 4) to use frame-padded values (1001, 1002, 1003, so on and so forth) rather than the Tile Number parameter starting from the value of 0. I attempted to specify the frame-padded numbers directly into the Tile Number parameter box, but it doesn't resolve the issue and it assigns the values to the incorrect tiles. How would the Tile Number values be re-assigned to use frame-padded values and be read from top-left to bottom-right, rather than from bottom-left to top-right before it loops?
The tiled heightmaps were generated from Gaea 2 which its tiled build exporter had processed tiles from top-left to bottom-right. This is the main reason why I'm aiming to alter the Heightfield Tile Split node's Tile Number ordering. I've included an example of how the Tile Number values affect the existing split tiles.
Is there also an example that shows a for-each loop setup with the modified tile number parameter that uses the frame-padded numbered ordering method?
Heightfield Tile Split - Frame-Padded Numbered Order?
726 1 1-
- WaveRacer27
- Member
- 7 posts
- Joined: Oct. 2015
- Offline
-
- WaveRacer27
- Member
- 7 posts
- Joined: Oct. 2015
- Offline
Update:
I wrote an expression for the Heightfield Tile Split node's Tile Number parameter, which also required to create two integer values to get the ordering of the tiles to be read from top-left corner to bottom-right corner, as well as to the specific frame range (1001-1016). I also added an additional parameter to display the active frame number of the timeline.
Tile Number expression:
(($F - 1001) % int(ch("Tile_X")))
+ ((int(ch("Tile_X")) - 1 - int(($F - 1001) / int(ch("Tile_X")))) * int(ch("Tile_X")))
Tile Display Number:
$F
I recently posted a separate topic, but it covers what I did to achieve the result I was aiming for in this topic too:
https://www.sidefx.com/forum/topic/100073/ [www.sidefx.com]
I wrote an expression for the Heightfield Tile Split node's Tile Number parameter, which also required to create two integer values to get the ordering of the tiles to be read from top-left corner to bottom-right corner, as well as to the specific frame range (1001-1016). I also added an additional parameter to display the active frame number of the timeline.
Tile Number expression:
(($F - 1001) % int(ch("Tile_X")))
+ ((int(ch("Tile_X")) - 1 - int(($F - 1001) / int(ch("Tile_X")))) * int(ch("Tile_X")))
Tile Display Number:
$F
I recently posted a separate topic, but it covers what I did to achieve the result I was aiming for in this topic too:
https://www.sidefx.com/forum/topic/100073/ [www.sidefx.com]
Edited by WaveRacer27 - March 9, 2025 07:56:01
-
- Quick Links
