I have written my code to split the screen into 4 quadrants to display data from a motion capture. I have a 3D model in the lower right quadrant. When it renders, it applies perspective based on the center of the screen, meaning the model is stretched down and to the right. Is there a way to change where the "center" to render from is?
Here is my code to see that is going on.
import saito.objloader.*;
int num = 100;
int style = 1;
PFont f;
int qWidth, qHeight;
OBJModel model;
float[] acelX = new float[num];
float[] acelY = new float[num];
float[] acelZ = new float[num];
float[] rotX = new float[num];
float[] rotY = new float[num];
float[] rotZ = new float[num];
boolean sketchFullScreen() {
return true;
}
void setup() {
f = createFont("Arial", 36, true);
textFont(f, 24);
model = new OBJModel(this, "objattmpt basin.obj", "relative", TRIANGLES);