Android with light
in
Android Processing
•
1 year ago
I am using Processing 2.0a5, and trying to use some 3D lighting on a sketch on android HTC Sense.
The below sketch works fine if I comment out the lights or spotLight methods.
If I try to use any of the lighting methods, the sketch will not run, and no error message is showing up.
Any pointers as to where to start hacking and try to see what's happening behind the scenes ?
====
import processing.opengl.*;
float inc = 0.1;
void setup()
{
noStroke();
size(screenWidth, screenHeight, P3D);
}
void draw()
{
background(0);
// lights();
// spotLight(51, 102, 126, 80, 20, 40, -1, 0, 0, PI/2, 2);
inc +=0.1;
pushMatrix();
translate(width/2, height/2);
rotateX(inc);
rotateY(inc);
box(150);
popMatrix();
}
====
1