Jump to content

onoise on copied lines


logix1390

Recommended Posts

Hello,

I have a bunch of lines copied to points.

I make a ramp based on the curveu then apply the onoise function after I copied the lines

It works fine, just that when i increase my noise really high, it seems like the geometry travels in a particular direction and not truly randomized.

 

I apply this wrangle after i copy the lines

int turb=chi("Turb");
float rough=ch("rough");
float atten= ch("atten");

@P+= onoise(@P,turb,rough,atten)*@Cd.x;

 

I looked up the onoise function in the help files, and i have followed it directly. Maybe I am missing somthing else?

I will attach my file for anyone that wants to take a look

Thank you

 

 

Noise_on_lines.hip

Link to comment
Share on other sites

*@Cd.x is the problem, it converts your 3D noise into 1D noise
you can add an explicit vector casting: *vector(@Cd.x)
// I also added some parameters for: frequency/offset/amplitude 

@P+= vector(onoise(@P*chf("freq")+chv("offset"),chi("turb"),ch("rough"),ch("atten")))*vector(@Cd.x)*chf("amp");


 

Edited by bunker
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.

Guest
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...