Jump to content
Search Community

PIXI filters?

NDF test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

See the Pen qmXPMm?q=pixi%26limit=osublake by osublake (@osublake) on CodePen

 

See the Pen gLGYxx?q=pixi%26limit=osublake by osublake (@osublake) on CodePen

See the Pen PEVyPv?editors=0010 by osublake (@osublake) on CodePen

 

I personally haven't done anything with those filters but hopefully these demos from @OSUblake show a bit of what is possible.

 

  • Like 2
Link to comment
Share on other sites

Hi @NDF

 

The PixiPlugin is only configured to work with some of the built-in filters, like blur and color matrix. For all the other filters, you will need to create and animate them directly. The properties for a filter can be found in the filter docs.

http://pixijs.io/pixi-filters/docs/index.html

 

For the ShockwaveFilter, the time property is what controls its size.  That's the time value used in the shader, and is not related to the time/duration of your animation. 

 

var shockwaveFilter =  new PIXI.filters.ShockwaveFilter();
someDisplayObject.filters = [shockwaveFilter];

TweenMax.to(shockwaveFilter, 2, {
  time: 2.5,
  ease: Linear.easeNone
});

 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...