blending 2 attribute VOPs together

   3573   3   1
User Avatar
Member
9 posts
Joined: May 2016
Offline
Hi,

I have used the attribute VOP to create 2 separates wave deformers. I would like to blend these 2 together to get the shape that I want. I tried using different attribute nodes but I can't achieve the effect of blending the meshes together. How do I go about doing it?

I have attach my nodes network and the image here. You can clearly see that the meshes are separate, I want to combine the mesh. I tried joining the 2 attribute VOPs one after the other but that only increases its amplitude and nothing else, I want the 2 mesh to join at different position so I get a v shape effect like the png image I show here.

Any help and advice would be appreciated, Thanks!

Eunice

Attachments:
blend_wave.PNG (165.9 KB)
blend_wave_nodes.PNG (31.2 KB)

User Avatar
Member
719 posts
Joined: Sept. 2013
Offline
Couldn´t you merge the grids first and then apply the ocean deformation?
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
9 posts
Joined: May 2016
Offline
Once I combine the grid at the beginning, I think I won't be able to individually shape the waves. I have separate values so that I can get different shapes of the waves. I thought of multiplying the wave matrix together but I'm not sure how to call out the VOP wave position into the attribute wrangle node.
User Avatar
Member
719 posts
Joined: Sept. 2013
Offline
Feed both grids into a wrangle and replace Cd with your attribute.

// fading area
float amount = chf('fading');
vector bbox = relbbox(0, @P).z;
float fade = pow(bbox.z, amount);

// transfer colors
int npt = nearpoint(1, @P, 0.1);
vector clr = point(1, "Cd", npt);
if(npt != -1) @Cd = lerp(@Cd, clr, fade);

Attachments:
attrib_blend.jpg (28.0 KB)
attrib_blend.hipnc (112.8 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links