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 › error creating offscreen object in GLGraphics lib
Page Index Toggle Pages: 1
error creating offscreen object in GLGraphics lib (Read 473 times)
error creating offscreen object in GLGraphics lib
Aug 17th, 2008, 1:36am
 
Hi.

i decided to try the GLGraphics library, and i'm getting an "IllegalArgumentException: Null target" error every time a GLGraphics offscreen object is created (this happens in the offscreen example as well). if i try to create an "on screen" GLGraphics object it runs fine.

so for example this throws the error:

Code:

import processing.opengl.*;
import codeanticode.glgraphics.*;

GLGraphics g0;

void setup(){
size(500,500, GLConstants.GLGRAPHICS);
g0 = new GLGraphics(500, 500, this, true);//IllegalArgumentException: Null target
//g0 = new GLGraphics(500, 500, this); // will run
//g0 = new GLGrapgics(500, 500, this, false) // will throw the error as well...
}


the other examples work fine.

i'm on a macbook with the intel gmx3100 graphics card running OSX 10.5.4

anyone have an idea why this is happening? and how to fix it?


thanks

Re: error creating offscreen object in GLGraphics
Reply #1 - Aug 17th, 2008, 1:52pm
 
The red link next to the download contains helpful info:

+ This release will be incompatible with other libraries that create
 their own PGraphics objects, such as the current release (0.8.1)
 of Andres Colubri's GLGraphics library. (Though by the time you read
 this, it may be updated.)
Re: error creating offscreen object in GLGraphics
Reply #2 - Aug 17th, 2008, 2:23pm
 
hi.
thanks for the reply. yes i didn't see that. i thought that wouldn't be the problem because on the GLGraphics sourceforge there is a note saying GLGraphics 0.8.144 would be compatible with processing 0.144 without replacing the opengl.jar file.
(even though i'm using processing 1.46, so maybe thats the problem)

*edit - so i tried and it works fine with processing 0.144, it was just me being dumb and using a different version Wink
Re: error creating offscreen object in GLGraphics
Reply #3 - Aug 22nd, 2008, 2:54am
 
Hi,

Use version 0.8.2 of glgraphics on Processing 0148+

(0.8.144 is compatible only with 0144, hehe)

Older versions won't work.

Andres
Page Index Toggle Pages: 1