soylomass Posted October 6, 2019 Share Posted October 6, 2019 Hi, In my game I'm using Pixi 4 using this method (https://www.html5gamedevs.com/topic/39049-drawing-huge-objects/?tab=comments#comment-223277) to create textured polygons. I do it by dividing the polygons in triangles, then creating meshes with DRAW_MODES.TRIANGLES. It works on both WebGL and Canvas. In Pixi 5 we can just create a Graphics object and draw the textured polygon with beginTextureFill and drawPolygon. What is the most performant way? Does Pixi 5 method work in Canvas too? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 6, 2019 Share Posted October 6, 2019 > What is the most performant way? both are same. > Does Pixi 5 method work in Canvas too? no, we didnt add fallback yet, but its possible through CanvasPattern, of course. Quote Link to comment Share on other sites More sharing options...
soylomass Posted October 6, 2019 Author Share Posted October 6, 2019 7 minutes ago, ivan.popelyshev said: no, we didnt add fallback yet I was 1 minute away from doing the migration to PIXI v5 until this ? But maybe I should still do it, and use both methods depending on the user's device. 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.