Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
hellonico
hellonico's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Android with light
[4 Replies]
02-Jun-2012 02:50 AM
Forum:
Android Processing
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();
}
====
«Prev
Next »
Moderate user : hellonico
Forum