I’m playing around with overlaying two images in 3D space using P3D and tint(). When I bring the opacity of the front image down instead of seeing the image behind I get a black box. (see images below). I trying to create a composite with multiple images over each other. Is there an easier way to do this? Thanks in advance.
void setup() {
size(2160,1436,P3D);
frameRate(30);
noStroke();
smooth();
}
//Picture object display function where tint() is called.
void display(){
pushMatrix();
translate(0,0,offSet);
float xPos = map(imgSize,1,2,0,-width/2);
float yPos = map(imgSize,1,2,0,-height/2);
tint(255,imgOpacity);
image(img,xPos,yPos,img.width*imgSize,img.height*imgSize);
popMatrix();
}