# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=33

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 34

---

## [Time displacement / slit-scan webcam looping issue](https://discourse.processing.org/t/time-displacement-slit-scan-webcam-looping-issue/42681)

<div class="topic-metadata">

**Author:** [@codecduck](https://discourse.processing.org/u/codecduck)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 12:03am UTC](https://discourse.processing.org/t/time-displacement-slit-scan-webcam-looping-issue/42681 "2023-08-31T00:03:26Z")

</div>

I have this effect on the webcam that is creating a delayed portion that grows from bottom to top. I’m pretty beginner so I don’t know where to start. I’ve been trying to get it to just continually have the slit-scan eff…

---

## [P3D not working anymore](https://discourse.processing.org/t/p3d-not-working-anymore/42678)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 10:08am UTC](https://discourse.processing.org/t/p3d-not-working-anymore/42678 "2023-08-30T10:08:50Z")

</div>

The P3D renderer is acting really strangely all of a sudden, probably since I updated Processing to its latest version (4.3)? I’m running it on a Mac Intel, OS Ventura 13.4.1. Anyone experiencing problems as well?

---

## [MPU6050 accelerometer double integration doesn't work](https://discourse.processing.org/t/mpu6050-accelerometer-double-integration-doesnt-work/42654)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 8:55pm UTC](https://discourse.processing.org/t/mpu6050-accelerometer-double-integration-doesnt-work/42654 "2023-08-28T20:55:25Z")

</div>

Hi everyone! Is there anyone here who has experience in integrating the MPU6050 twice to get the displacement? I have worked on it for months, but without any result. After reading in different forums that a very small …

---

## [Exported processing executable doesn't start from command line](https://discourse.processing.org/t/exported-processing-executable-doesnt-start-from-command-line/42659)

<div class="topic-metadata">

**Author:** [@f.damien12](https://discourse.processing.org/u/f.damien12)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 7:54pm UTC](https://discourse.processing.org/t/exported-processing-executable-doesnt-start-from-command-line/42659 "2023-08-28T19:54:44Z")

</div>

Hello I made a tool with processing I want to start from Windows command line. It works when I set the current working directory to the .exe location, and then start it by typing its name: cd C:\\path\\to\\executable\\ fi…

---

## [Renderer faster than JavaFX 2D](https://discourse.processing.org/t/renderer-faster-than-javafx-2d/42648)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 21\
**Last updated:** [August 26, 2023, 4:54pm UTC](https://discourse.processing.org/t/renderer-faster-than-javafx-2d/42648 "2023-08-26T16:54:55Z")

</div>

Hi everyone! Is there any renderer that is faster than JavaFX 2D? Thanks in advance, MrImskiy

---

## [Tried to remove the top bar](https://discourse.processing.org/t/tried-to-remove-the-top-bar/42647)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 8:48am UTC](https://discourse.processing.org/t/tried-to-remove-the-top-bar/42647 "2023-08-24T08:48:05Z")

</div>

I tried to remove the top bar with chatGpt but sadly i cant get it to work and i cant find anything in the forums! import processing.javafx.\*; import javax.swing.JFrame; import processing.core.PApplet; import processing…

---

## [Is there an official Processing Discord?](https://discourse.processing.org/t/is-there-an-official-processing-discord/42631)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 4\
**Last updated:** [August 24, 2023, 8:45am UTC](https://discourse.processing.org/t/is-there-an-official-processing-discord/42631 "2023-08-24T08:45:12Z")

</div>

Is there a processing discord server?

---

## [Calculating elapsed microseconds](https://discourse.processing.org/t/calculating-elapsed-microseconds/42646)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 3:54am UTC](https://discourse.processing.org/t/calculating-elapsed-microseconds/42646 "2023-08-24T03:54:12Z")

</div>

Hi there! I am measuring the elapsed time of a code in a for-loop in draw(): void draw(){ for(byte i = 0; i \< 10; i++){ time\_prev = millis(); //code time\_now = millis(); deltaT = time\_now - …

---

## [Did I find a bug?](https://discourse.processing.org/t/did-i-find-a-bug/42645)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 9:46pm UTC](https://discourse.processing.org/t/did-i-find-a-bug/42645 "2023-08-23T21:46:45Z")

</div>

I was trying to work my way around the maximum size of an array (2147483647) when I came across this anomaly : void setup() { long i = 999\_999\_967L; println(int(i)); } results in : 1000000000 The value of the long…

---

## [Help with Minim volume & other features](https://discourse.processing.org/t/help-with-minim-volume-other-features/42636)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 11:36pm UTC](https://discourse.processing.org/t/help-with-minim-volume-other-features/42636 "2023-08-22T23:36:33Z")

</div>

When i try to change the volume it says “Volume is not supported.” and i want to change the speed of the song! Is that possible?

---

## [Tuio framework and movie with alpha channel](https://discourse.processing.org/t/tuio-framework-and-movie-with-alpha-channel/42644)

<div class="topic-metadata">

**Author:** [@mrblade](https://discourse.processing.org/u/mrblade)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 2:42pm UTC](https://discourse.processing.org/t/tuio-framework-and-movie-with-alpha-channel/42644 "2023-08-22T14:42:18Z")

</div>

hi, i am new in this world. i use Tuio library. when a marker goes out then an effect starts in a video loop. A video flip and an addition of a mask with alpha channel. But this is not seen. I think it’s a problem on: …

---

## [Selecting a serial port using a configuration file; a quick tip](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 1:23pm UTC](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642 "2023-08-22T13:23:51Z")

</div>

I often see Processing code (for communication with e.g. Arduino) where the port is hard-coded. E.g. myPort = new Serial(this, Serial.list()\[0\], 9600); One thing that people don’t seem to realise is that the second pa…

---

## [Open Custom File with Processing?](https://discourse.processing.org/t/open-custom-file-with-processing/42637)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 10:54pm UTC](https://discourse.processing.org/t/open-custom-file-with-processing/42637 "2023-08-21T22:54:00Z")

</div>

Can i make a file called “file.banana” and programm processing to show it when choosing this dialog? and is it available on linux and windows? I want a way to klick the file, select open with BananaFileViewer or someth…

---

## [Triangular Pong for three players \[game\]](https://discourse.processing.org/t/triangular-pong-for-three-players-game/42548)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 25\
**Last updated:** [August 21, 2023, 4:42pm UTC](https://discourse.processing.org/t/triangular-pong-for-three-players-game/42548 "2023-08-21T16:42:48Z")

</div>

For no good reason, I want to make a triangular version of Pong so three walls, three paddles, one ball bouncing from the three paddles or going past a paddle and scoring. Should be fairly simple but enjoyably challengin…

---

## [The field PApplet.keyEvent is deprecated?](https://discourse.processing.org/t/the-field-papplet-keyevent-is-deprecated/42603)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 3:44pm UTC](https://discourse.processing.org/t/the-field-papplet-keyevent-is-deprecated/42603 "2023-08-21T15:44:01Z")

</div>

Does anybody know what this means?

---

## [Linux: Processing exits when creating a video.Movie if using P2D or P3D](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627)

<div class="topic-metadata">

**Author:** [@marton](https://discourse.processing.org/u/marton)\
**Replies:** 5\
**Last updated:** [August 21, 2023, 11:13am UTC](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627 "2023-08-21T11:13:43Z")

</div>

Hi, I’m trying to play a video using the official video library on Linux (openSUSE tumbleweed). I noticed the following: if I try to run a sketch with P2D or P3D, doing new Movie(this, ...) causes Processing to exit, se…

---

## [Trying to get a BLDC w/ ESC to work with my PS4 controller](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 7\
**Last updated:** [August 18, 2023, 9:46pm UTC](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612 "2023-08-18T21:46:43Z")

</div>

This is my first post here, im running into trouble with my code and im not sure where im going wrong. I want to control a bldc motor with my ps4 controller, the dc motor is a Firma Spektrum 6000kv BLDC. When I run an ar…

---

## [Most performant and efficient way of saving data to a text file](https://discourse.processing.org/t/most-performant-and-efficient-way-of-saving-data-to-a-text-file/42605)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 11\
**Last updated:** [August 18, 2023, 5:32pm UTC](https://discourse.processing.org/t/most-performant-and-efficient-way-of-saving-data-to-a-text-file/42605 "2023-08-18T17:32:00Z")

</div>

Hi all! I have written this small piece of code to save data to a textfile: int time\_prev; int time\_now; int dt; StringBuilder save2Doc\_StringBuilder = new StringBuilder(); String\[\] save2Doc\_String = new String\[10000\]…

---

## [Issue with every Contributed Libraries! Other ERROR and (Target VM failed to initialize)](https://discourse.processing.org/t/issue-with-every-contributed-libraries-other-error-and-target-vm-failed-to-initialize/42610)

<div class="topic-metadata">

**Author:** [@teemee](https://discourse.processing.org/u/teemee)\
**Replies:** 6\
**Last updated:** [August 18, 2023, 8:52am UTC](https://discourse.processing.org/t/issue-with-every-contributed-libraries-other-error-and-target-vm-failed-to-initialize/42610 "2023-08-18T08:52:04Z")

</div>

Today I have discovered that my Processing not working so well with my Windows 10 on every sound libraries and I still can’t get gif animation to play. At first, I thought I only have an issue to be solved with …(Targe…

---

## [Processing 4.3 Display GIF Image?](https://discourse.processing.org/t/processing-4-3-display-gif-image/42581)

<div class="topic-metadata">

**Author:** [@teemee](https://discourse.processing.org/u/teemee)\
**Replies:** 9\
**Last updated:** [August 18, 2023, 7:02am UTC](https://discourse.processing.org/t/processing-4-3-display-gif-image/42581 "2023-08-18T07:02:34Z")

</div>

I’d like to display a simple gif image. The PDE 3.x.x works with the library “gifAnimation”, as I recalled I have done it. But, PDE 4 does not work with the lib. Maybe, I just dont know how to make it work. So is there …

---

## [Webview in Processing](https://discourse.processing.org/t/webview-in-processing/42599)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 5\
**Last updated:** [August 17, 2023, 5:05pm UTC](https://discourse.processing.org/t/webview-in-processing/42599 "2023-08-17T17:05:03Z")

</div>

Is there a way to get a sketch to show the content of a webpage and not just the raw html code? I heard of a way to import javafx webview into the editor, but it requires recompiling the editor! Any help & advice will …

---

## [Program can press key](https://discourse.processing.org/t/program-can-press-key/42604)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 2\
**Last updated:** [August 17, 2023, 2:39pm UTC](https://discourse.processing.org/t/program-can-press-key/42604 "2023-08-17T14:39:16Z")

</div>

I’m playing a game and had the idea it be fun to make an ai play it, but how do I get it where the ai i create can make the computer think it pressed a key. I dont wanna place the ai in the game or remake the game. I wan…

---

## [\[SOLVED\] I get a NullPointerException when switching from the default rendering technique to JavaFX 2D](https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 8\
**Last updated:** [August 17, 2023, 12:12pm UTC](https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601 "2023-08-17T12:12:52Z")

</div>

Hi everyone, I have a huge code of about 4000 lines, which works fine, except for the rendering speed. For this reason, I decided to switch from the default rendering technique to JavaFX 2D. I downloaded the library and…

---

## [Can the program be automatically updated like 'OTA'?](https://discourse.processing.org/t/can-the-program-be-automatically-updated-like-ota/42219)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [August 16, 2023, 10:05pm UTC](https://discourse.processing.org/t/can-the-program-be-automatically-updated-like-ota/42219 "2023-08-16T22:05:28Z")

</div>

Can the program be automatically updated like ‘OTA’? OTA(Over-the-air programming) Does anyone have a good method or experience? Like the picture, is there any way to do it? I wonder.

---

## [I dont know why it keep saying NullPointerException](https://discourse.processing.org/t/i-dont-know-why-it-keep-saying-nullpointerexception/30134)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 5\
**Last updated:** [May 19, 2021, 11:52am UTC](https://discourse.processing.org/t/i-dont-know-why-it-keep-saying-nullpointerexception/30134 "2021-05-19T11:52:00Z")

</div>

PVector A, B, C, D; float s = 100; int binary = 0; Boom c; void setup() { size(640, 640); background(255); drawrect(); c = new Boom(A,B,C,D); } void draw() { c.testmousepos(); c. getEpos () ; if (m…

---

## [pixelDensity(2) in P2D/P3D in IntelliJ doesn't work](https://discourse.processing.org/t/pixeldensity-2-in-p2d-p3d-in-intellij-doesnt-work/42560)

<div class="topic-metadata">

**Author:** [@null0](https://discourse.processing.org/u/null0)\
**Replies:** 0\
**Last updated:** [August 5, 2023, 7:45pm UTC](https://discourse.processing.org/t/pixeldensity-2-in-p2d-p3d-in-intellij-doesnt-work/42560 "2023-08-05T19:45:33Z")

</div>

Like I’ve posted on https://github.com/processing/processing4/issues/763 I’m having troubles launching a processing sketch outside of the IDE with a high DPI. I’ve tried looking into the processing app’s code to see wha…

---

## [Console buffer length](https://discourse.processing.org/t/console-buffer-length/42308)

<div class="topic-metadata">

**Author:** [@hareti](https://discourse.processing.org/u/hareti)\
**Replies:** 3\
**Last updated:** [August 16, 2023, 11:43am UTC](https://discourse.processing.org/t/console-buffer-length/42308 "2023-08-16T11:43:11Z")

</div>

Hi, how do you increase the length of the console buffer ? Mine only stores about 500 lines and then they are lost. Can’t see anything in settings.

---

## [Issues when rendering transparent images in 3D](https://discourse.processing.org/t/issues-when-rendering-transparent-images-in-3d/42593)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 1\
**Last updated:** [August 15, 2023, 3:25pm UTC](https://discourse.processing.org/t/issues-when-rendering-transparent-images-in-3d/42593 "2023-08-15T15:25:45Z")

</div>

Hello all! I’m having some issues with my program. I’m trying to render multiple 3d objects (“trees”) in this situation, but even if they’re transparent sometimes they won’t be. There’s a transparent border that displays…

---

## [PGraphics in Eclipse not displaying shapes](https://discourse.processing.org/t/pgraphics-in-eclipse-not-displaying-shapes/41894)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 4\
**Last updated:** [August 15, 2023, 5:00am UTC](https://discourse.processing.org/t/pgraphics-in-eclipse-not-displaying-shapes/41894 "2023-08-15T05:00:37Z")

</div>

I’m working on a project that’s using a PGraphics buffer to display to the screen. Whenever I attempt to draw a shape, PGraphics.ellipse(5, 5, 25 ,25);, or some other shape call, it won’t display at all. I’ve tried to …

---

## [Is it possible to use the Java feature "record class" in Processing?](https://discourse.processing.org/t/is-it-possible-to-use-the-java-feature-record-class-in-processing/42591)

<div class="topic-metadata">

**Author:** [@nobkz](https://discourse.processing.org/u/nobkz)\
**Replies:** 3\
**Last updated:** [August 15, 2023, 4:27am UTC](https://discourse.processing.org/t/is-it-possible-to-use-the-java-feature-record-class-in-processing/42591 "2023-08-15T04:27:20Z")

</div>

I want to record class in Processing. (https://docs.oracle.com/en/java/javase/17/language/records.html#GUID-6699E26F-4A9B-4393-A08B-1E47D4B2D263) for example record Foo(double length, double width) { } But Processing…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=32)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=34)
