Processing.js / OPENGL/P3D renderer fails to draw image

When using the OPENGL/P3D renderer, I am not able to draw an image or texture (jpg/png). Due to a system upgrade I removed processing and installed the latest version after upgrading. Before the upgrade everything worked. Drawing strokes, fonts or filling shapes still works fine. The sketch works in Java mode but fails to render the image/texture in JavaScript mode in FireFox, Chrome and Chromium. Several images tested. P2D mode works. Images are loaded correctly and WebGL is enabled in all browsers. Processing 2.2.1 with PDE is used to create the web export and results in a Processing.js 1.4.1 script. No script blocker used for localhost, scripts served via PDE dev-server. I am on Xubuntu 14.04 / 64-bit.

Any suggestions how to solve this would be welcome! Thanks in anvance.

Answers

  • edited September 2014

    Processing.js version 1.4.1 is the same 1 when Processing version 1.5.1 reigned!
    If your "JS Mode" apps worked w/ WebGL before, somehow your browsers think your OS can't deliver 3D now!

    For Firefox and derivatives, go to "about:config", and set "webgl.force-enabled" as "true"!
    And check whether "webgl.disabled" is still "false"! 8-X

    For Chromium and derivatives, go to "chrome://settings", click "Show advanced settings...".
    Then search for "System" and mark "Use hardware acceleration when available".
    Also, check "chrome://gpu" out, whether it says "WebGL: Hardware accelerated"! [-O<

    A general advise: Install proprietary graphics drivers since they've got better 3D support in general! :-B

  • installing the proprietary graphics driver solved the problem. thx!

  • I have the very same problem here, but I'm on a Mac. Any ideas on how to install the proprietary graphics driver on Mac?

Sign In or Register to comment.