fagn88

SVG Sheet

Recommended Posts

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.. 😔

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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. 😉

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.