Git Product home page Git Product logo

Comments (4)

tommoor avatar tommoor commented on July 23, 2024

I have managed to recreate this issue by modifying one of the provided examples, what would be the best way for me to share this? - i need to include a couple of assets.

from easeljs.

davrous avatar davrous commented on July 23, 2024

Hi,

I've got the very same issue. If I'm removing the flip calls of SpriteSheetUtils, all my BitmapSequence display correctly. If I'm flipping, my 4 BitmapSequence have the very same sprite sequence as the last one (the forth one). Ever more weird: if I'm only adding 3 of my objects (instead of 4), there are displayed correctly every time... recreating the workingCanvas is indeed fixing the issue but this is not very memory/performance efficient.

I've tried to clear the canvas between each operation via :

this._workingContext.clearRect(0, 0, this._workingCanvas.width, this._workingCanvas.height);

But this doesn't help.

I've got also a repro sample ready if needed.

Regards,

David
http://blogs.msdn.com/davrous

from easeljs.

slimulus avatar slimulus commented on July 23, 2024

Hi guys/gals,

I have just started working with EaselJS in the last couple of days, and I encountered the same issue almost immediately. I was able to isolate the problem to SpriteSheetUtils.flip() as well. Because my project uses sprites with extremely limited color palettes, I have just opted to include the flipped sprites into the images from which my SpriteSheets are generated. The difference in file size is negligible, but it is sort of inconvenient and wouldn't be an acceptable workaround if I were using larger/more complicated sprite sets.

The issue does appear to be somehow related to browser caching, but I find that I can produce the incorrect sprite display (100% reproducible) only on the initial page load. After a refresh, I am unable to reproduce the issue on any subsequent page views.

For now, avoiding SpriteSheetUtils.flip() is an adequate workaround, but as the project grows, I would like to see this issue pinned down/resolved.

Thanks,
Sheldon

from easeljs.

gskinner avatar gskinner commented on July 23, 2024

This should be fixed with the .addFlippedFrame() implementation in the current build.

from easeljs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.