Basically i am trying to write a loop which takes the value between 0 and 100 of a slider and draws an image that number of times in random positions between defined values.
SOoooo.
sliderValue = 50;
void draw(){
people();
}
void people(){
beginShape();
rotateY(radians(90));
scale(1.1,1.1,1.1);
for(int i=(sliderValue);i<100;i++) {
translate(random(-2,-5),0.4,random(1,10));
texture(lad);
vertex(-1, -1, 1, 0, 0);
vertex( 1, -1, 1, 1, 0);
vertex( 1, 1, 1, 1, 1);
vertex(-1, 1, 1, 0, 1);
endShape();
}
Something like that? Although at the moment that just constantly draws the image in random positions without the slider having any impact.....
Total newbie question! I currently have a small, basic 3d environment and am looking to add rain into it basically. I have tried tweaking every rain example i can find but with no luck! All of them seem to be 2d only :/.
I have toyed with the idea of overlaying a masked video of rain but i think that would look terrible...there must be a way!