-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filters on SpriteSheets use WAY to much system resources #1056
Comments
Could you create a blurred version of the sprite in an image processing app like photoshop? Then swap out the sprite for the blurred sprite? |
I would but this particular filter was just for testing and besides all the filters added to the spites need to be dynamic as the player will change the values. The actual filter I’m going to use is a color filter, the player gets a “paint job” and adjusts their color on fly for over a hundred player sprites. |
I did something with this before. Basically I created filtered versions of the whole spritesheet once and then used the cached version. I doubt my implementation works anymore, but you may be able to do something with the code: https://github.com/MannyC/FilteredSprite.js |
Many thanks for this, a few minor adjustments were needed to be made but it works like a charm! |
@WindowsTV - glad you worked it out. If you would like, you could let us know the changes and perhaps we can see about getting this implemented. Thanks, too, @lannymcnie ;-) |
Sure can, @danzen! Provided below is the modified code to work with Sprites and SpriteSheets:
The way to activate the filters is the same in MannyC's version. I have to say props to them for making a great system because it was easily upgradable to the current Sprite API! |
Thanks! @WindowsTV - looking forward to going through it. Will let you know what happens! Cheers. |
This is a question and a bug. I have tried Stack Overflow and I was just being ignored so I am here now, hope that's okay. I am working on a game that uses a lot of Sprite Sheets on screen, one of them requires a filter during game play.
I tried:
As suggested but all it does is boggle down my game's performance due to the amount of rendering on the screen. I have provided a work around that someone has made, I was able to get it to partially work. I load in my SpriteSheets through Preload.js and can't automate their system to use the details from my spritesheet.json.
I am asking for an internal way to add filters on to the sprite's image set similar to how the workaround acts.
Thank.
Issue Details
Current Version of EaselJS
Workarounds:
https://jsfiddle.net/lannymcnie/NRH5X/
The text was updated successfully, but these errors were encountered: