import processing.core.*;
import processing.opengl.*;
public class testingOpenGL extends PApplet {
//private static final long serialVersionUID = 1L;
float a;
public void setup() {
size(800, 600, OPENGL);
fill(0, 153);
noStroke();
}
public void draw() {
background(255);
translate((width/2), (height/2));
rotateX(a);
rotateY(a*2);
rect(-200, -200, 400, 400);
rotateX(PI/2);
rect(-200, -200, 400, 400);
a += 0.01;
}
}
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: javax/media/opengl/glu/GLUtessellatorCallback
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at processing.core.PApplet.makeGraphics(PApplet.java:1322)
at processing.core.PApplet.size(PApplet.java:1149)
at processing.core.PApplet.size(PApplet.java:1109)
at testingOpenGL.setup(testingOpenGL.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.glu.GLUtessellatorCallback
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 11 more
import processing.video.*;
import processing.core.*;
public class QTDisplay extends PApplet {
Movie myMovie;
public void setup() {
size(720,576, P2D);
frameRate(60);
background(0);
myMovie = new Movie(this, "vid1.mov");
myMovie.read();
myMovie.loop();
}
public void draw() {
image(myMovie,0,0, width, height);
//println(frameCount);
tint(255, 20);
}
// Called every time a new frame is available to read
void movieEvent(Movie myMovie) {
myMovie.read();
}
}