Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [processing]

Processing is an open source programming language and environment for people who want to create images, animations, interactions, and games.

1
vote
0answers
7 views

Does Processing have a 3D Physics Engine Library?

I was looking around and haven't found many good examples of 3D physics engines in Processing. I've seen Daniels Shiffman's example of using bRigid 3D physics, but I'm looking for something more ...
0
votes
0answers
13 views

How to calculate new lower/upper points of a 3D Bounding Box after rotation in Processing?

I have a BoundingBox class that I'll provide below. It works for moving objects, but not rotating ones, meaning that if I rotate the object that utilizes the boundingBox the boundingBox has no way to ...
1
vote
3answers
51 views

ArrayIndexOutOfBoundsException: 5 - OOP EXPERIENCE GONE WRONG [duplicate]

I'm trying to make a map for a game in Processing. In the map there are rooms and in these rooms there are paths.I have an ArrayIndexOutOfBoundsException: 5. I've tried to reduce the memory allowed....
1
vote
0answers
56 views

A* algorithm not reaching end point with danger nodes

I am trying to implement A* algorithm visually in Processing. It works fine if I run it simply.But when I try to implement danger areas, the algorithm fails to work. I created the danger areas by ...
1
vote
1answer
24 views

Canvas automatically resizes to 50x50

I'm trying to transfer a fairly big project from Khan Academy to the "real" world, but keep getting the same problem, when I run my code the canvas resizes to a lot smaller than I wanted and turns ...
0
votes
0answers
13 views

Importing Depth Map data (XEF)? [Processing]

Is there a way to import Depth Map data and/or XEF files into Processing for use in a point cloud?I've seen a few topics on exporting, next to nothing on importing.I've not got a working Kinect at ...
1
vote
1answer
38 views

Point of intersection between bezier curve and circle

I am aiming to create the following (a directed arrow that connects two nodes) :At the moment I have this (a quadratic bezier curve drawn from the center point of one node to the center of another): ...
-1
votes
2answers
65 views

Create processing enum with existing variable

I'd like to create an enum with values which use existing variables. I'm using Processing, therefore the width and height I specify are java globals and can be accessed from anywhere without context....
2
votes
0answers
44 views

How do I compute Divergence and Curl for 2D vector fields?

I'm coding an applet that displays 2D vector fields in Processing. On a 1000x1000 canvas, I'm drawing a 20-pixel-long arrow starting from every point identified by a grid on the canvas with a ...
0
votes
1answer
26 views

Processing on Java error on Mac OS

I got this error message in the console when I tried to run, I just switched laptops and I've wiped my old one. This project has always been stored in a USB so I use that to run it on my new laptop. (...
1
vote
1answer
17 views

(Processing) Converting type file into type string?

I'm trying to get my application to open an audio file via a button (which works) and display the data of the file in the console (which also works)The application is unable to play the file because ...
0
votes
1answer
10 views

controlP5 number box variable printing

I am trying to print a variable in the number box using controlp5. The data is read from the serial port and stored in a variable. I want to print the value in the number box it is not working. when I ...
1
vote
5answers
65 views

Remove namespace from class in java

I have created a Processing sketch in IDEA, and am using multiple files. However, in the second file, none of the Processing methods are defined, so I found a trick: ...public static PApplet ...
-1
votes
1answer
16 views

Saving PNG from Processingjs sketch?

I'm running my processingjs sketch locally and I'm trying to save a PNG of my canvas but I can't get the regular commands saveCanvas("image", 'jpg'); and save("diagonal.tif"); to work.Does anyone ...
1
vote
1answer
44 views

Trying to get a triangle to point to the mouse

I hate to admit it, but I am awfully stuck on a game I have only just bleeding started. The concept is quite simple really, I have a triangle that I want to point to the mouses position. Naturally I ...
0
votes
1answer
35 views

Processing Arduino Communication Comparison

My Processing code succesfully print the string data sent from the Arduino, however I cannot do a comparison using IF/ELSE. For example, on console it prints "ic" however it doesnt run the if value==...
1
vote
1answer
32 views

How to find new x,y,z after applyMatrix in Processing?

I have a model with joints that individual shapes rotate around. The model is translated to the center. The matrix applied with applyMatrix() is a rotation matrix based on a quaternion value so it can ...
0
votes
1answer
40 views

(Processing / Java) Converting a singular file function into a function that takes an array

I am trying to create a program that uploads multiple files and stores their name and BPM tag into an ArrayList ready for comparison between the files. I have found two functions to help me but I am ...
-2
votes
2answers
40 views

Create a function to draw outside of paintComponent in java [closed]

I'm trying to create a mini version of Processing.I created a subclass of JPanel and tried to store the Graphics of paintComponent() in a variable and created a ton of functions to render everything....
0
votes
0answers
29 views

Arduino-Due receiving strings from Processing via serial

I'm relatively new to coding for Arduino's so am hoping for some help in order to get me back on the right path. What I am trying to achieve is to send values (one value on each line of a txt file) ...
2
votes
1answer
37 views

Can we create partially colored text in Processing?

I want to learn to create partially colored text/String in processing(java) like below example. It can be 10% white 90% black. or any ratio for any two color. I would like to learn how to do it in ...
9
votes
3answers
206 views

Visualization of the Recaman Sequence

I saw a video about the Recaman Sequence by Numberphile. If you don't know the algorithm you can look at this link: https://www.youtube.com/watch?v=FGC5TdIiT9U or this one: https://blogs.mathworks.com/...
4
votes
2answers
37 views

add rows of 2D arrays in processing

I'm trying to create a function to sum up the rows of 2D arrays. I already have the code, but the return value does not seem to be working. Just need your thoughts as I need this finished in 24 hours :...
0
votes
2answers
45 views

regex - add dot prefix excluding words that already have a dot

Lets say I have the following input strings:range (bar | thumb_1 | thumb_2 | fill)range(bar|thumb_1|thumb_2|fill).root.range.barThen I want the following output:.range (.bar | .thumb_1 | ....
-2
votes
2answers
73 views

How to destroy an object once it leaves the screen?

In my code I have a class, Key that can create a key at a random coordinate. When a key is pressed, that key is added to an ArrayList. The ArrayList is iterated in the draw() method, and the key ...
-2
votes
0answers
17 views

Creating a 3d point cloud representation of an object using kinect and processing

I've been trying to create a 3D point cloud representation of a particular object using an XBOX 360 kinect such as the one below. I found this video where he goes through the process of creating a ...
1
vote
1answer
21 views

Creating Multiple Clickable Divs with p5js

EDIT: I figured it out. I just went a totally different route, making a Button class and using rectangles on my actual canvas to represent them.I am trying to make multiple clickable buttons ...
0
votes
1answer
26 views

How to rotate a 3D object around another point in Processing?

Here's a very simple Processing program that rotates a cube around the x-axis. In Processing, the box function's parameters are for the size of the box, but not the location. So in order to move the ...
0
votes
0answers
16 views

I can't get both the fragment and the ad to display

So, I wanted to import a project into android studio from processing. I did it, but when I tried to add an ad to the app, I couldn't do it. Here is my main activity code:protected void onCreate(...
-1
votes
0answers
26 views

Processing Cannot find folder

I am trying to loop through a folder in processing, the folder is in the data folder, and is set up like thisdata/fireballAnimBut whenever I try to find the folder in the data folder it cannot ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,