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):
:)
2 Likes
I receive the following error when I follow your directions, @glv.
The SVG file is still blank
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(AnimatorBase.java:634)
[3]: com.jogamp.opengl.util.FPSAnimator.stop(FPSAnimator.java:326)
[4]: processing.opengl.PSurfaceJOGL.stopThread(PSurfaceJOGL.java:691)
[5]: processing.core.PApplet.dispose(PApplet.java:3413)
[6]: processing.core.PApplet.exit(PApplet.java:3378)
[7]: processing.opengl.PSurfaceJOGL$NEWTWindowListener.windowDestroyNotify(PSurfaceJOGL.java:918)
[8]: jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4471)
[9]: jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4399)
[10]: jogamp.newt.WindowImpl.windowDestroyNotify(WindowImpl.java:4766)
Thank you, glv!!! it worked in the newest version of Processing! You rock!!!
1 Like