Examples with P2D or P3D cause error

edited January 2014 in Using Processing

Tried to run the examples in Basics/Lights. "Could not run the sketch (Target VM failed to initialize)". It outlines the requested window then crashes before it fills it with anything. This only happens with sketches that use P2D or P3D to size a window. Is there a special library required? What is the work around to fix this or how do I troubleshoot it?

version 2.1.1 / W7U 64-bit dual single core P4 processors 3 GHz / 3 GB memory / 82945G Express 256 MB

Answers

  • I guess Processing doesn't like your graphics card, appearing to be low-end. Its OpenGL requirements are quite high! OpenGL sketches are very slow to start (the first time, at least) on my computer.

  • Unfortunately the 945G chipset barely supports the opengl features requited by the P2D and P3D renderers in Processing 2.0. However, I managed to get basic opengl examples to work on a 945G machine by installing the latest drivers from Intel, maybe the downloads in this page are useful:

    http://www.intel.com/p/en_US/support/highlights/graphics/intel945g

    Also, the 945G tends to be better supported on Linux, as there are open source drivers for it that are still being updated.

  • You can try out the old Processing v1.5.1, since it uses an old OPENGL as well! :ar!

  • version 1.5.1 has no problems with P2D and P3D. Thank you GoToLoop.

    Before installing the old version, I did install the Intel drivers for the 945G graphics chipset. A new error "framebuffer objects are not supported by this hardware (or driver)" was reported. Before I install version 2.x again, I will look for a graphics card that supports OpenGL and FBOs.

  • edited January 2014

    If it's a desktop, you can grab any not-too-old GeForce or Radeon as your graphics card.
    Processing v1.5.1 got an "advanced" version w/o bundled Java. So it ends up using the 1 we got installed in our system!
    If you had installed the "default" 1, it's enough to erase/rename the "java" sub-folder to get the same effect! :ar!

    P.S.: Almost forgotten to warn you. The old modes P2D & P3D in Processing 1 doesn't use OpenGL. It's software based instead! >-)

Sign In or Register to comment.