OpenGL Issue

edited May 2016 in Using Processing

Hi, I have a problem with the 3D graphichs. If I run this sketch:

void setup()
{
  size(100,100,P3D);

}

void draw()
{

}

Processing does not show anything and I get this error:

OpenGL error 1285 at bot beginDraw(): out of memory OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation

I am working with Processing 2.2.1 - winXp 32bit sys - GCard NVida GeForce Go 7400 with the latest updated driver.

How can I fix this?

ps 1.5.1 does not work on my machine anymore, it does not even start (Launch4j "An error occurred while starting the application").

many thanks!

Tagged:

Answers

  • edited June 2014

    ...and if I try running it in Eclipse i get:

    java.lang.NoClassDefFoundError: javax/media/opengl/GLEventListener
        at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:535)
        at processing.opengl.PGraphics3D.<init>(PGraphics3D.java:37)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at processing.core.PApplet.makeGraphics(PApplet.java:1839)
        at processing.core.PApplet.size(PApplet.java:1691)
        at processing.core.PApplet.size(PApplet.java:1662)
        at testtreed.setup(testtreed.java:11)
        at processing.core.PApplet.handleDraw(PApplet.java:2280)
        at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
        at processing.core.PApplet.run(PApplet.java:2176)
        at java.lang.Thread.run(Thread.java:744)
    Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLEventListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 14 more
    Exception in thread "Animation Thread" java.lang.RuntimeException: javax/media/opengl/GLEventListener
        at processing.core.PApplet.makeGraphics(PApplet.java:1864)
        at processing.core.PApplet.size(PApplet.java:1691)
        at processing.core.PApplet.size(PApplet.java:1662)
        at testtreed.setup(testtreed.java:11)
        at processing.core.PApplet.handleDraw(PApplet.java:2280)
        at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
        at processing.core.PApplet.run(PApplet.java:2176)
        at java.lang.Thread.run(Thread.java:744)
    
  • edited June 2014

    Select code and hit Ctrl+K (or use the C button) to format code and stack traces.

    For Eclipse, take a look at http://wiki.processing.org/w/How_I_can_make_a_sketch_with_libraries_in_Eclipse? But I am not sure if result will change from PDE.

  • I can run 2d sketch from eclipse but not 3d. Same in processing.

  • please don't try an empty code, but a longer sketch

    does size(100,100,P3D); and size(500,400,OPENGL); make any difference?

    Did you in processing IDE preferences (ctrl and comma or via menu) increase the memory?

    ;-)

  • I ran the directional ligth example - no change I tryed with both sizes - no change I have increased the memory - no change :( Thanks!

  • In Processing 2, PD3 = OPENGL! :-B

  • @GoToLoop I have heard that too, so are they exactly the same?? If so, why not just get rid of one of them?

  • edited July 2014

    Processing 1 had P3D & OPENGL as unique renderers.
    While in P3D, the 3D was emulated, OPENGL was the real deal.
    For a better transition to Processing 2, they left P3D available, even though it's now the same as OPENGL!

    println(P3D == OPENGL);
    println(isGL());

  • @GoToLoop ok, thanks

    But JAVA2D is still different from P2D, right? Or does P2D = OPENGL?

  • edited July 2014

    JAVA2D is the only renderer that was kept intact from Processing 1!
    Even OPENGL was upgraded for a more updated version!

    Original P2D & P3D renderers were cut off in Processing 2.
    P3D became synonym for OPENGL and P2D is an emulated 2D using OPENGL!

Sign In or Register to comment.