Commit Graph

12866 Commits

Author SHA1 Message Date
gohai
3f344054d0 Update Java to 8u181 processing-0264-3.3.7.2 2018-07-22 09:00:09 -07:00
gohai
86ae3af5ad OpenGL ES: Fix GLSL version number for 1.00 (#5582)
Wikipedia had it wrong: the spec for the OpenGL ES Shading Language Version 1.00 defines the version preprocessor directive as "#version 100", and _not_ "#version 100 es", like version 3.00+ of the language wants it.

This made the Raspberry Pi with the legacy driver unhappy. Thanks @DangusTaargus for reporting.

see https://www.khronos.org/files/opengles_shading_language.pdf
2018-07-22 08:51:40 -07:00
gohai
002f8c9c93 IO: Add a dispose method to PCA9685 example, document pulse widths
Developed together with @OlivierLD
2018-07-22 08:51:18 -07:00
gohai
af017a30e5 IO: Fix pinMode() retry logic
If the file node is not accessible yet, NativeInterface.writeFile() will return -EACCES instead of -EPERM. Thanks @msurguy for reporting this and testing.
2018-07-22 08:51:12 -07:00
gohai
0c45aab967 IO: Make I2C errors more verbose
The error code returned from C seems to have changed from -EIO to -EREMOTEIO during some recent kernel version.
2018-07-22 08:51:04 -07:00
gohai
ffd6f81659 IO: Rename ServoSweep example processing-0264-3.3.7.1 2018-07-01 10:54:45 -07:00
gohai
165ef60c99 IO: Remove the duplicate "duty" argument from the reference for PWM.set() 2018-07-01 10:54:45 -07:00
Olivier LeDiouris
c31a7414ac IO: Add PCA9685 servo/PWM controller example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
Olivier LeDiouris
611175f416 IO: Add TSL2561 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
Olivier LeDiouris
ed8ad617af IO: Add BME280 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
gohai
c026d8e6f2 IO: Add MPR121 capacitive touch example 2018-07-01 10:54:45 -07:00
gohai
def4a9b4db IO: Reorganize OOP examples 2018-07-01 10:54:45 -07:00
gohai
e19fab1b2b IO: Add a 100ms timeout to I2C to allow communication with Arduino
Note this currently does not include the compiled binary for linux-arm64
2018-07-01 10:54:45 -07:00
gohai
0271424988 IO: Fix crash when I2C.read() was called without prior write() 2018-07-01 10:54:45 -07:00
gohai
e68d8feb75 Enable exporting of Windows applications on ARM
Steps to compile ld & windres:
sudo aptitude install mingw-w64
wget https://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.bz2
cd binutils-2.30
./configure --target=i686-w64-mingw32
make -j4 -l4
sudo make install
2018-07-01 10:54:45 -07:00
gohai
df696cb722 Unconditionally disable POLYGON_SMOOTH in restoreGL()
This now matches the logic in setGLSettings(), as suggested by @JakubValtar.
2018-07-01 10:54:45 -07:00
gohai
4f3f197582 ARM Mali: Don't use GL_MULTISAMPLE or GL_POLYGON_SMOOTH on ES
Fixes:
GLDebugEvent[ id 0x32
    type Error
    severity High: dangerous undefined behavior
    source GL API
    msg Error:glEnable::<cap> is not one of the accepted values
    when 1524184964512
    source 3.1 (ES profile, arb, debug, compat[ES2, ES3, ES31], FBO, hardware) - OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e - hash 0x1f928e9]
    [2]: jogamp.opengl.GLDebugMessageHandler$StdErrGLDebugListener.messageSent(GLDebugMessageHandler.java:347)
    [3]: jogamp.opengl.GLDebugMessageHandler.sendMessage(GLDebugMessageHandler.java:332)
    [4]: jogamp.opengl.GLDebugMessageHandler.glDebugMessageARB(GLDebugMessageHandler.java:358)
    [5]: jogamp.opengl.es3.GLES3Impl.dispatch_glEnable1(Native Method)
    [6]: jogamp.opengl.es3.GLES3Impl.glEnable(GLES3Impl.java:734)
    [7]: com.jogamp.opengl.DebugGLES3.glEnable(DebugGLES3.java:2121)
    [8]: processing.opengl.PJOGL.enable(PJOGL.java:1068)
    [9]: processing.opengl.PGraphicsOpenGL.setGLSettings(PGraphicsOpenGL.java:6784)
    [10]: processing.opengl.PGraphicsOpenGL.checkSettings(PGraphicsOpenGL.java:6740)
    [11]: processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1463)
    [12]: processing.core.PApplet.handleDraw(PApplet.java:2388)
    [13]: processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    [14]: jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    [15]: jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    [16]: jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    [17]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    [18]: jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    [19]: com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    [20]: com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    [21]: com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    [22]: com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    [23]: java.util.TimerThread.mainLoop(Timer.java:555)
    [24]: java.util.TimerThread.run(Timer.java:505)
2018-07-01 10:54:45 -07:00
gohai
78cbf012c1 IO: Speed up GPIO.pinMode() 2018-07-01 10:54:45 -07:00
gohai
0b4498e5d6 IO: Clarify SimpleInput example
As suggested by @msurguy
2018-07-01 10:54:45 -07:00
gohai
d613f999c0 IO: Implement Raspbian-only method for setting pull{up,down} resistors
Aarch64 version compiled courtesy of @xranby
2018-07-01 10:54:45 -07:00
Ben Fry
913d9d8c09 update to Java 8u172 2018-07-01 10:54:22 -07:00
gohai
f3a718f294 ARM Mali: Don't assume anisotropic filtering for gl3es3
Fixes:
GLDebugEvent[ id 0xb
    type Error
    severity High: dangerous undefined behavior
    source GL API
    msg Error:glGetFloatv::<pname> is not an accepted value
    when 1524036153380
    source 3.1 (ES profile, arb, debug, compat[ES2, ES3, ES31], FBO, hardware) - OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e - hash 0xc39cf5]
    [2]: jogamp.opengl.GLDebugMessageHandler$StdErrGLDebugListener.messageSent(GLDebugMessageHandler.java:347)
    [3]: jogamp.opengl.GLDebugMessageHandler.sendMessage(GLDebugMessageHandler.java:332)
    [4]: jogamp.opengl.GLDebugMessageHandler.glDebugMessageARB(GLDebugMessageHandler.java:358)
    [5]: jogamp.opengl.es3.GLES3Impl.dispatch_glGetFloatv1(Native Method)
    [6]: jogamp.opengl.es3.GLES3Impl.glGetFloatv(GLES3Impl.java:1157)
    [7]: com.jogamp.opengl.DebugGLES3.glGetFloatv(DebugGLES3.java:3260)
    [8]: processing.opengl.PJOGL.getFloatv(PJOGL.java:1106)
    [9]: processing.opengl.PGraphicsOpenGL.getGLParameters(PGraphicsOpenGL.java:6892)
    [10]: processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1454)
    [11]: processing.core.PApplet.handleDraw(PApplet.java:2388)
    [12]: processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    [13]: jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    [14]: jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    [15]: jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    [16]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    [17]: jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    [18]: com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    [19]: com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    [20]: com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    [21]: com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    [22]: java.util.TimerThread.mainLoop(Timer.java:555)
    [23]: java.util.TimerThread.run(Timer.java:505)
2018-07-01 10:08:19 -07:00
gohai
627ac902b3 ARM Mali: Implement gDrawBuffer for gl3es3
I don't know IntBuffer and OpenGL well enought to say if this will leak memory or similar.
2018-07-01 10:08:06 -07:00
gohai
a9a2928082 ARM Mali: Implement glBlitFramebuffer for gl3es3
Fixes:
java.lang.RuntimeException: GL function glBlitFramebuffer() is not available on this hardware (or driver) Read <a href="http://wiki.processing.org/w/OpenGL_Issues" target="_blank" rel="nofollow">http://wiki.processing.org/w/OpenGL_Issues</a> for help.
    at processing.opengl.PJOGL.blitFramebuffer(PJOGL.java:1939)
    at processing.opengl.PGL.syncBackTexture(PGL.java:595)
    at processing.opengl.PGL.endRender(PGL.java:769)
    at processing.opengl.PGraphicsOpenGL.endOnscreenDraw(PGraphicsOpenGL.java:6598)
    at processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1483)
    at processing.core.PApplet.handleDraw(PApplet.java:2444)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
2018-07-01 10:08:00 -07:00
gohai
1c0b6e1448 ARM Mali: Specify precision for _fragColor
Fixes:
S0032: no default precision defined for variable '_fragColor'
2018-07-01 10:07:53 -07:00
gohai
715c1fe473 ARM Mali: Report "es" as part of GLSL versions
Fixes:
P0007: Language version '300' unknown, this compiler only supports up to version '320 es'
2018-07-01 10:07:45 -07:00
gohai
b2ab9fc20a ARM Mali: Implement glReadBuffer for gl3es3
Fixes:
java.lang.RuntimeException: GL function glReadBuffer() is not available on this hardware (or driver) Read <a href="http://wiki.processing.org/w/OpenGL_Issues" target="_blank" rel="nofollow">http://wiki.processing.org/w/OpenGL_Issues</a> for help.
    at processing.opengl.PJOGL.readBuffer(PJOGL.java:1954)
    at processing.opengl.PJOGL.initFBOLayerES(PJOGL.java:310)
    at processing.opengl.PJOGL.initFBOLayer(PJOGL.java:301)
    at processing.opengl.PGL.createFBOLayer(PGL.java:988)
    at processing.opengl.PGL.beginRender(PGL.java:727)
    at processing.opengl.PGraphicsOpenGL.beginOnscreenDraw(PGraphicsOpenGL.java:6576)
    at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1459)
    at processing.core.PApplet.handleDraw(PApplet.java:2388)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
2018-07-01 10:07:39 -07:00
gohai
3a6f62a05c ARM Mali: Implement glRenderbufferStorageMultisample for gl3es3
Fixes:
java.lang.RuntimeException: GL function glRenderbufferStorageMultisample() is not available on this hardware (or driver) Read <a href="http://wiki.processing.org/w/OpenGL_Issues" target="_blank" rel="nofollow">http://wiki.processing.org/w/OpenGL_Issues</a> for help.
    at processing.opengl.PJOGL.renderbufferStorageMultisample(PJOGL.java:1941)
    at processing.opengl.PGL.createFBOLayer(PGL.java:955)
    at processing.opengl.PGL.beginRender(PGL.java:727)
    at processing.opengl.PGraphicsOpenGL.beginOnscreenDraw(PGraphicsOpenGL.java:6577)
    at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1459)
    at processing.core.PApplet.handleDraw(PApplet.java:2388)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
2018-07-01 10:07:32 -07:00
gohai
86f2b79f8d Increase the maximum number of lights to 4 for Mesa vc4
Testing on the latest Raspbian release shows that the open-source Mesa driver can handle 4 lights on all P3D examples without tripping up during register allocation. Still an issue with 8 lights, so leave it at 4 for now, and re-test with 6 next time around.
2018-07-01 10:07:14 -07:00
gohai
f022673e25 Serial: Add support for opening Raspbian-style named ports
Raspbian uses "/dev/serial0" and "/dev/serial1" since a couple of releases, and users might be looking for those. Built from: 4b316077c7
2018-07-01 10:07:08 -07:00
Ben Fry
de7b482694 write release notes for 3.3.7 processing-0264-3.3.7 2018-03-13 21:07:18 -04:00
Ben Fry
ca9262213d add another try/catch for createWriter() call 2018-03-13 20:53:11 -04:00
Ben Fry
5438127cbf reorg a bit, also note fix for #5406 2018-03-13 20:24:52 -04:00
Ben Fry
1987d7ea84 a note about the Table fix 2018-03-13 20:20:51 -04:00
Ben Fry
636c309bb5 fix ArrayIndexOutOfBoundsException in Table.insertRow() (fixes #5406) 2018-03-13 20:15:29 -04:00
Ben Fry
2ac50a99a5 show warning when using blendMode() with PDF (fixes #5105) 2018-03-13 20:13:09 -04:00
Ben Fry
c9b8d89b0b make note of fixed NPE with close button 2018-03-13 20:01:25 -04:00
Ben Fry
308af685d0 Merge pull request #5384 from hazmatsuitor/master
fix NPE when closing sketch window on Mac (#5214)
2018-03-13 19:55:27 -04:00
Ben Fry
e77da8db9f fix rename dialog scaling for high density (fixes #5368) 2018-03-13 19:36:48 -04:00
Ben Fry
d89c3b3595 notes about newlines and temp folders 2018-03-13 14:08:25 -04:00
Ben Fry
60039b6206 include newlines at end of files when saving (fixes #5327) 2018-03-13 13:21:32 -04:00
Ben Fry
532860cd9a erase types and make this if() a little less confusing 2018-03-13 13:08:18 -04:00
Ben Fry
8629c82372 notes about font fix on Windows 2018-03-13 12:38:14 -04:00
Ben Fry
3e495b33a5 do the same thing with less code 2018-03-13 12:37:41 -04:00
Ben Fry
659b637e02 Merge pull request #5436 from JakubValtar/fix-encoding
Output java files in UTF-8 and force compiler to use UTF-8
2018-03-13 12:34:43 -04:00
Jakub Valtar
728cb75494 Output java files in UTF-8 and force compiler to use UTF-8 2018-03-13 15:35:26 +01:00
Ben Fry
104b59e3a8 fix up the todo notes 2018-03-13 07:47:28 -04:00
Ben Fry
4c64e1d5ef add todo notes 2018-03-05 15:55:36 -05:00
Ben Fry
f293c38b72 Merge pull request #5428 from gohai/jogl-fix
Fix 3D on contemporary versions of Linux (fixes #5308)
2018-03-05 15:54:44 -05:00
gohai
acee59918b Fix 3D on contemporary versions of Linux (fixes #5308)
Compiled from https://github.com/gohai/jogl/tree/processing at 0bd5acc.
2018-03-02 11:15:18 -08:00