A new year, a new Flashforum Conference. The organizers Sascha and Marc invite you from 2nd to the 5th of June to Cologne. It is my third time at the Flashforum Conference and I think it will be a great event just like the last two years. This time the conference will be also a little bit more workshop-based with two extra days (pre and post conference) full of workshops. I will have one session about Hydra like in Amsterdam and another one about my inline bytecode compiler and optimizer. Be prepared — it will definitly rock.
Archive for the 'hydra' Category
Page 2 of 2

I am happy to announce that I will speak at the FITC in Amsterdam. My session is titled “Chop the Hydra!” and guess what it is about?
Probably you noticed that I was working with Hydra a lot in the past. Everyone who worked with BitmapData will love Hydra and I have the honor to introduce you into the world of shaders. And even better: It is not only about Flash since Hydra filters work with AfterEffects too.

Working with Hydra for some days gave me a better knowledge of how things actually work and I thought it might be worth trying something that is a little bit harder. It is very funny to implement a complex filter on the one hand and keeping it Flash compatible on the other hand. You will see a lot of this in the code.
I really enjoyed writing this one. It helped me again a lot and I think you might learn a lot from the source code as well. By the way I started first with a k of 4 but that was crashing Hydra all the time. Might have looked better but 2 is also ok. Have fun!

Thanks to Zeh for poiting out that a short if is possible and succeeds in the Hydra compiler with Flash warnings enabled. So you can use them only if your values are constant but the use of this is already fantastic. See this nice “technodots” filter which shoul be 100% Flash compatible if we can trust the compiler. It works because all parameters and function results have been set to variables before doing the if.
I think Adobe showed this filter during the keynote. Could not find sources for it and my internet is at home to crappy in order to watch the video again but it was something like this if I remember correct.
Update: To complete the list of filters they showed during the keynote here is a cheap twirl as well.

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.
