Search - User list
Full Version: VEX Builder: ripples
Root » Houdini Learning Materials » VEX Builder: ripples
Renji_kan
Help please, I just can't understand how the node ripples works.

For example:

-I create a grid
-I create a node attribvop
-in the attribvop: create node ripples
-geometryvopglobal: Poistion connect to - ripples - to geometryvopoutput: Cd. there are no ripples on the grid, just lines are obtained
-Okay, I add node transform and change the x-axis rotation to 90: Ripples appeared on the mesh.
-If I understand correctly, the node ripples:UV accepts a vector as input
-I create a const node, select vector type and set the value of this vector: 90,0,0, as in the previous example
-I connect this node const:vector to the input of the node ripples, but but not on the grid no ripples! (((

What am I doing wrong ?
mestela
Easier to show than to convert to text.

https://www.loom.com/share/308ebd3794c2464e9b187ccaf59811d2 [www.loom.com]
Renji_kan
местела
Easier to show than to convert to text.

https://www.loom.com/share/308ebd3794c2464e9b187ccaf59811d2 [www.loom.com]

Amazing! Thank you very match!

I almost understood

I didn’t understand only one thing: output from "geometryglobal:P" - that vector coordinates of the rotation X,Y,Z. Right ?

If that's right, then why, when I replaced "geometryglobal:P" on node "Const:vector" and set the coordinates in this vector as in position rotate: 90,0,0 - why didn't the ripples appear? After all, when i set transform node rotation coordinates 90,0,0 - ripples appeared.
mestela
P is the position of each point on the grid.

If you feed P in, each point runs it's own little calculation of where it is in relation to the ripple texture, and gets a result.

You entering 90,0,0 is meaningless, it's the same as having a single point at position 90,0,0, and asking what colour the ripple is at that location. It's not a rotation that you're feeding in.
Renji_kan
местела
P is the position of each point on the grid.

In other words, it is an array of vectors.

Now I finally understood.

Thanks again for the explanation!
animatrix_
You can think of it like that. Since VEX is a kernel language, it runs on each point/prim/vertex or detail (serial execution: once for the entire geo).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.