PNG problem
in
Programming Questions
•
2 years ago
Hi, I'm experimenting with PNGs with transparency and was wondering... is it possible that a png image can't be drawn properly "behind" another png image when it is located in the right half of the screen?
here's the main part of my code
- for(int x=0;x<20;x++){
- for(int z=0;z<20;z++){
- for(int y=0;y<20;y++){
- pushMatrix();
- translate(x*dil+(sd),z*dil+(sin(radians(sd2)))*100,y*dil);
- rotate(radians(random(0,360)));
- image(a,0,0,30,30);
- popMatrix();}}}
I tried removing the rotate() & changing the for loops order xyz xzy ... but nothing seems to work.. did I miss something.. or is it just like that..
1