A couple weeks ago I was contacted and asked to write some filters for Starling that could be used in a mobile camera application. To be honest, I’m not sure what’s become of the app as I’ve lost contact with the developer, unfortunately. A part of the deal, however, was that I eventually open source the filters, so I’m going to go ahead and do that now.
So, to my Starling Filters repo on Github, I’ve now added seven new photographic effects:
- AnselFilter is a highly configurable way of making black and white images.
- BleachFilter will bleach the color out of images in a fairly interesting way.
- BloomFilter a relatively standard bloom effect with adjustable color.
- LomoFilter does a bit of toy camera/Lomo/Vintage color adjustment.
- NoiseFilter will add a custom amount of grain/noise to an image. Animating the seed parameters can produce a nice static effect.
- TiltShiftFilter will produce a decent tilt shift blur. To be effective, this filter requires multiple passes, though, so probably isn’t that useful in performance critical situations.
- VignetteFilter creates a standard vignette effect with optional sepia colorizing.
Stage3D developer tips:
From BJÖRN ACKER:
“For my current side project – a comic zombie shooter game – for which I utilize the ND2D framework - I wanted to add some atmosphere by putting a colored fog layer on top of all game layers, from which I could cut out multiple alpha masks to get something like search lights or illuminated auras. After building some – at least for myself – super complex AGAL fragment shaders I ended up with a pretty simple solution”
Built as an in-world course syllabus, this educational site paid specific attention to the time period with a microfiche layout and multiple layers of content, including hand-colored photograph character pages.
“All the meaty work regarding tone generation and workers are in the CalculatorNodeRenderer and WaveformCreatorWorker classes. I write the data from the worker from the previous SampleDataEvent while the worker generates the data for the next one - so FlashPlayer is actually doing three tasks simultaneously: offering a responsive UI, playing a tone and generating the next tone.”