Skip to content
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

Polygon Mesh Sprites? #891

Open
endel opened this issue Jun 27, 2017 · 2 comments
Open

Polygon Mesh Sprites? #891

endel opened this issue Jun 27, 2017 · 2 comments

Comments

@endel
Copy link

endel commented Jun 27, 2017

Hey there,

Would be nice to support polygon sprites on EaselJS.

More info: https://www.codeandweb.com/blog/2015/10/01/cocos2d-x-performance-optimization
PIXI.js is going to have it soon. (pixijs/pixijs#2243)

@DavidHGillen
Copy link

It's on our internal radar but there's a few hoops to jump through to get it implemented in a flexible and sustainable way so I can't commit to a timeline at the moment. Feeding in non predictable geometry requires a way to define and use it that I have plans for but isn't in the current build.

@danzen
Copy link
Contributor

danzen commented Aug 9, 2023

There are provided vertices, etc. in TexturePacker. Has anyone had success in CreateJS with this - made a plugin, etc.?

"vertices": [ [147,74], [194,68], [204,200], [153,266], [56,267], [15,220], [1,180], [11,72], [64,70], [66,3], [132,1] ],
"verticesUV": [ [194,901], [200,948], [68,958], [2,907], [1,810], [48,769], [88,755], [196,765], [198,818], [265,820], [267,886] ],
"triangles": [ [8,9,10], [6,7,8], [5,0,2], [6,0,5], [5,3,4], [6,8,0], [0,1,2], [5,2,3], [0,8,10] ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants