-
Notifications
You must be signed in to change notification settings - Fork 122
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
Canvas renderer does not work on chrome OS. #41
Comments
i dont have a chrome OS device to test with but will install a virtual box image later today. |
Let me know if you need any more info about the source code as the JS is minified and compressed. |
Can you give me some more details about the device and the chrome OS version? I have downloaded the chromium browser, and it seems to work. It might take me a while to get a proper virtual box image. |
So it works absolutely fine on all versions of chrome except across the board on android as far as I can tell. It also works if you set the renderer to image but for various reasons I require the canvas renderer. |
It appears that the canvasRatio is not being set correctly. |
which version of spritespin do you use? There has been an issue with hi def canvas which i had fixed recently |
looking through the sourcecode on the page it seems you have an older version of spritespin. Please try a recent version which you can get here http://unpkg.com/[email protected]/release/spritespin.js or via NPM
The examples from the website do work under android |
I'll try updating thanks m8, am using yarn so the lock file may well be out of date. |
Updated and still getting the same issue although feeling it's to do with spritespin being instantiated to early and not yet knowing the dimensions of it's wrapper. Going to close this issue as your demo's seem to work on chrome 4 android. |
i see you use pretty large spritesheets. Maybe it is related to #42 |
i assume this has something to do with the maximum texture size of a device. check this site to detect the limitation on your device GPU SpriteSpin seems to do correct calculations, but as soon as it gets to the HTMLCanvas.drawImage then the drawing is simply not correct, the image seems to be downscaled. The Canvas element on Chrome is GPU accelerated so a call to HTMLCanvas.drawImage hits that GPU limit. However, this is all speculation since i can not find a proper documentation (right now) You could split your sprite sheet into several sprite sheets. All spritespin parameters wont change, except the |
the solution i mentioned is not functional yet (multiple sprite sheets), but i am working on it |
closed in favor of #43 |
jurassicworldevolution.com/research -> example
The text was updated successfully, but these errors were encountered: