Hi Guys, I 'm trying to create a smooth landscape by using “noise” function. I used “rand” is work. I search on the internet, I need to used vector and pointPosition. But I haven’t any ideas.
global proc randomLandscape(float $sizeOfLandscape, int $numSubdivision, float $minHeight, float $maxHeight){
polyPlane -w $sizeOfLandscape -h $sizeOfLandscape -sx $numSubdivision -sy $numSubdivision -ax 0 1 0 -cuv 2 -ch 1;
string $test[] = selectedNodes();
int $va;
int $nvtx[] = polyEvaluate -v $test[0]
;
for ($va = 0; $va < $nvtx[0] ; $va++){
string $vt = $test[0]+".vtx[" + $va + “]”;
select -add $vt;
move -r -y (rand($minHeight,$maxHeight));
“”
}
move 0 0 0;
}
randomLandscape 10 20 -0.2 1.5;