Archive for the ‘rendering’ Tag

Shaders in Processing 2.0 – Part 1   4 comments

The new OpenGL renderers in Processing 2.0 (P2D/P3D) rely extensively on GLSL shaders. Although in most common situations the use of shaders is invisible to the user, Processing includes a new PShader class that allows to apply custom shaders to the drawing of the sketch. This post describes the shader architecture in Processing 2.0, and the common interfaces that custom GLSL shader code needs to include in order to be accepted by the OpenGL renderers in Processing.
Update: With the release of Processing 2.0 final, some of the contents in this post are outdated, please check this tutorial for a detailed description of the finalized shader API.

Read the rest of this entry »


Posted August 2, 2012 by ac in Programming

Tagged with , , , , ,

Processing Painter   Leave a comment

I have been working since a while ago on a painter algorithm that uses GLSL shaders to handle a particle system in real time. The particles move on the screen, generating an effect that gives the impression of flowing paint. I implemented this algorithm in Processing, and the last week I finally managed to get some time to work on two optimizations to the original version of the algorithm: texture displacement mapping and Vertex Buffer Objects. With these two optimizations, the number of particles that can be displayed at a playable framerate goes from 10,000 up to 100,000. Here is the link.

Posted February 4, 2008 by ac in Programming

Tagged with , , , , , , ,