Hi all
I need your help and advices here
I discovered processing a few days ago and programmed a pattern generation tool with it. Programmed in one night, it was used for live visuals during a party on 4 screens driven by 2 MacBooks and one PC laptop.
You can have an idea of the thing here :
http://www.youtube.com/watch?v=gmpb9YYEPLU
The basic idea is to generate a pattern that can be slightly or completely different at each frame, then scale it, rotate it, and pave the whole screen with that pattern.
However i am facing a performance issue. therefore i am looking for some advices. I am unsure which approach to choose. so far i tried :
-use size(x,y) rotate() and scale() the referential and draw each pattern in using triangle(),quad().
-same as above but with size(x,y,OPENGL)
-use size(x,y) and draw the pattern once in a PGraphics object and replicate it on screen.
-same as above but with size(x,y,OPENGL)
None of these where fast enough. and i believe that with today's computer and using openGL, i could either:
- build up on the fly a texture of the pattern, make a quad() of the size of the screen, and pave it with the texture. however i didn't an option to make the texture repeat itself on the object. I didn't manage to use Pgraphics object as quad() texture anyways
- Draw each shape of the pattern using openGL triangles and fill them with the appropriate color. I thought switching to size(x,y,OPENGL); would do the trick. But when i look at the performance it seems it didn't
i am surely missing some basic thing here.
Any ideas or thoughts ?
PS: if some of you are interested, i can send you the source.
henri