My transformation started with ThoughtFaqtory nearly a year ago and before that I was a new vehicle salesperson with a propensity for pyrotechnics. . . like blowing things up! With a burning desire to be in the IT industry, but without an opportunity to make the move to becoming a software developer, I was up the river without a paddle! A couple of years ago the motor industry experienced a downward trend in sales, realizing that this maybe a blessing in disguise, a Plan B was necessary. While sitting on the sales floor watching tumble weeds roll past, I embarked on teaching myself Java, as I was more than willing to invest that time in my future. By the end of last year I felt confident enough to find myself an employer that would be willing to take me on. ThoughtFaqtory was on my radar, through a newspaper editorial, and contacted Simon and Phil Barber. They offered me this huge opportunity to learn from within their company and then spent the next 6 months on a rigorous training program using Flex.
So the former sales person was morphed into a developer, but I must share a little secret – my father was a programmer for Siemens, so let’s say it’s in the blood. ThoughtFaqtory offered me some time to research a technology of my choice and was given the opportunity to post this blog. Two weeks was invested learning how to use Pixel Bender; there are numerous amounts of resources that you can look at if you want to learn how to use it. Keith Peters had a fantastic chapter on Pixel Bender in his book “Advanced ActionScript Animation” which was a great help and also adapted one of his examples to my needs in this example. Also available was some excellent info from Lee Brimelow and his tutorials on www.gotoandlearn.com. A shout also goes out to Jonathan Hart who had an awesome example of RGB sine distortion on http://synja.com, which was adapted for this presentation.
This article does not cover the actual Pixel Bender code but shows you how to import the filters in Flex and create a small animation using 4 filters that were created in Pixel Bender. I implemented a base class that each of my custom filters could extend. This would give them the ability to dispatch an event when any of the properties on the filter have been updated. My application could listen for this event on each of the filters and reapply them to the image and update the display.
An animation class was created that would control this and allow various properties to be animated. I do realize that Flash actually provides such classes already but wanted to discover this unknown territory for myself and see how well I would do in solving any obstacles that were cast in my path. It was another learning curve and an enjoyable one. The AnimateFilter class takes an array of Properties on the filter that should be animated. Provision was made for reversing the animation, setting a delay to start the animation and also setting a delay to reverse the animation. The AnimateFilter takes a target, which is the filter that contains the properties to be animated. This can be set up in MXML.
The resulting image has the filters applied and you can see the result when you move your mouse over the image. Four filters have been attached to the image and have an animation set up for each of the filters, which plays on the mouseOver event. The combination of all 4 filters gives an unusual effect. . . at least I think so. CHECK OUT MY EXAMPLE ABOVE.
So there you have it. I am very proud of how far I have come from being a salesperson less than a year ago to where I am now. I would never have been able to absorb this amount of information without the help of all the awesome staff at ThoughtFaqtory. There is a realization though that with this kind of opportunity comes the responsibility to apply myself and work hard to achieve my goals. But in the meantime, I’m loving every minute of it and still blowing things up . . . only kidding.
[...] From Salesperson to Software Developer [...]