We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Eclipse and Processings OpenGl library
Page Index Toggle Pages: 1
Eclipse and Processings OpenGl library (Read 883 times)
Eclipse and Processings OpenGl library
Mar 21st, 2007, 2:00pm
 
I'm using Eclipse as environment for my Processing experiments and have problems to use OpenGl in my sketches.

Currently I'm working on "something" that uses Andreas Koeberle’s surface library. Inside Processing OpenGl works like a charm, but I didn't manage to import the library into Eclipse.

Here's a stripped down example:

Code:

import surface.*;

public class surface3d extends processing.core.PApplet {

DoubleCone t;

public void setup(){

size(400,400,P3D);
t=new DoubleCone(g, 20, 20);
background(255);

}

public void draw(){

lights();
float Random_Stroke;

int vResolution = (int) random(10,100);
int hResolution = 100;

t=new DoubleCone(g, vResolution, hResolution);

translate(width/2,height/2);

rotateX(radians(frameCount));
rotateY(radians(frameCount));
rotateZ(radians(frameCount));

t.setScale(width/5);

Random_Stroke = random(1, 2);
strokeWeight(Random_Stroke);

stroke(0,3);

t.drawHorizontalLines();

}
}


and a screen of the external libraries I added.

...

I already tried to import the OpenGl library in several ways, but without luck. Any help is much appreciated.

--

Edit:

Got detailed instructions from a friend - 'll post a brief tutorial later.
Re: Eclipse and Processings OpenGl library
Reply #1 - Mar 21st, 2007, 6:48pm
 
Hi, there is also a long post for this problem:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1114400513;start=
Re: Eclipse and Processings OpenGl library
Reply #2 - Mar 21st, 2007, 7:11pm
 
Thanks for the hint, seems I missed that one while searching the Discourse.

(btw) Really like your SurfaceLib - keep up the great work...
Page Index Toggle Pages: 1