How to vary each piece in for-loop (mountain SOP)?

   1690   1   0
User Avatar
Member
1 posts
Joined: Oct. 2023
Offline
Am new to Houdini. I put points from a point cloud into a for-loop, where I'm turning each point into geometry using vdbfromparticles and convert(to polygons). My goal is to use the mountain SOP to transform each piece individually then merge them together in the end, but for some reason whenever I look at the end block all of the pieces look the same. Is there a way to fix this/even just rotate each individual object? I'm also creating a new attribute (which fills the geo with red) in the loop, but when new geo is created, it is already red.

Any help/ideas are appreciated. Thanks

Attachments:
Screenshot 2023-10-22 125424.png (2.7 MB)

User Avatar
Member
2658 posts
Joined: June 2008
Offline
You probably need to create metadata node inside your loop. Then you can use an hScript detail() expression to fetch the iteration value into one of the offset fields of the mountain node. This should cause each iteration to produce a slightly different noise pattern. It's not really a seed, so you may need to multiply the value by a large number to "offset" the noise in space to see a noticeable effect.

The code might look like this in the offset parameter...
detail("../foreach_metanode_name","iteration") * 801
Edited by Enivob - Oct. 23, 2023 15:08:27
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
  • Quick Links