VEX Builder: ripples

   2413   5   1
User Avatar
Member
23 posts
Joined: June 2021
Offline
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 ?
Edited by Renji_kan - June 9, 2021 11:54:42

Attachments:
1.jpg (680.5 KB)

User Avatar
Member
1737 posts
Joined: May 2006
Offline
Easier to show than to convert to text.

https://www.loom.com/share/308ebd3794c2464e9b187ccaf59811d2 [www.loom.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
23 posts
Joined: June 2021
Offline
местела
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.
Edited by Renji_kan - June 10, 2021 02:48:37
User Avatar
Member
1737 posts
Joined: May 2006
Offline
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.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
23 posts
Joined: June 2021
Offline
местела
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!
User Avatar
Member
4513 posts
Joined: Feb. 2012
Online
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).
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links