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
Problem with svg textures on iPhone, iPad and Safari on OSX #3433
Comments
Confirmed on iPhone 5S, iOS 9.3 |
fix/graphics: get points for newly created shape (pixijs#3433)
I had the same issue with PIXI v4.5.5, tested with iPhone 6S and iOS 10.3.3. In my application, I am working with an isometric grid to place sprites, and sprites are also following this grid's base unit. Therefore I have e.g. the following sources to create a container ship scene (source paths contain the dimensions source = [
'assets/graphics/ship_10x17x10.svg',
'assets/graphics/container_1x1x2.svg',
'assets/graphics/grabber_1x1x2.svg',
'assets/graphics/cables_1x1x3.svg',
'assets/graphics/cabin_1x1x2.svg',
...
]; This will render the following on canvas in iOS Safari, as you can see the container/grabber are rendered behind the cabin texture which should not be the case: While narrowing down the problem, I made the following observations:
I hope this may help to fix the original problem. |
Hi there! Closing this issue for now due to its inactivity. Sure Apple have sorted this one by now :D Feel free to give us a poke if you would like this issue reopened. Thanks 👍 |
Hi @GoodBoyDigital, I guess that this is still a bug within pixi.js, since there is a workaround when placing those graphics in separated PIXI containers (see my comment above). Thus I recommend to keep this issue open. Currently I am short of time, but maybe it helps to add a link to the source code that is responsible for rendering/adding the SVG textures, so we can have a look into it. In case you do not intent to do so ;) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It looks like the there is an issue with svg textures in base64 format, on on iPhone, iPad and Safari on OSX (physical devices).
When creating two sprites using to different svg textures the second sprite is rendered having the first textrure and on top it's normal one.
To demonstrate the issue i created the following code pen snippet.
http://codepen.io/bravewick/pen/NbBPvw (use iPhone or iPad)
It looks that the problem lies on the the WebGLRenderer. Using CanvasRenderer works fine. On mobile devices I had problems with iPhone, iPad (Chrome and Safari). On OSX the problem appeared on Safari only. PNG textures are working just fine.
I tried to track down the problem but without success. I will try to look more into this later.
The text was updated successfully, but these errors were encountered: