fanjules Posted April 5, 2017 Share Posted April 5, 2017 Is it possible to add new vertices to a Pixi Mesh object? It seems possible to alter existing vertices but not to add new ones, since an indices property is not listed in the docs, only verts and UVs. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 5, 2017 Share Posted April 5, 2017 Its possible, please look at "PIXI.mesh.Rope" implementation. The idea is to make new arrays on resize, or may be make some capacity vertices first. Also I'm implementing new mesh plugin where its possible, i'll publish it next week. Anyway, docs wont help you with mesh, please look at sources. https://github.com/pixijs/pixi.js/tree/dev/src/mesh May be its possible to hack MeshRenderer that way it renders variable number of triangles. 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.