eXperiment robotics framework

Loading the shaders:

Edit the xml file of the shaders that should like this. The texture effects are mainly applied with the fragment shaders, they will be applied to each pixel of the sourceImageFile.
<plugin library="liberf_fbo">
        <vert> </vert>
        <!--<frag>emboss.frag</frag>-->
        <!--<frag>laplacian.frag</frag>-->
        <!--<frag>mean.frag</frag>-->
        <!--<frag>gaussian.frag</frag>-->
        <frag>sharpen.frag</frag>
        <sourceImageFile>robot-mecca.png</sourceImageFile>
</plugin>

Shaders just in 2D:

To constrain your drawing just to 2D coordinates call this code before starting drawing, i.e. in run just after window3d->make_current().

void reshape(int w, int h) {
    if (h == 0)
        h = 1;
    glViewport(0, 0, w, h);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(-1, 1, -1, 1,-100,100);
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
}

The miarn project - written by Joao Xavier