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?