printMatrix doesn't appear to print the correct values in A3D mode.
The following code:
void draw() {
resetMatrix();
printMatrix();
translate(100, 100);
printMatrix();
}
int sketchWidth() { return 480; }
int sketchHeight() { return 800; }
String sketchRenderer() { return A3D; }
prints correct values in A2D mode:
1.0000 0.0000 0.0000
0.0000 1.0000 0.0000
001.0000 000.0000 100.0000
000.0000 001.0000 100.0000
, but not in A3D mode:
001.0000 -000.0000 000.0000 -240.0000
000.0000 -001.0000 000.0000 400.0000
000.0000 -000.0000 001.0000 -692.8203
000.0000 -000.0000 000.0000 001.0000
001.0000 -000.0000 000.0000 -240.0000
000.0000 -001.0000 000.0000 400.0000
000.0000 -000.0000 001.0000 -692.8203
I'm trying to use printMatrix as an example to get the transformation matrix, and it's not working. Is there a better way to get the matrix in A3D mode?
I'm trying to display points on Android, and I can't get them to display. The following sketch works on standard Processing, but doesn't work on Android:
void setup() {
//size(480, 800, P3D);
}
void draw() {
background(0);
stroke(0, 0, 255, 255);
point(85, 75, 0);
point(30, 75, 0);
}
int sketchWidth() { return 480; }
int sketchHeight() { return 800; }
String sketchRenderer() { return A3D; }
I've tried a range of Z values, thinking that it could be clipping, but to no avail. A line connecting the two points displays with no problem.