Blank SVG export

Hi, I’m trying to export the following code output vis processing.js, but the .SVG file is blank white whenever I do so. What am I doing wrong?

Hello @asymmetric,

It works with Processing 4.2 when you use the correct method for 3D Geometry:

I changed stroke(250); to stroke(128); so I could see it on a white or black background.

You will also see another error when you set your mode to texture it.

Some references to Processing.js (no longer actively developed):



I receive the following error when I follow your directions, @glv.

The SVG file is still blank :frowning:

nishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): ++++++ timeout reached ++++++ AppKit Thread
finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): OK false- pollPeriod 10, blocking true → res false, waited 1001/1000 - AppKit Thread

  • com.jogamp.opengl.util.FPSAnimator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 3, fps 0.0], modeBits 1, init’ed true, animThread Thread[main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1,5,main], exclCtxThread false(null)]
    [2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(
    [3]: com.jogamp.opengl.util.FPSAnimator.stop(
    [4]: processing.opengl.PSurfaceJOGL.stopThread(
    [5]: processing.core.PApplet.dispose(
    [6]: processing.core.PApplet.exit(
    [7]: processing.opengl.PSurfaceJOGL$NEWTWindowListener.windowDestroyNotify(
    [8]: jogamp.newt.WindowImpl.consumeWindowEvent(
    [9]: jogamp.newt.WindowImpl.sendWindowEvent(
    [10]: jogamp.newt.WindowImpl.windowDestroyNotify(

Thank you, glv!!! it worked in the newest version of Processing! You rock!!!

1 Like