# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=4

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

**Page:** 5

---

## [Adding an .obj file](https://discourse.processing.org/t/adding-an-obj-file/45069)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 8\
**Last updated:** [September 22, 2024, 2:10am UTC](https://discourse.processing.org/t/adding-an-obj-file/45069 "2024-09-22T02:10:31Z")

</div>

Hi! I made an .obj file in blender that I would like to animate via Processing.js but I keep getting the following error: " at sketch\_3d\_obj\_interlaced\_loops.objAbstractShape(sketch\_3d\_obj\_interlaced\_loops.java:37) at…

---

## [Minimap overlay for maze game](https://discourse.processing.org/t/minimap-overlay-for-maze-game/45070)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 1\
**Last updated:** [September 21, 2024, 9:37am UTC](https://discourse.processing.org/t/minimap-overlay-for-maze-game/45070 "2024-09-21T09:37:37Z")

</div>

i created this code for a 3d endless maze explorer with a minimap, but the minimap appears on one of the walls of the maze instead of being a 2d overlay. everytime i try to embed it as a 2d overlay on top of the 3d game …

---

## [UI Menu Visual Glitch (Flickering) (Mandelbrot Fractal)](https://discourse.processing.org/t/ui-menu-visual-glitch-flickering-mandelbrot-fractal/45001)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 9:35pm UTC](https://discourse.processing.org/t/ui-menu-visual-glitch-flickering-mandelbrot-fractal/45001 "2024-08-27T21:35:46Z")

</div>

I am trying to create this mandelbrot fractal with a UI but as you can see the UI has a weird visual glitch where it flickers the colors of the Mandelbrot fractal i can’t find the cause of this // MandelbrotStandalone.p…

---

## [How to make the selectFolder() function open using a default path](https://discourse.processing.org/t/how-to-make-the-selectfolder-function-open-using-a-default-path/34369)

<div class="topic-metadata">

**Author:** [@Vertexia](https://discourse.processing.org/u/Vertexia)\
**Replies:** 14\
**Last updated:** [August 27, 2024, 8:18pm UTC](https://discourse.processing.org/t/how-to-make-the-selectfolder-function-open-using-a-default-path/34369 "2024-08-27T20:18:09Z")

</div>

I’m trying to figure out how to make the selectFolder() function open using a select path eg instead of opening up with the documents folder selected open with the sketch paths one?

---

## [Generate the Harriss Fractal](https://discourse.processing.org/t/generate-the-harriss-fractal/44990)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 0\
**Last updated:** [August 25, 2024, 1:49am UTC](https://discourse.processing.org/t/generate-the-harriss-fractal/44990 "2024-08-25T01:49:55Z")

</div>

I found this thread Where people show how to generate the Harris fractal with another program, i tried for a few hours and i can’t get it to work, i would share what i have now but it’s so bad and broken that i don’t se…

---

## [SelectFolder(), SelectInput(), SelectOutput() Questions](https://discourse.processing.org/t/selectfolder-selectinput-selectoutput-questions/44974)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 5\
**Last updated:** [August 23, 2024, 12:37pm UTC](https://discourse.processing.org/t/selectfolder-selectinput-selectoutput-questions/44974 "2024-08-23T12:37:00Z")

</div>

Hi, I would like to implement the SelectFolder(), SelectInput(), and SelectOutput() methods but also specify the folder that they open to. I’ve spent a lot of time googling this and trying to understand it, but haven’t …

---

## [Running List of Mouse Clicks](https://discourse.processing.org/t/running-list-of-mouse-clicks/44961)

<div class="topic-metadata">

**Author:** [@Ignotus](https://discourse.processing.org/u/Ignotus)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 5:31am UTC](https://discourse.processing.org/t/running-list-of-mouse-clicks/44961 "2024-08-19T05:31:56Z")

</div>

I have some code for a running list of mouse click events, where the events can be deleted from the list after a delay. I keep a list of mouse coords and expiration times. I draw circles if the expiration time is \> milli…

---

## [Problems when trying to draw to a P3D PGraphics when called from a thread?](https://discourse.processing.org/t/problems-when-trying-to-draw-to-a-p3d-pgraphics-when-called-from-a-thread/6301)

<div class="topic-metadata">

**Author:** [@DSW](https://discourse.processing.org/u/DSW)\
**Replies:** 6\
**Last updated:** [August 19, 2024, 12:16am UTC](https://discourse.processing.org/t/problems-when-trying-to-draw-to-a-p3d-pgraphics-when-called-from-a-thread/6301 "2024-08-19T00:16:58Z")

</div>

I’m working on a live visualizer program for a band, which is structured like this: The main Draw() loop creates a thread, wherein whichever animation function is currently running is updated. These animation functions …

---

## [Implementing a Processing app inside another one](https://discourse.processing.org/t/implementing-a-processing-app-inside-another-one/44920)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 23\
**Last updated:** [August 19, 2024, 12:09am UTC](https://discourse.processing.org/t/implementing-a-processing-app-inside-another-one/44920 "2024-08-19T00:09:05Z")

</div>

Hi guys, iv’e been trying to do this for hours but every time i try i fail. i made a slotmachine.pde with a fully working slot machine ArrayList\<Coin\> coins = new ArrayList\<Coin\>(); // List to store the coins float…

---

## [How to use filter on PGraphics in thread?](https://discourse.processing.org/t/how-to-use-filter-on-pgraphics-in-thread/44949)

<div class="topic-metadata">

**Author:** [@varenek111](https://discourse.processing.org/u/varenek111)\
**Replies:** 5\
**Last updated:** [August 19, 2024, 12:03am UTC](https://discourse.processing.org/t/how-to-use-filter-on-pgraphics-in-thread/44949 "2024-08-19T00:03:30Z")

</div>

How to use filter on PGraphics in thread? void setup() { size(512, 512, P2D); thread("thread"); } void thread() { PGraphics graphic = createGraphics(512, 512, P2D); PShader blur = loadShader("blur.glsl"); grap…

---

## [Use emoji in fonts in Processing](https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 12\
**Last updated:** [August 18, 2024, 2:08pm UTC](https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685 "2024-08-18T14:08:43Z")

</div>

Hello, I have tried multiple fonts that support Emoji/Unicode characters, but i found that none of those seem to be working. Is there a way to display Emoji & Unicode in processing? -Thanks for everyone who can contribu…

---

## [Frame for P3D Renderer](https://discourse.processing.org/t/frame-for-p3d-renderer/44933)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 10\
**Last updated:** [August 15, 2024, 2:37pm UTC](https://discourse.processing.org/t/frame-for-p3d-renderer/44933 "2024-08-15T14:37:11Z")

</div>

Does anyone know how to get the frame of a Processing window which uses the P3D renderer? void setup() { size(400, 400, P3D); // frame = ?? }

---

## [Help recreating grid artwork (Cuadricula Óptica by Alberto Gonzalez Vivo)](https://discourse.processing.org/t/help-recreating-grid-artwork-cuadricula-optica-by-alberto-gonzalez-vivo/44651)

<div class="topic-metadata">

**Author:** [@Matias\_alderroba](https://discourse.processing.org/u/Matias_alderroba)\
**Replies:** 3\
**Last updated:** [July 1, 2024, 2:05pm UTC](https://discourse.processing.org/t/help-recreating-grid-artwork-cuadricula-optica-by-alberto-gonzalez-vivo/44651 "2024-07-01T14:05:55Z")

</div>

Hi, I’m new to Processing and I don’t know how to recreate this image on the right side of 800x400 interactively, please help me

---

## [Maze Generation Problem!](https://discourse.processing.org/t/maze-generation-problem/44908)

<div class="topic-metadata">

**Author:** [@Tamir384](https://discourse.processing.org/u/Tamir384)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 6:17pm UTC](https://discourse.processing.org/t/maze-generation-problem/44908 "2024-08-08T18:17:04Z")

</div>

i have some white spaces in the grid that are block while im trying to generate a maze on the grid. each maze block covers 4x4 grid blocks so please help me figure out a way i can avoid blocked spaces in the grid so …

---

## [Implementing windowed to fullscreen mechanics](https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 9\
**Last updated:** [August 6, 2024, 10:43am UTC](https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846 "2024-08-06T10:43:17Z")

</div>

Im trying to implement mechanics into my game where i can use the console to change reso with a command and go windowed to fullscreen what would be the correct approach to do that while making sure everything stays respo…

---

## [Shape command not handled: e-4](https://discourse.processing.org/t/shape-command-not-handled-e-4/44894)

<div class="topic-metadata">

**Author:** [@Ernest](https://discourse.processing.org/u/Ernest)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 7:48pm UTC](https://discourse.processing.org/t/shape-command-not-handled-e-4/44894 "2024-08-05T19:48:08Z")

</div>

Hey all, Today I had a sketch like this: PShape s; void setup() { size(400, 300); s = loadShape("shape.svg"); } void draw() { background(255); shape(s); } And the Processing IDE tells me shape command not h…

---

## [Using high FPS and Anti-Lag](https://discourse.processing.org/t/using-high-fps-and-anti-lag/44860)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 4\
**Last updated:** [August 5, 2024, 3:51pm UTC](https://discourse.processing.org/t/using-high-fps-and-anti-lag/44860 "2024-08-05T15:51:41Z")

</div>

Hi guys, im developing a game that involves spawning a large amount of entities at once, my default fps is 60, but when i use more fps it seems as if the game were to move faster, is that something common in processing ?…

---

## [Move between different PGraphics](https://discourse.processing.org/t/move-between-different-pgraphics/44871)

<div class="topic-metadata">

**Author:** [@sdnorris](https://discourse.processing.org/u/sdnorris)\
**Replies:** 7\
**Last updated:** [August 5, 2024, 12:00pm UTC](https://discourse.processing.org/t/move-between-different-pgraphics/44871 "2024-08-05T12:00:57Z")

</div>

Hello, I’ve developed a system for live visuals that involves rendering graphics in Processing, and I’m trying to add functionality to fade between two different displays: one that is currently being displayed on a proje…

---

## [Input from stdin](https://discourse.processing.org/t/input-from-stdin/5700)

<div class="topic-metadata">

**Author:** [@bam](https://discourse.processing.org/u/bam)\
**Replies:** 8\
**Last updated:** [August 3, 2024, 8:40am UTC](https://discourse.processing.org/t/input-from-stdin/5700 "2024-08-03T08:40:02Z")

</div>

Processing has provided a very good way to introduce students to programming (and to OO), and the immediate gratification of visual output is very effective. However, the lack of keyboard input is very frustrating! (Th…

---

## [MacOS CATransaction synchronize warning](https://discourse.processing.org/t/macos-catransaction-synchronize-warning/44880)

<div class="topic-metadata">

**Author:** [@Ignotus](https://discourse.processing.org/u/Ignotus)\
**Replies:** 0\
**Last updated:** [August 2, 2024, 9:52pm UTC](https://discourse.processing.org/t/macos-catransaction-synchronize-warning/44880 "2024-08-02T21:52:19Z")

</div>

I have a color pattern generator, WaveSynth, that uses additive synthesis of sine waves to drive animation. It can store and load configuration data with JSON files. It’s intended for use in live performance. Concurrenc…

---

## [Loading SVG files with advanced SVG features](https://discourse.processing.org/t/loading-svg-files-with-advanced-svg-features/44849)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 2:20am UTC](https://discourse.processing.org/t/loading-svg-files-with-advanced-svg-features/44849 "2024-07-29T02:20:16Z")

</div>

Hi Guys! :grinning: :grinning: How about this one: I’m trying to load certain advanced SVG features, such as gradients and CSS styles For Example: \<?xml version="1.0" encoding="UTF-8"?\> \<svg id="Layer\_1" data-name="L…

---

## [Changing order of Overlapping Shapes](https://discourse.processing.org/t/changing-order-of-overlapping-shapes/44830)

<div class="topic-metadata">

**Author:** [@niftynathan7](https://discourse.processing.org/u/niftynathan7)\
**Replies:** 6\
**Last updated:** [July 26, 2024, 1:44pm UTC](https://discourse.processing.org/t/changing-order-of-overlapping-shapes/44830 "2024-07-26T13:44:50Z")

</div>

Heya, I am trying to make the blue rectangle go over the top of the red one without going over the yellow one, I am only allowed to use 4 rectangles. I have tried to do this using PShape but have come up short, was wond…

---

## [Shape/texture backgrounds and transparency](https://discourse.processing.org/t/shape-texture-backgrounds-and-transparency/44800)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 5\
**Last updated:** [July 25, 2024, 12:34pm UTC](https://discourse.processing.org/t/shape-texture-backgrounds-and-transparency/44800 "2024-07-25T12:34:54Z")

</div>

I’m a little confused - when you add a texture to a 3D shape and don’t map the UVs correctly you have a false (black) background that fills any texture empty part of the 3D shape (see attached image of triangle - a photo…

---

## [Changing gradient](https://discourse.processing.org/t/changing-gradient/44081)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 6:01pm UTC](https://discourse.processing.org/t/changing-gradient/44081 "2024-07-24T18:01:47Z")

</div>

Hi there! I am experimenting with gradients. I have made this one, based on happy codding tutorial, but I would like to animate it. I want the orange part turns slowly into pink and the pink part turns slowly into orang…

---

## [Takashi Murakami Code](https://discourse.processing.org/t/takashi-murakami-code/44758)

<div class="topic-metadata">

**Author:** [@chipadelic](https://discourse.processing.org/u/chipadelic)\
**Replies:** 3\
**Last updated:** [July 13, 2024, 1:08pm UTC](https://discourse.processing.org/t/takashi-murakami-code/44758 "2024-07-13T13:08:36Z")

</div>

Hey Everyone! i am struggling to figure out how to create the Takashi Murikami flower using shapes, bezier curves, vertecies and shapes. this is a little above and beyond for the class that I am taking, and i am really …

---

## [Help with Neural Network Visualization Bug In Processing](https://discourse.processing.org/t/help-with-neural-network-visualization-bug-in-processing/44794)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 3\
**Last updated:** [July 23, 2024, 1:47pm UTC](https://discourse.processing.org/t/help-with-neural-network-visualization-bug-in-processing/44794 "2024-07-23T13:47:32Z")

</div>

I’m currently working on a project using Processing where I’m implementing an Othello game with a genetic algorithm AI. The project consists of multiple files including OthelloGame.pde, AIPlayer.pde, Button.pde, GraphWin…

---

## [Opening numbered images](https://discourse.processing.org/t/opening-numbered-images/44791)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.processing.org/u/fra)\
**Replies:** 4\
**Last updated:** [July 21, 2024, 4:36pm UTC](https://discourse.processing.org/t/opening-numbered-images/44791 "2024-07-21T16:36:32Z")

</div>

Hi, in a folder I saved three .png files: “1.png”, “2.png”, “3.png” In the Processing code I use a constant: int A = 3; Now: I would like open an “A.png” image , with A set by the variable above. So, for example: i…

---

## [Shaders: Drawing layers on top of each other](https://discourse.processing.org/t/shaders-drawing-layers-on-top-of-each-other/44724)

<div class="topic-metadata">

**Author:** [@hoend008](https://discourse.processing.org/u/hoend008)\
**Replies:** 14\
**Last updated:** [July 14, 2024, 5:58am UTC](https://discourse.processing.org/t/shaders-drawing-layers-on-top-of-each-other/44724 "2024-07-14T05:58:36Z")

</div>

Hey all, I want to draw moving shapes on top of an image (a world map), for example ellipses representing airplanes moving over the map to their destination. I am also practicing using a shader to improve performance, b…

---

## [Rotate Camera Image only, blend with Image from Animation](https://discourse.processing.org/t/rotate-camera-image-only-blend-with-image-from-animation/44747)

<div class="topic-metadata">

**Author:** [@qualidat](https://discourse.processing.org/u/qualidat)\
**Replies:** 3\
**Last updated:** [July 11, 2024, 3:37pm UTC](https://discourse.processing.org/t/rotate-camera-image-only-blend-with-image-from-animation/44747 "2024-07-11T15:37:34Z")

</div>

Rotating an image is not normally a complicated matter. However, I have a somewhat complicated problem: I get an image from a live camera I read an image from an animation I mix the images with blend and then show them…

---

## [How to draw a perfect flower](https://discourse.processing.org/t/how-to-draw-a-perfect-flower/44734)

<div class="topic-metadata">

**Author:** [@Ruka](https://discourse.processing.org/u/Ruka)\
**Replies:** 8\
**Last updated:** [July 10, 2024, 3:56am UTC](https://discourse.processing.org/t/how-to-draw-a-perfect-flower/44734 "2024-07-10T03:56:11Z")

</div>

I tried to draw a zinnia, but the first petal is always at the bottom and cannot form a perfect loop with the last petal. How can I modify the code? float r=400; float kuan=200; float chang=400; void setup() { fullSc…

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=3)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=5)
