Hi fry
I'm posting this here because it's related to unreleased rev 91.
I'm trying to dig in through the code to find the bugs related to openGL or at least try to help out with them. But I'm running in to a small problem with importing the OpenGL library.
I got the code through CVS (linCVS). It worked great. I compiled it with no errors at all:
Code:
> ./make.sh
Building processing.core
Building PDE for JDK 1.3
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
Building serial library...
Building net library...
Building OpenGL library...
When I run processing I get no errors neither:
Code:
> ./run.sh
But when I run the Matrix example in Library-OpenGL I get the following error:
Code:
java.lang.RuntimeException: Before using OpenGL, you must first select Import Library > opengl from the Sketch menu.
at processing.core.PApplet.size(PApplet.java:769)
at Temporary_2026_4756.setup(Temporary_2026_4756.java:13)
at processing.core.PApplet.display(PApplet.java:1033)
at processing.core.PGraphics.requestDisplay(PGraphics.java:362)
at processing.core.PApplet.run(PApplet.java:934)
at java.lang.Thread.run(Unknown Source)
this is the code for the example:
Code:
// Matrix
// by Mixel
// Simple example utilizing the OpenGL Library for Processing.
// Created 15 April 2005
import processing.opengl.*;
void setup()
{
size(800, 600, OPENGL);
noStroke();
fill(0, 102, 153, 26);
}
void draw()
{
float x = mouseX - width/2;
background(255);
translate(width/2, height/2);
rotateZ(radians(mouseY/10));
for(int i=-height/2; i<height/2; i+=10) {
for(int j=-width/2; j<width/2; j+=10) {
beginShape(QUADS);
vertex(x+j, i, 0);
vertex(x+j, i+5, 0);
vertex(j-x, i+5, -400);
vertex(j-x, i, -400);
endShape();
}
}
}
The same example works great under rev 90 on my same computer (Linux on PC).
I know this rev is not supported since its unreleased. But I was wondering if you could help me get through this one. Maybe I could then help localizing the bugs in openGL (another pair of eyes never hurts).