We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
My Nexus 4 screen stays white when I use orientation(landscape) and the OPENGL renderer together. Portrait and OPENGL works fine as well as landscape and the default renderer. any suggestions?
thanks, ralf
my code is:
void setup() {
size(displayWidth, displayHeight,P3D);
orientation(LANDSCAPE);
}
void draw() {
background(0);
stroke(255);
strokeWeight(5);
line(0, 0, width, height);
stroke(0, 255, 0);
line(0, height/2, width, height/2);
}
Answers
I believe that that method of setting the orientation is out of date. Instead, edit the
activity
tag in theAndroidManifest.xml
file to includeandroid:screenOrientation="landscape"
.thanks for the hint. it works now!
Saved my bacon, as well. Thanks!
Thank you calsign, you are definitely right
Thanks! This worked for me. I'm using Processing 2.0.3 and the Android mode that came with it.