What is equivalent noise of turbulence noise in VEX?

   2475   2   0
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hello;

Is there any noise function exactly same as turbluance noise in VEX (with fraquency adjustment parameter)?


Thanks.
Masoud Saadatmand (MSDVFX)
User Avatar
Member
8551 posts
Joined: July 2007
Online
it depends on noise type, you can check the code produced by the attribvop (RMB/VEX_VOP Options/View VEX Code)

so for example for Aligator noise you can use:
vector freq = {2,2,2};
vector off = {0,0,0};
float amp = 3;
float rough = 0.5;
float atten = 1;
int turb = 5;


// float noise
// v@Cd = amp*anoise(v@P*freq - off, turb, rough, atten);

// vector noise
v@Cd = anoise(v@P*freq - off, turb, rough, atten);
v@Cd *= amp;

for Simplex noise:
#include <voplib.h>
vector freq = {2,2,2};
vector off = {0,0,0};
float amp = 3;
float rough = 0.5;
float atten = 1;
int turb = 5;

// float noise
// v@Cd = vop_simplexNoiseVF(v@P*freq - off, turb, amp, rough, atten);

// vector noise
v@Cd = vop_simplexNoiseVV(v@P*freq - off, turb, amp, rough, atten);


etc…
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Thank you very much.
Masoud Saadatmand (MSDVFX)
  • Quick Links