[PD] applying perlin value to each iterated geo

topo bot adam.sanches at gmail.com
Fri Sep 6 06:16:26 CEST 2013


Hi, im generating structures iterating geos in gem and was wondering
how can i apply an value from a perlin noise to each iterated
structure.

In processing i can do this in this way:

for(int i = 0 ; i < 20 ; i ++){
     float perlin = noise( i * noiseScale, j * noiseScale);
     pushMatrix();
     translate(0 + (i * 20) , 0);
     translate( 0, 0 ,   perlin * 30 );
     rotateX( perlin );
     rotateY( perlin );


     box(perlin * 20 + 20);
     popMatrix();


  }




How can i do the same with Gem?
I been trying in the following way but its not working, any idea?

http://www.freeimagehosting.net/newuploads/2rf7o.png



More information about the Pd-list mailing list