Multiple Layers

   569   1   2
User Avatar
Member
11 posts
Joined: July 2024
Offline
I want to model erosion using VEX on heightfields. Part of my requirement is to have lakes where the water level is above the underlying ground level. I suspect I need to have two heightfields or to have an extra layer in my heightfield.

When I have two heightfields, either merged or fed as two inputs to my VEX, I can't see how to addres the second one. Any attempt to change height only impacts the first.

Can someone recmmend an approach?

Thanks
Cliff
User Avatar
Member
538 posts
Joined: Nov. 2016
Offline
You can access the second input using
volumesample(1, 'height', v@P)
but I don't believe there's any way to modify it. You can do a second wrangle with it as the first input, or rename it to height2 and merge it to your first heightfield to modify both at once.
  • Quick Links