printMatrix in A3D mode
in
Android Processing
•
2 years ago
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?
1