We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Since upgrading from Processing 2 to 3, a sketch that I have been working on for Android that uses P3D has been loading in the third quadrant of the screen only, cutting most of the app out of view. Since my explanation is somewhat hard to understand, here's a visualization to help out.
Let's say that the following is my phone's screen with a coordinate plane drawn on it with the origin being in the center.
In the past, the contents of the app would load properly, but now, the contents of the first quadrant are being pushed in to the third quadrant and the contents of the other three quadrants are not visible, so the app now looks like this.
Here is the code from the draw() function that I believe may be the culprit, but do not know how to modify to resolve the issue:
background(0);
ortho(0, width, 0, height, -100, 100);
camera(width / 2, height / 2, 10, width / 2, height / 2, 0, 0, 0.1, 0);
The code for setting the sketch size in the setup() function is nothing more than 'fullScreen(P3D)'.