-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
flame_tiled
does not render on Web with packed tilesets
#1888
Comments
In _RenderableTileLayer._cacheLayerTiles(): batch.addTransform(
source: src,
transform: ui.RSTransform(
scos,
ssin,
offsetX + -scos * anchorX + ssin * anchorY,
offsetY + -ssin * anchorX - scos * anchorY,
flip: false, // <- We don't need Flip here.
// flip: flips.flip,
),
); If Whatever |
|
Have you tried running it in any non-chrome based browsers? |
The next largest non-chrome browser would be Safari - I'll give it a try on a mobile device and see. |
Same setup but with flips removed (which is incorrect):
So color me super confused. |
Any difference on different renderers? |
Last comment: in |
Chrome-desktop with HTML render: no images loaded. FpsTextComponent shows "2" - not 100. |
--web-renderer canvaskit and useAtlas: !kIsWeb
Chrome Desktop (localhost, ip:port): 100fps (smooth as glass) all images load |
I'm also not getting bad boundary paints with I could put up my hacky "codefu is playing with tiled way more than he should be" project if you'd like to see the repos. |
The sliver you are talking about is probably this issue: flutter/flutter#14288
I wonder if this is a degradation in Flutter then, because we used to have this by default in the code some versions ago if I remember correctly. |
It's this bug! flutter/flutter/issues/103803 Closing this as its a Flutter bug for 3.3.0 |
for anyone else on flutter 3.3.0 and testing:
|
Current bug behaviour
TiledComponent.load()
with a tmx file containing an internal (packed) tileset does not render when running Flame on Chrome or Edge targets.Expected behaviour
It renders on web.
Steps to reproduce
E.g. embedded tileset:
To get it working:
Flutter doctor output
More environment information
Log information
There are actually no error logs. It fails silently.
More information
It does render on Android and Windows native.
The text was updated successfully, but these errors were encountered: