LogoLogo
  • Home
  • Projects
  • About
  • Contact

Warp Filter for Starling

Devon O. · May 26, 2013 · Actionscript, Flash, Shaders · 5 comments
19

So, perusing teh internets once again, looking for something interesting to play around with, I came across this blog post of Pavan Podila (from 2008!). In the post, Pavan presents a WPF pixel shader which warps an image using bezier curves. I thought I’d have a go and reproduce the effect in AGAL and plunk it into a Starling filter. Essentially, the filter adds 8 control/anchor points to the filtered display object – 4 on the left edge and 4 on the right. You can move those points from 0 (far left) to 1 (far right) and the image will warp and curve to fit those points. You can check out the end product here. In theory, with a little patience and finesse, you could animate those points to create a nice looking Mac style genie effect. Or, whatever.

As I was working on that filter, though, I realized I had a decent sized Starling filter collection built up and spread out all over the shop. For that reason, I decided to put them all together and upload them to Github. So, now, you can download all the filters I’ve posted about (and one or two that I haven’t), including the Warp Filter demonstrated here, over on Github.

When I get some time, I’ll upload some tests to make it easy to see what each one can do. In the meantime, though, you’re welcome to have at, as is.

Enjoy.

  Facebook   Pinterest   Twitter   Google+
agalstarling
  • Spirography
    November 08, 2009 · 3 comments
    2246
    5
    Read more
  • OBO_Accordion: Another Scripted UI “Widget”
    June 03, 2008 · 10 comments
    2248
    2
    Read more
  • Magic Mirror – Halloween Terror
    October 26, 2009 · 0 comments
    1618
    2
    Read more
5 Comments:
  1. Is there a way I can rotate this filter so that it goes verticle instead of horizontal?

    Dave Gallant · November 19, 2013
  2. Hi,I very like your Warp Filter for Starling,i’ve checked out your products and downloaded Starling-Filters ,but it just a Source Code,i don’t how to use it to mark a product like you.Would you mind telling me how it works ? thinks.

    chen · April 16, 2014
  3. Great filters… can’t get them to work though – keep getting the following error when I try to instantiate them.

    Error: Error #3615: AGAL validation failed: Program size below minimum length for fragment program.

    Any help would be greatly appreciated.

    Daniel White · March 30, 2015
  4. Hey Daniel,

    Sounds like it may be an unsupported Context3D Profile. Try using baseline or even baseline extended rather than baseline constrained (if that’s what you’re using).

    Devon O. · March 30, 2015
  5. Hi and thanks for your work, but do you know why I get

    warning: bad line 0:
    warning: bad line 1: mov ft0, v0

    and finally the Error

    [Fault] exception, information=Error: Error #3615: AGAL validation failed: Program size below minimum length for fragment program.

    When I try to use one of your filters?
    Thanks!

    Stephan Müller · June 10, 2015

Leave a Comment! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Devon O. Wolfgang

AIR | Unity3D | AR/VR

Unity Certified Developer

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development” and “Starling Game Development Essentials”

Reviewer of “The Starling Handbook”

Unity Engineer at Touch Press.

Categories
  • Actionscript (95)
  • AIR (16)
  • Flash (99)
  • Games (7)
  • Liberty (13)
  • Life (53)
  • Shaders (20)
  • Unity3D (21)
Recent Comments
  • MainDepth on Unity Ripple or Shock Wave Effect
  • Devon O. on Unity Ripple or Shock Wave Effect
  • Feral_Pug on Unity Ripple or Shock Wave Effect
  • bavvireal on Unity3D Endless Runner Part I – Curved Worlds
  • Danielius Vargonas on Custom Post Processing with the LWRP
Archives
  • December 2020 (1)
  • December 2019 (1)
  • September 2019 (1)
  • February 2019 (2)
  • December 2018 (1)
  • July 2018 (1)
  • June 2018 (1)
  • May 2018 (2)
  • January 2018 (1)
  • December 2017 (2)
  • October 2017 (1)
  • September 2017 (2)
  • January 2017 (1)
  • July 2016 (1)
  • December 2015 (2)
  • March 2015 (1)
  • September 2014 (1)
  • January 2014 (1)
  • August 2013 (1)
  • July 2013 (1)
  • May 2013 (1)
  • March 2013 (2)
  • December 2012 (1)
  • November 2012 (1)
  • September 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (1)
  • December 2011 (2)
  • October 2011 (3)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • May 2011 (2)
  • April 2011 (2)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (3)
  • October 2010 (5)
  • September 2010 (1)
  • July 2010 (2)
  • May 2010 (5)
  • April 2010 (2)
  • March 2010 (7)
  • February 2010 (5)
  • January 2010 (5)
  • December 2009 (3)
  • November 2009 (1)
  • October 2009 (5)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)
  • June 2009 (2)
  • May 2009 (6)
  • April 2009 (4)
  • March 2009 (2)
  • February 2009 (4)
  • January 2009 (1)
  • December 2008 (5)
  • November 2008 (2)
  • September 2008 (1)
  • August 2008 (6)
  • July 2008 (6)
  • June 2008 (9)
  • May 2008 (4)
  • April 2008 (3)
  • March 2008 (4)
  • February 2008 (9)
  • January 2008 (7)
  • December 2007 (6)
Copyright © 2021 Devon O. Wolfgang