fagn88 Posted February 12, 2021 Share Posted February 12, 2021 Hello! I was trying to create a svg sheet, packing all my svg images into only one like a sprite sheet. And I was using svg-sprite lib (https://github.com/jkphl/svg-sprite) to generate that. My question is, with pixi, how can I access each image inside generated sheet? This tool can generate svg-sheet in several formats (css, view, defs, symbol, stack), what would be the best for this? I tried several approaches already but didn't get a working one.. ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 12, 2021 Share Posted February 12, 2021 I did something like that with custom super-atlas , that put all SVG-s into same canvas and then on screen. Unfortunately its only for v4 and doesnt have demos (only one stupid, not svg) https://github.com/gameofbombs/pixi-super-atlas This is not easy problem, so if you want help - you have to wait when someone implements something like that fully for v5/upcoming-v6 , or you should post a demo that doesnt work for some reason. You shouldn't expect full solution for this nightmare in first answer fagn88 1 Quote Link to comment Share on other sites More sharing options...
fagn88 Posted February 15, 2021 Author Share Posted February 15, 2021 Hmm I see.. well, I thought that it was easier and it was me that was misunderstanding things. Since this is only a experience that I was doing, I will wait for a full support on future versions maybe. ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.