When processing all drawing operations, such as rect, eclipse, etc., the PGraphics element is executed. You can create two new PGraphic objects using the renderer of your choice, draw them and add them to your main view:
int w = 500; int h = 300; void setup() { size(w, h); leftViewport = createGraphics(w/2, h, P3D); rightViewport = createGraphics(w/2, h, P3D); } void draw(){
source share