Dear All
I tried to research about it but I couldn’t find anything. I have this simple example:
void setup(){
size(600,600, P3D);
}
void draw(){
background(0);
translate(width/2, height/2, 0);
rotateY(radians(mouseX));
rotateX(radians(mouseY));
fill(255,0,0,50);
pushMatrix();
translate(-80, 0,-80);
box(100);
popMatrix();
fill(255,255,0,50);
pushMatrix();
translate(80, 0,80);
box(100);
popMatrix();
fill(255,0,0,50);
pushMatrix();
translate(80, 0,-80);
box(100);
popMatrix();
fill(255,255,0,50);
pushMatrix();
translate(-80, 0,80);
box(100);
popMatrix();
}
My simple question is related with alpha behaviour. If I set all boxes to 50 Alpha isn’t suppose to see all box transparent. They have transparency but in some sideviews it loses completely when I rotate. It also doesn’t present any logic in the way it display the transparency. Look a this screenShot
the left box has transparency and the right one doesn’t .
Could some one help me out to solve this enigma.
Thank in advance