cnwerb Posted December 7, 2016 Share Posted December 7, 2016 Basically as the title states, does pixi support rendering and use of svg? Quote Link to comment Share on other sites More sharing options...
voidmen Posted June 21, 2017 Share Posted June 21, 2017 well, I think it has two folds. PIXI could render svg image and use it as Sprite texture. But, AFAIK, under the cover it renders that svg onto canvas and clip the canvas as image for texture use. So, yes it support svg, but the current implementation isn't so "NATIVE" Quote Link to comment Share on other sites More sharing options...
megmut Posted June 21, 2017 Share Posted June 21, 2017 @voidmen you are correct. Pixi generates a new canvas, and passes the source SVG along with it's bound box found in the SVG xml. you can see how it's doing it here: https://github.com/pixijs/pixi.js/blob/dev/src/core/textures/BaseTexture.js#L582 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 21, 2017 Share Posted June 21, 2017 There's also https://github.com/bigtimebuddy/pixi-svg Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted June 21, 2017 Share Posted June 21, 2017 1 hour ago, ivan.popelyshev said: There's also https://github.com/bigtimebuddy/pixi-svg will try that, how is that performance? 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.