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 › Can't get SurfaceLib to work
Page Index Toggle Pages: 1
Can't get SurfaceLib to work (Read 292 times)
Can't get SurfaceLib to work
May 5th, 2009, 10:29pm
 
Hi guys,

I have spent a few hours now just trying to get a basic example working with SurfaceLib, but no luck yet.

I downloaded the library and put it in my libraries folder. So full path looks like this:
[Sketches folder]/surface/library/surface.jar
It shows up fine in the "Sketch>Import Library..." menu.

I have tried a bunch of different examples but none seem to do anything. I get no errors at all. My canvas just stays blank. I have know idea what I am doing wrong. Does the library work with Processing 1.0.3 Can anyone think of anything I can to to test what is going wrong

The main example I am working with is the Sphere from the docs

Here is the code I am actually using:
Code:
import surface.*;

Sphere s;

void setup(){
 size(600, 600, P3D);
 background(200);
 s = new Sphere(g, 51, 51);
}

void draw(){
 background(255);
 s.setScale(mouseX);
 s.draw();
}

Any guidance would be very much appreciated.
Page Index Toggle Pages: 1