# Processing

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

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

**Page:** 79

---

## [How can I rasterize obj flie?](https://discourse.processing.org/t/how-can-i-rasterize-obj-flie/37205)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 3:40pm UTC](https://discourse.processing.org/t/how-can-i-rasterize-obj-flie/37205 "2022-05-29T15:40:56Z")

</div>

Hello genius! I’m a beginner and I need your help. Just as you can rasterize the image file in 3D, can you rasterize the obj file? And can you have each of those tiles that are split respond to a different object? F…

---

## [Making functions](https://discourse.processing.org/t/making-functions/37196)

<div class="topic-metadata">

**Author:** [@yug717](https://discourse.processing.org/u/yug717)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 8:04am UTC](https://discourse.processing.org/t/making-functions/37196 "2022-05-29T08:04:55Z")

</div>

Hi all!, I have to make this game similar to crossy road for a project. My pedestrain is meant to have a certain number of lives (livesLeft) before the game ends. If the pedestrain runs out of lives, the game is meant to…

---

## [How to UDP broadcast?](https://discourse.processing.org/t/how-to-udp-broadcast/37162)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 6\
**Last updated:** [May 29, 2022, 8:01am UTC](https://discourse.processing.org/t/how-to-udp-broadcast/37162 "2022-05-29T08:01:40Z")

</div>

I’m new in network programming. I want to broadcast UDP message. I installed the UDP library from Stephane Cousot and found following code: import hypermedia.net.\*; UDP udp; // define the UDP object /\*\* \* init \*/ v…

---

## [How to make per box the lightest to darkest color in a Nested loop?](https://discourse.processing.org/t/how-to-make-per-box-the-lightest-to-darkest-color-in-a-nested-loop/37200)

<div class="topic-metadata">

**Author:** [@Stoya](https://discourse.processing.org/u/Stoya)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 5:30am UTC](https://discourse.processing.org/t/how-to-make-per-box-the-lightest-to-darkest-color-in-a-nested-loop/37200 "2022-05-29T05:30:53Z")

</div>

Hello! I’m asking for advice. I’m experimenting on how can one make the first box the lightest value then it gradually goes darker per box. So if I input the color blue, it’ll show the lightest blue at the first box of t…

---

## [How do I make my score for the game increase by 1 and have it displayed on the bottom corner?](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160)

<div class="topic-metadata">

**Author:** [@itisti21](https://discourse.processing.org/u/itisti21)\
**Replies:** 25\
**Last updated:** [May 28, 2022, 4:06pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160 "2022-05-28T16:06:30Z")

</div>

Hi! I am stuggling with a project I have. I have a game whereby the pedestrian has to pass through lanes without hitting the vehicle and once it does, I need for the scores to go up by 1. I am unsure as to how to do the …

---

## [Making multiple lanes using arrays](https://discourse.processing.org/t/making-multiple-lanes-using-arrays/37161)

<div class="topic-metadata">

**Author:** [@itisti21](https://discourse.processing.org/u/itisti21)\
**Replies:** 19\
**Last updated:** [May 28, 2022, 2:25pm UTC](https://discourse.processing.org/t/making-multiple-lanes-using-arrays/37161 "2022-05-28T14:25:46Z")

</div>

Hi ! I am having issues trying to make multiple lanes for a project. I have made one lane using a loop as it is a dashed lane. I am struggling to make multiple of those lanes in my game using an array. Can someone please…

---

## [Best practice regarding visibility](https://discourse.processing.org/t/best-practice-regarding-visibility/37113)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 11:43am UTC](https://discourse.processing.org/t/best-practice-regarding-visibility/37113 "2022-05-27T11:43:53Z")

</div>

I currently am publishing a library for using swing with Processing. I declared almost everything in my library public with the motivation that if someone knows what they’re doing one can use these methods. However this …

---

## [Code for foreground window](https://discourse.processing.org/t/code-for-foreground-window/37148)

<div class="topic-metadata">

**Author:** [@Andry](https://discourse.processing.org/u/Andry)\
**Replies:** 10\
**Last updated:** [May 28, 2022, 11:31am UTC](https://discourse.processing.org/t/code-for-foreground-window/37148 "2022-05-28T11:31:24Z")

</div>

Hi there is a code to put window in the foreground, like: SetWindowsPos (0)?

---

## [Nested Loop 3 Colors, How do I set them their colors in uniform column order?](https://discourse.processing.org/t/nested-loop-3-colors-how-do-i-set-them-their-colors-in-uniform-column-order/37153)

<div class="topic-metadata">

**Author:** [@Stoya](https://discourse.processing.org/u/Stoya)\
**Replies:** 5\
**Last updated:** [May 28, 2022, 4:49am UTC](https://discourse.processing.org/t/nested-loop-3-colors-how-do-i-set-them-their-colors-in-uniform-column-order/37153 "2022-05-28T04:49:23Z")

</div>

Hello! I’ve finished the “6.6: Nested Loops - Processing Tutorial” from the Coding Train and I’ve been wondering about how to set the colours uniformly. Currently, I want the colours to be red, then blue, then green in c…

---

## [Halftone dots patterns](https://discourse.processing.org/t/halftone-dots-patterns/36948)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 12\
**Last updated:** [May 28, 2022, 2:33am UTC](https://discourse.processing.org/t/halftone-dots-patterns/36948 "2022-05-28T02:33:49Z")

</div>

Hi there! I am experimenting with pointillism as you can see on my code. I have done a pattern with random sizes of dots but I actually would like to imitate a halftone patterns, where size of dots depends on nears dots…

---

## [Variations of color on a loop](https://discourse.processing.org/t/variations-of-color-on-a-loop/37069)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 12\
**Last updated:** [May 28, 2022, 2:31am UTC](https://discourse.processing.org/t/variations-of-color-on-a-loop/37069 "2022-05-28T02:31:52Z")

</div>

Hi there! I have been working on this loop recently and it is almost perfect, but I want to make little variations between points and when I use random on hue, or saturation or brightness all of them are the same. Could …

---

## [Help! Problem with Sound Library not playing properly](https://discourse.processing.org/t/help-problem-with-sound-library-not-playing-properly/37142)

<div class="topic-metadata">

**Author:** [@Flor\_st](https://discourse.processing.org/u/Flor_st)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 11:38pm UTC](https://discourse.processing.org/t/help-problem-with-sound-library-not-playing-properly/37142 "2022-05-27T23:38:04Z")

</div>

I am very new with this so please bare with me I am doing an exercise which involves using two libraries, so the idea is doing something with a video and them play a song. I starts fine but when it gets to the song it p…

---

## [8GB or 16GB RAM recommended?](https://discourse.processing.org/t/8gb-or-16gb-ram-recommended/11321)

<div class="topic-metadata">

**Author:** [@AlDickins](https://discourse.processing.org/u/AlDickins)\
**Replies:** 6\
**Last updated:** [May 27, 2022, 11:43am UTC](https://discourse.processing.org/t/8gb-or-16gb-ram-recommended/11321 "2022-05-27T11:43:41Z")

</div>

Hi. I’m buying a laptop for Processing and possibly Android studio. It’s not possible to install additional RAM in this laptop after purchase. I can buy it with 8 or 16 GB RAM. Which would you recommend? I’m someone who…

---

## [MySQL with Beziersql](https://discourse.processing.org/t/mysql-with-beziersql/37129)

<div class="topic-metadata">

**Author:** [@AdmiralPenguin2](https://discourse.processing.org/u/AdmiralPenguin2)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 11:23am UTC](https://discourse.processing.org/t/mysql-with-beziersql/37129 "2022-05-27T11:23:37Z")

</div>

Hi, I’m trying to use Processing with MySQL using the BezierSQL library but it isn’t working. I entered the password, user, database, and host correctly and it still says SQL.connect(): Could not connect to the database …

---

## [Sketch stops working when I switch to P2D](https://discourse.processing.org/t/sketch-stops-working-when-i-switch-to-p2d/37120)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 7\
**Last updated:** [May 26, 2022, 9:06pm UTC](https://discourse.processing.org/t/sketch-stops-working-when-i-switch-to-p2d/37120 "2022-05-26T21:06:30Z")

</div>

Hi, I’m making a grid that would later be interactive. I wanted to try out some things with shaders so switched my sketch to P2D. The second I do this I get a NullPointerException and I’m wondering why. I’m thinking t…

---

## [P2D/P3D causes image flickering and disappearing from draw() loop?!](https://discourse.processing.org/t/p2d-p3d-causes-image-flickering-and-disappearing-from-draw-loop/36877)

<div class="topic-metadata">

**Author:** [@AstroPeng](https://discourse.processing.org/u/AstroPeng)\
**Replies:** 4\
**Last updated:** [May 26, 2022, 5:27pm UTC](https://discourse.processing.org/t/p2d-p3d-causes-image-flickering-and-disappearing-from-draw-loop/36877 "2022-05-26T17:27:16Z")

</div>

void setup(){ PImage flower = loadImage("bloom.jpg"); size(897, 565, P2D); //Line in Question image(flower, 472+26,86, 189,189); } causes flickering but the second does not, however my main project uses createGrap…

---

## [How to improve the performance of Processing?](https://discourse.processing.org/t/how-to-improve-the-performance-of-processing/36577)

<div class="topic-metadata">

**Author:** [@IpNeNaEcRe](https://discourse.processing.org/u/IpNeNaEcRe)\
**Replies:** 9\
**Last updated:** [May 26, 2022, 5:02pm UTC](https://discourse.processing.org/t/how-to-improve-the-performance-of-processing/36577 "2022-05-26T17:02:27Z")

</div>

Recently I code the reaction-diffusion algorithm, following Daniel Shiffman’s tutorial. I use processing to code instead of P5.js in the tutorial. When I run the sketch, I found the frame rate is so low when the sketch …

---

## [I need help with the background music](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 2:25pm UTC](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115 "2022-05-26T14:25:34Z")

</div>

Hello, so I made a game but the background music isn’t working.( I’ve only copied the sound problem tho) I’ve used another sound before and it works perfectly fine but the background music won’t work. If I play my progra…

---

## [3D flocking simulation with two types of boids and octree optimization](https://discourse.processing.org/t/3d-flocking-simulation-with-two-types-of-boids-and-octree-optimization/36992)

<div class="topic-metadata">

**Author:** [@m.codeeee](https://discourse.processing.org/u/m.codeeee)\
**Replies:** 6\
**Last updated:** [May 26, 2022, 1:29pm UTC](https://discourse.processing.org/t/3d-flocking-simulation-with-two-types-of-boids-and-octree-optimization/36992 "2022-05-26T13:29:08Z")

</div>

Hiii, I’m trying to do a 3D flocking simulation with two types of boids and octree optimization. I would like to have two octrees one for each flock in order to then insert an interaction between the two flocks as a met…

---

## [Multiple objs distorting (perspective?)](https://discourse.processing.org/t/multiple-objs-distorting-perspective/37045)

<div class="topic-metadata">

**Author:** [@jimjimmer](https://discourse.processing.org/u/jimjimmer)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 12:36pm UTC](https://discourse.processing.org/t/multiple-objs-distorting-perspective/37045 "2022-05-26T12:36:02Z")

</div>

Hi I’m curious. I adapted the obj example to try and show 10 rockets in a row… The code works but the width of the rockets seem uneven… They are fatter towards the edges can anyone help?\`\` /\*\* \* Load and Display an OBJ…

---

## [My Pictures disapear when using other commands](https://discourse.processing.org/t/my-pictures-disapear-when-using-other-commands/36996)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 11:46am UTC](https://discourse.processing.org/t/my-pictures-disapear-when-using-other-commands/36996 "2022-05-26T11:46:46Z")

</div>

Before giving the Problem + code let me tell you my Programm. Im trying to create a dress up game for my schoolwork. You click on a bar and the game starts. I’ve created 3 lines of arrows (pfeil) for that: \<–(left) a…

---

## [Question for PeasyCam: Auto positioning](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 4:55am UTC](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867 "2022-05-26T04:55:19Z")

</div>

Hello all, I have a question to Peasycam I‘d like to zoom and pan the cam during an animation to the area where something happens. Think of an animation of a game of chess where the board is so big that the camera wand…

---

## ['Error creating webgl context' in j5.ps](https://discourse.processing.org/t/error-creating-webgl-context-in-j5-ps/37096)

<div class="topic-metadata">

**Author:** [@Jess](https://discourse.processing.org/u/Jess)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 3:22am UTC](https://discourse.processing.org/t/error-creating-webgl-context-in-j5-ps/37096 "2022-05-26T03:22:32Z")

</div>

I was trying to run code but kept encountering this error - Can anyone help me understand why it’s happening? What do I need to do to fix it? Is Webgl able to run in p5.js? Thank you!

---

## [Weird fill for a composite 3d PShape](https://discourse.processing.org/t/weird-fill-for-a-composite-3d-pshape/37092)

<div class="topic-metadata">

**Author:** [@gwenroote](https://discourse.processing.org/u/gwenroote)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 10:15pm UTC](https://discourse.processing.org/t/weird-fill-for-a-composite-3d-pshape/37092 "2022-05-25T22:15:07Z")

</div>

I am trying to fill in this shape made of bezier curves, and one of the surfaces has an extra plane when I “fill” it. The flat part of the white plane is the one I’m trying to get rid of. (see side4) I sort of get why i…

---

## [Making a Transparent Background and Exporting to PNG](https://discourse.processing.org/t/making-a-transparent-background-and-exporting-to-png/37073)

<div class="topic-metadata">

**Author:** [@panko](https://discourse.processing.org/u/panko)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 12:30pm UTC](https://discourse.processing.org/t/making-a-transparent-background-and-exporting-to-png/37073 "2022-05-25T12:30:09Z")

</div>

Hi there - I have made a simple design that has a 17x11 grid of circle shapes. I would like to modify this code to save this image as a PNG with a transparent background. Can anyone help me? Thanks! int horiz = 17;…

---

## [Connecting to a Server](https://discourse.processing.org/t/connecting-to-a-server/36802)

<div class="topic-metadata">

**Author:** [@Leoperix03](https://discourse.processing.org/u/Leoperix03)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 8:49pm UTC](https://discourse.processing.org/t/connecting-to-a-server/36802 "2022-05-24T20:49:21Z")

</div>

Hi, I want to learn about the Client class for processing because I want to build a console to communicate with other people, the problem is that I do not have a server that I can use. Online I found that you can technic…

---

## [Color 2D texture with noise](https://discourse.processing.org/t/color-2d-texture-with-noise/37049)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [May 24, 2022, 4:12pm UTC](https://discourse.processing.org/t/color-2d-texture-with-noise/37049 "2022-05-24T16:12:11Z")

</div>

Howdy! I am doing a background with noise adapting a code from here and I would like to control color to do something as you can see on my pictures, but I don’t understand it as good as I need for that. I can get some cr…

---

## [Flipcard (based on Topics/Textures/TextureQuad example) Front and Back](https://discourse.processing.org/t/flipcard-based-on-topics-textures-texturequad-example-front-and-back/37024)

<div class="topic-metadata">

**Author:** [@Gus\_Fermin](https://discourse.processing.org/u/Gus_Fermin)\
**Replies:** 12\
**Last updated:** [May 24, 2022, 3:33pm UTC](https://discourse.processing.org/t/flipcard-based-on-topics-textures-texturequad-example-front-and-back/37024 "2022-05-24T15:33:30Z")

</div>

Hi there, Hope this msg finds you well. Greetings from the Dominican Rep. :slight\_smile: I am trying to do a FLIPCARD, meaning, a image on one side and another image on the other side. So that when you rotate it, you s…

---

## [Problem with arraylist (and PureData)](https://discourse.processing.org/t/problem-with-arraylist-and-puredata/37008)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 3:17pm UTC](https://discourse.processing.org/t/problem-with-arraylist-and-puredata/37008 "2022-05-24T15:17:04Z")

</div>

We are trying to create something like this pic and we are using the voice (PureData)

---

## [Java, python, p5.js](https://discourse.processing.org/t/java-python-p5-js/37051)

<div class="topic-metadata">

**Author:** [@panko](https://discourse.processing.org/u/panko)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 7:15am UTC](https://discourse.processing.org/t/java-python-p5-js/37051 "2022-05-24T07:15:50Z")

</div>

hi there - i’m curious to see if the community has weighed in on the difference between coding languages offered by Processing at this point. maybe there’s a good resource that compares and contrasts all three. i’m in …

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

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