error: sql AWT-EventQueue-0 OutOfMemoryError
The error I got is: Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC overhead limit exceeded The script I run is: msql.query("SELECT duration FROM table"); while (msql.next()){...
View ArticleGWOptics Library
Here at University of Alabama in Huntsville we had been using Processing 2 with a number of sketches that leveraged the gwoptics.org libraries. When we updated to Processing 3, the gwoptics libraries...
View ArticleoscP5 Message Recieved trigger function
Hi there i´m sending a message from one to another sketch and i want the receiving sketch to trigger an function everytime it receives a message. could i call a void oscEvent that only trigger when a...
View Articlenew SoundFile > 'target VM failed to initialize'?
Hi, I'm trying to get the sound example from www.processing.org to run but the code (copy from the site) crashed when it reaches: sample = new SoundFile(this, nameofthefile); nameofthefile is in my...
View ArticleHow to export as a PDF?
I've created a styled map using tilemill and unfolding maps and now want to export/save it as a pdf. Here's the code I've tried, however the pdf is saving as blank. Can someone help me as to where I am...
View ArticleHow would I be able to add a sound when the ball hits the paddle or wall?
float x = 700; float y = 350; float spd = 0.5; float paddle1Y; float paddle2Y; int p1Score = 0; int p2Score = 0; int p1Life = 10; int p2Life = 10; int dirX = -1; int dirY = -1; int state = 0; void...
View Articlegrafica replacing axis ticks with new strings
Is there a way to change to replace the label ticks for the x/y axis with a string instead of the associated number? For example let's look at this code: import grafica.*; GPlot plot; GPointsArray...
View ArticleG4P Placing Text Over an Image Toggle Button
Hello, I'm looking for a way to place text over top of an image toggle button. For the text, I need to be able to alter it when a separate button is pressed. I tried using a label, however, the button...
View ArticleG4P GUI Builder, as far as good. But using multiple windows is a challange...
Hello, Allways the Tool generates two Windows. The Main and the additional window. It generate the second as a synchronized void. A way to close or open i could not find. I have just started with...
View Articlebox2D collisions and chainshape failing
So... i was making "the nature of code chapter 5" that uses Pbox2D to work with physics. Here are the tutorials : https://www.youtube.com/playlist?list=PLRqwX-V7Uu6akvoNKE4GAxf6ZeBYoJ4uh Okay, so I...
View ArticleMovie Read (Frame Differencing)
What's wrong with my code. The video is playable but it is without the frame differencing filter. import processing.video.*; int numPixels; int[] previousFrame; Movie video; void setup() { size(1920,...
View ArticleBlank/Grey screen (frame differencing)
My code seems like a little bit buggy. Sometimes, i need to refresh few times to get the ideal results. This is very annoying and you need to keep on restart the processing and execute the code again....
View ArticleHow to read and understand serial data?
I am trying to connect my Neurosky EEG sensor with processing code without using ThinkGear connector. ThinkGear connector is an application which read serial data and transmit over WebSocket so that...
View Article(processing net library) code doesn't work over the internet (using public IP...
Hi everybody! I made two simple codes, one for the server and one for the client, all it does is show the value sent by the server on the screen of the client. I'm connecting trough my public IP...
View ArticleUnresolved import processing.serial
I am trying to execute Example 7-1 from the book Getting Started with Arduino, 3rd Edition. I am using Java below is an excerpt from the start of the code. I am unable to resolve the library reference...
View ArticleI'm trying to use minim to create a sounds when the balls collide, but i'm a...
import ddf.minim.*; import ddf.minim.analysis.*; import ddf.minim.effects.*; import ddf.minim.signals.*; import ddf.minim.spi.*; import ddf.minim.ugens.*; Ball[] balls = { new Ball(100, 400, 20), new...
View ArticleRedraw PGraphics object
I got this simple voronoi sketch below. I can draw this Voronoi into an graphics object with the getGraphics() method in the ToxiclibsSupport class. But when i press the mouse and are updating the...
View ArticleInterpolating points between dates on a graph
So i'm trying to create a graph with the grafica library, and I have preset data with x/y axis already. The x axis is a timeline of dates at random intervals. What's the best to interpolate the points...
View Articleserver.read
Hello everybody, I am using this code but processing says that the function server.read is not available. Anybody knows how I can do a server which can read data from a client? Thank you very much for...
View Article