nickero Posted April 30, 2017 Share Posted April 30, 2017 Hi. I try to fade-out animation with mesh object. My Problem is : mesh object doesn't look equally transparent when its alpha is between (0,1). It looks like attached .png file. Whats wrong with me? I checked vertices, uvs and index data but it seems correct as far as i can understand. I changed vertices index clockwise to counterclockwise and situation is changed, but can not get equally transparent. here is codepen: Quote Link to comment Share on other sites More sharing options...
nickero Posted May 12, 2017 Author Share Posted May 12, 2017 sry I get right result by adding PIXI.mesh.Mesh.DRAW_MODES.TRIANGLES to the constructor. but I do not know why TRIANGLE_MESH is wrong and the difference of them. What is the rendering rule of DRAW_MODES.TRIANGLES ? Is it like gl.TRIANGLE_STRIP ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 12, 2017 Share Posted May 12, 2017 According to https://github.com/pixijs/pixi.js/blob/dev/src/mesh/webgl/MeshRenderer.js#L124 , you are right. Sorry I wasnt there for last week or two I'm glad that you found it on your own. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 12, 2017 Share Posted May 12, 2017 Also, according to your pen, you are tring to morph the sprite. Please look at https://github.com/pixijs/pixi.js/pull/3842 , ill post its examples tomorrow and I hope to start reviewing process of that patch. It allows to use Rope/Plain instead of Sprite, morphing their coords. Quote Link to comment Share on other sites More sharing options...
nickero Posted May 13, 2017 Author Share Posted May 13, 2017 Thank you ivan for telling source code position and patch information. Great ! I look forward your activity. ivan.popelyshev 1 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.