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

Problem with VertexShader operation

Hello !I'm trying to apply a custom shader on a textured plane. I want to add custom attributes that represent the position (XYZ) , the rotation (XYZ) and the scale (XYZ) and apply the transformation...

View Article


Re : choose your own adventure game with video transition

Please help!! Really need to get this done and Im super stumped!

View Article


Re : choose your own adventure game with video transition

So i think I have it really close to being done now. its not giving me any errors but isnt playing any of the videos.Here is the code i have up to now.int currentPage = 0;Page[] pages = new Page[11];...

View Article

Get zbuffer in Processing v2b6

Hi,I am trying to access the zbuffer of a Scene in Processing 2b6.The idea is to port this project to processing v2.It seems that the object FloatBuffer hasn't got the array zbuffer anymore.So I tried...

View Article

Re : Get zbuffer in Processing v2b6

first, one detail with the glReadPixels() call: you should use height - mouseY - 1 instead of mouseY, because of the inverted Y axis in Processing with respect to OpenGL.Any of the two following code...

View Article


Re : How to use PShader.bind / PShader.unbind ?

You should bind after beginPGL() and unbind before endPGL().

View Article

Image may be NSFW.
Clik here to view.

Re : Get zbuffer in Processing v2b6

Yes it works!The first implementation with the processing-core repo at google code worked.The second one throwed an exception,Caused by: java.lang.IncompatibleClassChangeError: Expected static field...

View Article

reading and writing audio buffers with minim

      When I read an audio buffer with a FOR loop (L, R, Mixed) I get a corrupt wave forms.  I looks like processing/minim gets part way through the buffer and it's overwritten by the audio card...

View Article


Re : Problem with VertexShader operation

You are applying the projection-modelview matrix two times in your vertex shader:vec4 pos = projmodelviewMatrix * inVertex;andpos = projmodelviewMatrix * position;That might be causing the problem.

View Article


How I stop soundfiles from overlapping when using the Minim library?

So I'm triggering a bunch of audio snippets using the AudioSnippet object, rather than trigger which had this weird doubling effect. How I can stop one file from playing when another is selected? I...

View Article

Re : How I stop soundfiles from overlapping when using the Minim library?

if (snippet1.isPlaying()) {  snippet2.pause();}

View Article

Re : Problem with VertexShader operation

Hello Andres !It's an error... I forgot to remove it before posting the code...  (At the end I tryed everything like apply this function at the beginning of the code to see if something happened...

View Article

how to video capture only a portion of the screen

I've been working on this code which has a live feed of a webcam in the centre of the screen, and when you press 'a' it takes a screen shot, and then displays it in a grid on the screen around the live...

View Article


Re : how to video capture only a portion of the screen

You can grab a rectangular section of the screen with "get(x,y,w,h);" which returns a PImage.

View Article

Re : how to video capture only a portion of the screen

i was wanting it to be part of the saveframe section, i dont know if thats possible?

View Article


Image may be NSFW.
Clik here to view.

Re : how to video capture only a portion of the screen

PImage img = get(some part of the sketch);img.save(savePath(insertFrame(filename)));The second line is what is in the saveFrame() function.There is also an article that might interest you:From several...

View Article

Issues with controlling video clips.

Fairly new to Processing, and could use some help and input. I'm working on a project in which it's necessary to control at least two video clips. I've been using the Processing Movie reference and...

View Article


sound output from an array of floats from processing

      Is it possible for minim to play an array of foats generated in processing?   My processing sketch produces arrays representing signal amplitude as a function of time.  It's basically pulse code...

View Article

writing sound file formats in processing and minim

Can Processing write sound files directly so they could be played with Minim?

View Article

Re : video playlist

HeyI am trying to work with a videoplaylist. I would like to choose one video out of an array, play it and if the clip is finished, play the next video.If the current time of the first clip is bigger...

View Article
Browsing all 1768 articles
Browse latest View live