Houdini噪波球Houdini Noisy Sphere Tutorial

Houdini噪波球Houdini Noisy Sphere Tutorial

Here is my first Houdini tutorial. I’m sorry, I’m not used to do this kind of thing… as my spoken english isn’t fluent…. but here you are.

Noise Wrangle Code:
http://quentinlengele.com/files/houdini/noise_wrangle.txt
谷歌翻译:
这是我的第一个Houdini教程。对不起,我不习惯做这种事情……因为我说英语不流利……但是你在这里。

Noise Wrangle 代码:

// parameters
vector offset = chv("Offset");
float mult = ch("Multiplier");

// create alligator noise ---
int freq = 2;
int turb = 1;
float rough = 0.5;
float att = 0.651;

vector pos = @P;
pos -= offset; 
vector npos = pos * freq;
float noise = anoise(npos, turb, rough, att);

// create ramp --- 
string rampTypes[] = {};
float rampPositions[] = {}; 
float rampValues[] = {};
int totalSplinePos = 40;

for (int i=0;i<totalSplinePos;i++)
{
    rampTypes[i] = "linear";
    rampPositions[i] = float(i) / float(totalSplinePos);
    rampValues[i] = snoise(i);
}

float rampSpline = spline(rampTypes, noise, rampValues, rampPositions);

// generate disp from Normal*rampSpline and apply multiplier on it
vector disp = (@N * rampSpline) * mult;

// apply disp to pos ---
@P += disp;

说点什么

avatar
  想得到该评论有新回复的通知?  
提醒