converting This entagma Vex to VOPS

   2296   1   0
User Avatar
Member
5 posts
Joined: Nov. 2017
Offline
essentially i am trying to figure out vops by having it do this from a vex wrangle code snippet. I am completely stumped on how i would connect this Up. I am extremely amatuer but it doesnt seem that there is a node for a sample direction cone. I take it i need 3 bins vector dir, a float maxa and a vector2 u I am stumped what comes next. any help would be really appreciated i want to learn it so bad. on a side note i am learning vex as well as it does seem easier in the long run but id like to get my head around VOPs as well



vector dir = (1,1,0);
float maxa = radians(5.0);
vector2 u = rand(@Frame + 12345);

vector vel = sample_direction_cone(dir, maxa, u) * {8,8,8};

v@v= vel;
User Avatar
Member
4512 posts
Joined: Feb. 2012
Offline
Hi,

Sample Sphere is the VOP you need. You can view its code via RMB -> Type Properties -> Code tab to see which option calls which VEX function.
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