-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
v0.29.2 introduces Graphics (Polygon / Circle) glitch in combination with Animations #3047
Comments
@djdenuyl Thanks for the very detailed issue! I'll dig into this today! |
I've located the source of the bug to some change in the It appears something is not handling rasters properly after a performance update, I'll dig into the exact cause and likely cut a point version with the fix asap. |
@djdenuyl Fixed! Released a new version of excalibur v0.29.3! https://github.com/excaliburjs/Excalibur/releases/tag/v0.29.3 |
Hi Erik, Thanks for the quick response and fix, nice job! I will upgrade to v0.29.3 |
Hi All,
I've been playing around with Excalibur (v0.29.2) and I came across the following bug when rendering Polygons and Circles in combination with Animation. It seems that whenever the animation flips to the next sprite, there is something happening in the rendering of the Polygon and Circle graphics (Rectangle seems to be fine). In my example code, the moving Actor flips through the sprites in its spritesheet when vel.y > 0 (i.e. moving down). when moving up, it just uses the first sprite from the spritesheet. When moving up - when the animation is static - there is no issue, but when it starts moving down, the actors that have Polygon or Circle Graphics start to glitch. I cannot really pinpoint what exactly is happening, since I'm new to excalibur (and ts in general, I come from a python background). I've made a screen recording of the issue. I found out that falling back to v0.29.1 resolves the problem. I've made a screen recording of that as well, as comparison.
This is v0.29.2 that has the bug
excalibur_bug.mp4
And this is v0.29.1 that does not have the bug
excalibur_nobug.mp4
Steps to Reproduce
test.png is just a simple 4 100x100px rect spritesheet with the rects having different colors.
Environment
I've reproduced the bug in both firefox and chrome on both my windows 11 and ubuntu 22 machines.
It seems the bug is introduced in v0.29.2 as v0.29.1 is not affected.
I've also tried 0.29.0 and 0.28.0 and they are also unaffected.
The text was updated successfully, but these errors were encountered: