More on Hydra

spherize2.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.

4 Responses to “More on Hydra”


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

  • 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.

  • 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.

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

Leave a Reply