Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Browsing all 2896 articles
Browse latest View live
↧

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 Article


GWOptics 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 Article


oscP5 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 Article

new 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

video array?

hi all. Whats is the way to make this.

View Article

How 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 Article

Image may be NSFW.
Clik here to view.

grafica 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 Article


G4P 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 Article


G4P 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 Article

box2D 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 Article

Movie 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 Article

Blank/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 Article


How 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 Article


Unresolved 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 Article

I'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 Article


Redraw 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 Article

Image may be NSFW.
Clik here to view.

Interpolating 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 Article

server.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
Browsing all 2896 articles
Browse latest View live