Jump to content
Search Community

pixiPlugin and pixi2.2.5

reno 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

Hi

Does anyone know if pixiPlugin can work fully with Filters using pixi 2.2.5. I am able to make if work using scale, rotation, alpha but no filters like blur, contrast, saturation, colorize. All filters seem to error at the same place. Cannot read property 'length' of undefined which is at filterPasses.length in the code

Thank you in advance for you help. 

 

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

You're using PIXI 2.2.5?, that's a bit old and there is a good chance the plugin doesn't work with filters in that particular version of PIXI. If possible please try to update to the latest 4.x version of PIXI. Unfortunately I don't have time to go through the difference in filters implementations in these different versions of PIXI (2.2.5 vs 4.8.6) and see where exactly is the problem. But my guess is that perhaps it has changed during that time.

 

Perhaps our great master @GreenSock can shed some lights in this matter.

 

Happy tweening!!

  • Like 2
Link to comment
Share on other sites

@Rodrigo Thanks for the reply. Unfortunately, it is not possible to update in this project for me. :( Yes, It seems the plugin doesn't work with filters in my version of PIXI. Just wanted confirmation of that being the case.

Link to comment
Share on other sites

Frankly, I'm not terribly familiar with PIXI or what was added in each of its major releases, so I can't comment about really old versions and what they supported (like filters). I'd definitely recommend using a more modern version, but it sounds like that's not possible for you. I'm curious why, but I guess it doesn't really matter. 

 

Also, there's nothing in our codebase that references "filterPasses.length" - are you sure that the error isn't from your code somewhere? 

Link to comment
Share on other sites

@GreenSock I feel like the error is from the plugin... Applying the blurFilter using pixi has a 'passes' property ( becomes filterPasses) and makes it through that section in the pixijs code. That property is not available on the blurFilter using the pixiPlugin. 

The reason I am unable to upgrade- short answer -this is a work project that is underway and it is not my decision.

Link to comment
Share on other sites

Well, feel free to post a reduced test case that demonstrates the error, like in a codepen demo. That'd be SUPER helpful in troubleshooting. But again, I kinda suspect that the main problem is the super old version of Pixi that you're using. A demo will help confirm that, though. 

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...