# Processing

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

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

**Page:** 21

---

## [How to call OpenGL functions in P3D](https://discourse.processing.org/t/how-to-call-opengl-functions-in-p3d/44552)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 1\
**Last updated:** [June 8, 2024, 5:39pm UTC](https://discourse.processing.org/t/how-to-call-opengl-functions-in-p3d/44552 "2024-06-08T17:39:40Z")

</div>

I know processing P3d is built on top of joml… So, how can I call joml’s openGL functions in processing? I wanted to do some advanced culling tecniques like occlusion culling, and to do that, I need access opengl calls…

---

## [G4P - Secondary Window Buttons Not Always Reliable](https://discourse.processing.org/t/g4p-secondary-window-buttons-not-always-reliable/44518)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 19\
**Last updated:** [June 8, 2024, 12:50pm UTC](https://discourse.processing.org/t/g4p-secondary-window-buttons-not-always-reliable/44518 "2024-06-08T12:50:52Z")

</div>

Hi, I’m using the fantastic G4P library, and I’ve made some secondary windows with buttons on them. I’m using the technique of creating them null, and then showing/hiding them with other buttons. I’m finding that somet…

---

## [How to disable VSync in Processing P3D](https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 3:51pm UTC](https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547 "2024-06-07T15:51:17Z")

</div>

Im not sure why this has to be so complicated but I cant find a way to disable vsync in processing. Specifically p3d. Any help?

---

## [Custom halftone grids for images using multiple .svg files \[Solved\]](https://discourse.processing.org/t/custom-halftone-grids-for-images-using-multiple-svg-files-solved/44540)

<div class="topic-metadata">

**Author:** [@devski](https://discourse.processing.org/u/devski)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 8:57pm UTC](https://discourse.processing.org/t/custom-halftone-grids-for-images-using-multiple-svg-files-solved/44540 "2024-06-05T20:57:13Z")

</div>

Hello, I am new to processing and I would like to use it to generate custom halftone effects using SVG files. I have managed to create something like this so far. For my next step I am trying to figure out how to ma…

---

## [Spaceship Control](https://discourse.processing.org/t/spaceship-control/44531)

<div class="topic-metadata">

**Author:** [@Alam](https://discourse.processing.org/u/Alam)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 6:54pm UTC](https://discourse.processing.org/t/spaceship-control/44531 "2024-06-05T18:54:12Z")

</div>

Hi! I’m creating simple solar system where you can moving around using spaceship. I have problem with camera. When i’m going right or left everythink is fine, but when move my mouse to far on top or down there is a came…

---

## [ControlP5 Events & Callbacks Help Needed](https://discourse.processing.org/t/controlp5-events-callbacks-help-needed/44527)

<div class="topic-metadata">

**Author:** [@thb](https://discourse.processing.org/u/thb)\
**Replies:** 0\
**Last updated:** [June 3, 2024, 5:58am UTC](https://discourse.processing.org/t/controlp5-events-callbacks-help-needed/44527 "2024-06-03T05:58:13Z")

</div>

import controlP5.\*; //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* //\* How to use ControlP5 Events & Callbacks //\* //\* This program shows 4 differnt Contr…

---

## [Using rotateX, rotateY, rotateZ together](https://discourse.processing.org/t/using-rotatex-rotatey-rotatez-together/44523)

<div class="topic-metadata">

**Author:** [@jmwanderer](https://discourse.processing.org/u/jmwanderer)\
**Replies:** 3\
**Last updated:** [June 1, 2024, 11:40pm UTC](https://discourse.processing.org/t/using-rotatex-rotatey-rotatez-together/44523 "2024-06-01T23:40:18Z")

</div>

While working on code to draw orbits around a sphere, I found a surprising (but correct) result using the rotateX, rotateY, and rotateZ functions, and I am interested if this is or can be better explained somewhere to he…

---

## [Export Application Shows Blank Canvas](https://discourse.processing.org/t/export-application-shows-blank-canvas/44508)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 8\
**Last updated:** [May 31, 2024, 9:36pm UTC](https://discourse.processing.org/t/export-application-shows-blank-canvas/44508 "2024-05-31T21:36:42Z")

</div>

Hi, I’ve got an app I’ve made over a few months that works fine when launched from Processing, but exporting to Apple Silicone app fails. I’ve googled this a lot but nothing I’ve found has solved this. Here’s what happ…

---

## [G4P Dialog Box Question](https://discourse.processing.org/t/g4p-dialog-box-question/44488)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 6\
**Last updated:** [May 28, 2024, 1:42pm UTC](https://discourse.processing.org/t/g4p-dialog-box-question/44488 "2024-05-28T13:42:30Z")

</div>

Hi Peter, I was wondering if it is possible to change the icons in the G4P dialog boxes? I’d like to use my own instead of the default ones. Here’s what the example shows: What if I want to use an “I” in a circle or …

---

## [Grafica plot not displaying in G4P window](https://discourse.processing.org/t/grafica-plot-not-displaying-in-g4p-window/44491)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 4\
**Last updated:** [May 27, 2024, 2:06pm UTC](https://discourse.processing.org/t/grafica-plot-not-displaying-in-g4p-window/44491 "2024-05-27T14:06:29Z")

</div>

Hello, hope you doing all well, i have a problem regarding grafica plot, well first of all i did multiple windows using G4P, everything just works fine, i then added a button “lancer mesures” which on click will trigger …

---

## [Kinect processing](https://discourse.processing.org/t/kinect-processing/44433)

<div class="topic-metadata">

**Author:** [@Cristinaufffffff](https://discourse.processing.org/u/Cristinaufffffff)\
**Replies:** 1\
**Last updated:** [May 26, 2024, 1:35pm UTC](https://discourse.processing.org/t/kinect-processing/44433 "2024-05-26T13:35:13Z")

</div>

import KinectPV2.\*; KinectPV2 kinect; void setup() { kinect = new KinectPV2(this); //Start up methods go here kinect.init(); } PImage img; void setup() { size(512, 484); kinect = new Kinect(this); kinect.e…

---

## [\[Deep Vision Library\] How can I use my own YOLO-v5?](https://discourse.processing.org/t/deep-vision-library-how-can-i-use-my-own-yolo-v5/44481)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [May 25, 2024, 11:06am UTC](https://discourse.processing.org/t/deep-vision-library-how-can-i-use-my-own-yolo-v5/44481 "2024-05-25T11:06:07Z")

</div>

\[Deep Vision Library\] How can I use my own YOLO-v5? @cansik hello. Nice to meet you. Library (url): GitHub - cansik/deep-vision-processing: Deep computer-vision algorithms for the Processing framework. Source code (u…

---

## [Facial recognition for users](https://discourse.processing.org/t/facial-recognition-for-users/44477)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 7\
**Last updated:** [May 25, 2024, 12:17am UTC](https://discourse.processing.org/t/facial-recognition-for-users/44477 "2024-05-25T00:17:33Z")

</div>

Facial recognition for users hello. Nice to meet you. library : Deep Vision OpenCV for Processing link: opencv-processing/examples/WhichFace/WhichFace.pde at master · cansik/opencv-processing · GitHub Q1. It is eas…

---

## [Clipping an imported SVG using arbitrary shape](https://discourse.processing.org/t/clipping-an-imported-svg-using-arbitrary-shape/44401)

<div class="topic-metadata">

**Author:** [@whoamikey](https://discourse.processing.org/u/whoamikey)\
**Replies:** 4\
**Last updated:** [May 24, 2024, 3:46pm UTC](https://discourse.processing.org/t/clipping-an-imported-svg-using-arbitrary-shape/44401 "2024-05-24T15:46:36Z")

</div>

Hey Folks Scratching my head on how to clip an imported SVG file using an arbitrary shape, not a rectangle. The two shapes I’m currently playing with is an isosceles triangle and an isosceles triangle that uses a bezier…

---

## [Print JPG file from Processing (printer)](https://discourse.processing.org/t/print-jpg-file-from-processing-printer/44461)

<div class="topic-metadata">

**Author:** [@dada](https://discourse.processing.org/u/dada)\
**Replies:** 10\
**Last updated:** [May 24, 2024, 3:35pm UTC](https://discourse.processing.org/t/print-jpg-file-from-processing-printer/44461 "2024-05-24T15:35:54Z")

</div>

Hi :slight\_smile: I try to print with usb printer from processing. I think this project’s process is simple. if i tap enter key, image file is printed. printing is fine. but I have problem, printer print image like th…

---

## [PacMan game field - how do I do?](https://discourse.processing.org/t/pacman-game-field-how-do-i-do/17319)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 6\
**Last updated:** [May 24, 2024, 3:21pm UTC](https://discourse.processing.org/t/pacman-game-field-how-do-i-do/17319 "2024-05-24T15:21:30Z")

</div>

As you see in the title, I’ve some problems in preparing the field for my PacMan. I had the idea of basing it all on an int matrix, which is going to be filled with numbers: as it is -1, I have the walls; as it is 1, it…

---

## [G4P How to use fireallevents?](https://discourse.processing.org/t/g4p-how-to-use-fireallevents/44435)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 24\
**Last updated:** [May 23, 2024, 9:29am UTC](https://discourse.processing.org/t/g4p-how-to-use-fireallevents/44435 "2024-05-23T09:29:43Z")

</div>

Hi Peter, I’m trying to use the “RELEASED” event for an image button, and I’m referring to your reference page, under GImageButton, mouseEvent: void handleButtonEvents(void handleButtonEvents(GImageButton button, GEvent…

---

## [The menu bar appears in fullscreen mode](https://discourse.processing.org/t/the-menu-bar-appears-in-fullscreen-mode/44474)

<div class="topic-metadata">

**Author:** [@fredciel](https://discourse.processing.org/u/fredciel)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 1:31pm UTC](https://discourse.processing.org/t/the-menu-bar-appears-in-fullscreen-mode/44474 "2024-05-22T13:31:49Z")

</div>

hello, I have a problem because in fullscreen mode the menu bar does not go away. This menu bar just displays the apple logo and the project name. I have used this function a lot before and this is the first time it has …

---

## [How to run code inside a sketch?](https://discourse.processing.org/t/how-to-run-code-inside-a-sketch/44471)

<div class="topic-metadata">

**Author:** [@aiapps](https://discourse.processing.org/u/aiapps)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 11:40am UTC](https://discourse.processing.org/t/how-to-run-code-inside-a-sketch/44471 "2024-05-22T11:40:21Z")

</div>

Let’s say I have a variable of type String and it contains code, how can I run it inside a working sketch and get the output result?

---

## [Perform Realtime Audio Analysis on Speaker Output](https://discourse.processing.org/t/perform-realtime-audio-analysis-on-speaker-output/44464)

<div class="topic-metadata">

**Author:** [@BrandMChaos](https://discourse.processing.org/u/BrandMChaos)\
**Replies:** 6\
**Last updated:** [May 21, 2024, 9:03pm UTC](https://discourse.processing.org/t/perform-realtime-audio-analysis-on-speaker-output/44464 "2024-05-21T21:03:49Z")

</div>

Currently, the FFTSpectrum example from the Sound library achieves the effect I’m looking for, but the sound it’s listening to is not. I want to know how to access the speaker output of my device and apply FFT to it in r…

---

## [Multiple installs of Processing](https://discourse.processing.org/t/multiple-installs-of-processing/44457)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 4:58pm UTC](https://discourse.processing.org/t/multiple-installs-of-processing/44457 "2024-05-20T16:58:55Z")

</div>

A very simple question: If I install two or more versions of Processing (say 3.5.4 and 4.3), how do I get separate sketchbook folders? And how do I get different desktop shortcuts and menu items? As far I see, what I i…

---

## [Change error detection for custom JavaMode](https://discourse.processing.org/t/change-error-detection-for-custom-javamode/44451)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 9:20am UTC](https://discourse.processing.org/t/change-error-detection-for-custom-javamode/44451 "2024-05-20T09:20:05Z")

</div>

I’m currently developing a framework for Java-Based modes. This currently has a few problems but the currently most pressing one would be fixing the issue of the error detection marking code as wrong that can be compil…

---

## [Problem for exporting SVG from P5js editor](https://discourse.processing.org/t/problem-for-exporting-svg-from-p5js-editor/44448)

<div class="topic-metadata">

**Author:** [@nicolast](https://discourse.processing.org/u/nicolast)\
**Replies:** 1\
**Last updated:** [May 19, 2024, 8:18pm UTC](https://discourse.processing.org/t/problem-for-exporting-svg-from-p5js-editor/44448 "2024-05-19T20:18:19Z")

</div>

Hello, I have problems with exporting in SVG format. Some weeks ago, it was possible to export files in SVG with the method explained by gorilla sun, but it no longer works and I don’t know why. My level in programing i…

---

## [How to print file from Processing, USB printer](https://discourse.processing.org/t/how-to-print-file-from-processing-usb-printer/44423)

<div class="topic-metadata">

**Author:** [@dada](https://discourse.processing.org/u/dada)\
**Replies:** 1\
**Last updated:** [May 14, 2024, 3:20pm UTC](https://discourse.processing.org/t/how-to-print-file-from-processing-usb-printer/44423 "2024-05-14T15:20:41Z")

</div>

Hi I’m making my new project as student. it works vary simple process. 1\_click the button that showed on screen, and 2\_print image from printer that connected with computer via usb. the image is pdf file. and i use m…

---

## [Termination of a String](https://discourse.processing.org/t/termination-of-a-string/44431)

<div class="topic-metadata">

**Author:** [@leclerke](https://discourse.processing.org/u/leclerke)\
**Replies:** 2\
**Last updated:** [May 14, 2024, 2:04pm UTC](https://discourse.processing.org/t/termination-of-a-string/44431 "2024-05-14T14:04:04Z")

</div>

Hello, I am stuck transforming a char-array to a String. When using: byte\[\] inBuffer = new byte\[60\]; myPort.readBytesUntil(lf, inBuffer); tring myString = new String(inBuffer); there seems to be some data after the…

---

## [G4P Way to Create New Window Hidden?](https://discourse.processing.org/t/g4p-way-to-create-new-window-hidden/44418)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 8\
**Last updated:** [May 13, 2024, 10:03pm UTC](https://discourse.processing.org/t/g4p-way-to-create-new-window-hidden/44418 "2024-05-13T22:03:24Z")

</div>

Hi, I’m using G4P, wonderful lib! I’ve found a way to programmatically create windows and hide them - based on posts here and Peter’s fab library! All Peter’s code; works great. What I haven’t found is a way to create a…

---

## [G4P Cancel Selection in Textfield?](https://discourse.processing.org/t/g4p-cancel-selection-in-textfield/44383)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 18\
**Last updated:** [May 13, 2024, 3:16pm UTC](https://discourse.processing.org/t/g4p-cancel-selection-in-textfield/44383 "2024-05-13T15:16:23Z")

</div>

Hi Peter et al, just wondering if there’s a way to use the .cancelSelection() method for G4P texfields? Here’s the code: void unselectAllFields() { tfCC0.cancelSelection(); tfCC1.cancelSelection(); tfCC2.cancelSe…

---

## [G4P Create new Control-class to use in Sketch](https://discourse.processing.org/t/g4p-create-new-control-class-to-use-in-sketch/44047)

<div class="topic-metadata">

**Author:** [@Marcel](https://discourse.processing.org/u/Marcel)\
**Replies:** 10\
**Last updated:** [May 12, 2024, 8:08am UTC](https://discourse.processing.org/t/g4p-create-new-control-class-to-use-in-sketch/44047 "2024-05-12T08:08:39Z")

</div>

Hi, Recently I came across this awesome tool G4P GUI Builder to use for my project. I would like to create a new Control to mimic a Encoder Knob. I’ve been fumbling around with the DKnob Class to change it into a new DE…

---

## [Control P5 Slider rounds incorrectly on negative number](https://discourse.processing.org/t/control-p5-slider-rounds-incorrectly-on-negative-number/44413)

<div class="topic-metadata">

**Author:** [@dfecker](https://discourse.processing.org/u/dfecker)\
**Replies:** 1\
**Last updated:** [May 11, 2024, 12:48pm UTC](https://discourse.processing.org/t/control-p5-slider-rounds-incorrectly-on-negative-number/44413 "2024-05-11T12:48:19Z")

</div>

When the Slider reaches -40 it return a -39.99 and rounds down to a -39. If every other value returned in this example is an int and base 10 why is the -40 off? And how do I fix it so my numbers are multiples of 10 from …

---

## ["Target VM failed to initialize" with P2D & P3D](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 7:05pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029 "2024-05-10T19:05:53Z")

</div>

Hi there ! I suddenly have this message : Could not run the sketch (Target VM failed to initialize). For more information, read Help → Troubleshooting. I wish it was more specific. It happens only when I ask for P2D …

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

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