Thursday 3 January 2019

Houdini - VEX notes


  • Houdini process vertex the similar way as shader

vector ppos = @P;
@P means current point.
@ means either global variable or attribute.


  • use index to get the input of a node , from left to right 0, 1 , 2


It is the opinput in the function
example :



  • write to the attribute

f@distance = distance; // the attribute is a float
v@flow = displacement; // the attribute is a vector


  • add attribute
V@flow = set(0,0,1);
this will add a vector attribute to the current vertex.

No comments:

Post a Comment