More on Hydra

As I told you I will have a closer look on hydra and the results are nice. I was able to build a Spherize, SinePlasma and OldschoolPlasma in about an hour. I think you have to keep in mind that Hydra will work together with Flash. Plasma functions are a good example because you could generate the texture in grayscale using Hydra and then use a paletteMap() in Flash.

I am not so sure about the spherize though. I have one if-statement inside and they are not allowed if you use Flash. Funny new problems will pop up but I have a good feeling and one thing is for sure: the syntax and editor are already better than what we have with AS3/FlexBuilder! Highlightning of matching brackets, no stupid function and no var keywords. Finally! Can I have that with AS3 please?

  • Oldschool – Simple oldschool plasma effect. You have to use a color palette with this.
  • Ripple filter – Sine distortion for an image.
  • Sineplasma – Sine plasma with adjustable levels, frequency and amplitude.
  • Spherize filter – Spherical displacement map with adjustable center, radius and refraction strength.
  • Structure – Filter with adjustable 3×3 structuring function.
  • Warp – I wanted to do an affine transformation until I found out it does not work with the way hydra works. I will try again.
  • Gamma correction – Look how simple it is!
  • Pixelate – Could not be easier than that.
  • Sepia – I hate those ColorMatrixFilter sepia effects. Now this one is fast and has nice quality using Y-transform.
  • Quantization – A color quantization filter.


  1. Amit
    Posted Oct 2, 2007 at 8:21 pm | Permalink

    hi, thnaks for sharing!
    can you say a bit more about the integration of that into flash??

  2. Posted Oct 2, 2007 at 8:40 pm | Permalink

    Apparently you can use inline IFs and it’ll work for Flash:

    whatever = condition ? iftrue : iffalse;

    I’ve ran it with no warnings from AIF, so I’m led to believe it works. However, the iftrue/iffalse values have to be variables or constants; no nesting. This means there’s a lot you can do, but you might need to break it down into several different variables.

  3. Posted Oct 2, 2007 at 8:49 pm | Permalink

    I am not really sure. I think it does not work? For the Sepia example I already used min,max instead of if constructs.

    And Amit: I have no idea about that. Let’s wait what Adobe will tell us. All the examples work with the AIF toolkit.

  4. Posted Apr 22, 2008 at 10:00 pm | Permalink

    [Can I have that with iAS3 please?]
    To my mind, no. But if you want write me, I have some advices.

6 Trackbacks

  1. […] « Converting a Number to 4 bytes and vice versa More on Hydra […]

  2. […] un nouveau langage de traitement des images (Adobe Image Foundation Toolkit, nom de code “hydra“) qui permet de faire des effets graphiques surprenants (comme ici et là). […]

  3. […] More on Hydra at – blog and database of joa ebert […]

  4. […] bisher nicht sicher war, ob Hydra nun cool ist oder nicht, sollte sich unbedingt mal die ersten Experimente von Joa Ebert ansehen. Ich glaube der Spassfaktor des 10′er Players wird wieder sehr hoch […]

  5. […] Exemple de code Hydra […]

  6. […] The PixelBender filter used here is based on Joa Ebert’s Spherize Filter originally built in Hydra – the forerunner of […]