Quantcast
Channel: Processing Forum
Browsing all 1768 articles
Browse latest View live

Convert Arduino serial numbers into variables?

Hello Processing community!I'm trying to visualize some data gathered via Arduino in Processing. Right now, the Arduino collects a string of numbers via EEG, all separated by commas. I'm just really...

View Article


grab viewport as pdf file of custom size

Hey guys!I have a processing script with multiple 3D animated spheres in OpenGL. I am getting rid of the background() in order to pan or zoom the camera and have the trails of the spheres drawn on the...

View Article


Re : Convert Arduino serial numbers into variables?

You want the int() function (see Reference page).

View Article

Re : grab viewport as pdf file of custom size

AFAIK, PDF is incompatible with OpenGL. It is based on Java2D drawing.You can try and use 1.5.1 in P3D mode, perhaps.

View Article

Re : grab viewport as pdf file of custom size

Thanks for the info. :)What do you mean by 1.5.1.? and is there another way to do this in OpenGL?

View Article


Re : grab viewport as pdf file of custom size

1.5.1 is the previous, stable version of Processing, which still uses Java2D behind the scene, while in the 2.0b series, it uses OpenGL, so with it, you are back to square one."is there another way to...

View Article

Re : grab viewport as pdf file of custom size

thanks you so much for the help!:)

View Article

Re : grab viewport as pdf file of custom size

Side note, looking at your subject: the PDF library doesn't "grab the viewport", ie. it doesn't magically take a high resolution screenshot of the screen. All drawing operations done by Processing must...

View Article


How to call glAlphaFunc()? Can't figure out these compile errors

I'm trying to figure out how to enable GL_ALPHA_TEST and how to call glAlphaFunc(), as they are not wrapped in PGL.Looking at Processing's source code, I found in PGL.java:import...

View Article


how do you put a counter on any array?

i am a grad student and new to processingi am working on a piece with an array of video clipsi want the array to be accessed consecutively until the array has been completed at which point it would...

View Article

Re : how do you put a counter on any array?

I don't use that library, but it looks like what you are looking for is modulo: http://processing.org/reference/modulo.htmlUse it like this:int index = 0;// A sample list in alphabetic order to show...

View Article

Re : Convert Arduino serial numbers into variables?

Can you give me a sample of what I need to do....? I'm so sorry but this is so new to me D: Thanks so much for the resposne though!

View Article

Re : How to call glAlphaFunc()? Can't figure out these compile errors

I solved it withimport javax.media.opengl.GL2;PGL pgl= ((PGraphicsOpenGL)g).pgl;pgl.enable(GL2.GL_ALPHA_TEST); //3008PGL.gl.getGL2().glAlphaFunc(516, 0.0);However I'd like to understand why...

View Article


Re : Convert Arduino serial numbers into variables?

The example is in the Reference page.

View Article

Re : how do you put a counter on any array?

it was already looping through the arraybut i am trying to get it to pick up at the next point in the arrayas the mouse is pressed or not pressedi.e. it is a linear string of video clips which can be...

View Article


Re : how do you put a counter on any array?

 I think the problem is at line " myMoviesIndex = 0;" and also the chain of testing is a bit confused ... well an example says more than a thousand words :) I'm not testing if some one is there as...

View Article

How to destroy Movie threads?

Hi,I'm running a sketch which loads lots of movies one after another, but I'm noticing that each new movie adds additional threads.Over time this really slows things down as the cpu gets overloaded.How...

View Article


Processing Video

Hi there,I'm using an ultrasonic sensor with the arduino so that when a user is a particular distance away from the sensor, processing will then play a video.All in all there a 4 videos that I want to...

View Article

Re : how do you put a counter on any array?

vk,thanksthe mouse pressed is a sub in for a sensoreventually the piece will be activated by someone being there and not the mouse presssorry am inarticulate (learning the language)appreciate the helpclem

View Article

Re : PImage Memory Leak Example

I don't know how often people say that they love you, PhilLho, but not nearly enough. As usual, I have a problem and the answer to it is a reply by you on the Processing forums.

View Article
Browsing all 1768 articles
Browse latest View live