thatlookskool Posted January 23, 2019 Share Posted January 23, 2019 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! VEX 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); } Quote Link to comment Share on other sites More sharing options...
thatlookskool Posted January 24, 2019 Author Share Posted January 24, 2019 I figured out that for some reason noise just does not work as expected in a detail wrangle, as soon as I changed to an actual point wrangle it began to work. Anyone else experience this? Quote Link to comment Share on other sites More sharing options...
anim Posted January 25, 2019 Share Posted January 25, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.