Jump to content

Manipulating points with noise (vex)


Recommended Posts

Hey y'all, very new to Houdini here and I feel like i'm missing something obvious. So i'm trying to create a line of points to be later turned into a polyline. I'm not having to much trouble making a straight line, but i'm trying to manipulate the points with noise but it seems to only be changing the position of the points in a linear way. ie, they're only growing farther up, not really 'wandering' in other directions. Any help would be appreciated, thanks!


vector pos;
//vector rand;
vector growthpos = normalize(chv("growthposition"));
int numsteps= chi("numsteps");
vector wander = (noise(pos+1));
float wandermag = chf("wandermag");

    for(int i; i < numsteps; i++){
   pos = growthpos * i;
   pos = pos * (wander * wandermag) ;
   addpoint(geoself(), pos);

Link to comment
Share on other sites

the reason is that you are not updating the pos for your noise function, you simply generate one vector using noise and use for every iteration in the loop, which will always be linear

make sure you sample the noise every iteration using updated pos

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...