ivan.popelyshev Posted June 28, 2016 Share Posted June 28, 2016 Oh, right, you have to change shader that way it does not use "uvs" at all. Remove them from attributes too. So we need the different class, not just the hack Use "tint" uniform as a color for your line. Also, add lineWidth as an option, just use the same webgl functions like you did in original Quote Link to comment Share on other sites More sharing options...
EvelynEve Posted June 29, 2016 Author Share Posted June 29, 2016 After looking into it more, I'm not sure if Mesh is the way to go. It would also require redoing the MeshRenderer.js to achieve full functionality. I was hoping there would be a better solution that isn't this messy. At this rate, I might as well just stick with native WebGL, which is really disappointing. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 @EvelynEve use pixi-v4, it will be easier that way. https://github.com/pixijs/pixi.js/tree/dev/ . Mesh in v4 is much smaller, and it will be much easier to modify it UPD. sorry for that, I thought you already using v4. Really, its MUCH easier to make plugins for v4. You can even use https://github.com/pixijs/pixi-plugin-example to build open-source plotting plugin Quote Link to comment Share on other sites More sharing options...
EvelynEve Posted June 29, 2016 Author Share Posted June 29, 2016 36 minutes ago, ivan.popelyshev said: @EvelynEve use pixi-v4, it will be easier that way. https://github.com/pixijs/pixi.js/tree/dev/ . Mesh in v4 is much smaller, and it will be much easier to modify it UPD. sorry for that, I thought you already using v4. Really, its MUCH easier to make plugins for v4. You can even use https://github.com/pixijs/pixi-plugin-example to build open-source plotting plugin I'll have to check it out! I was working on a pretty messy version of it and was just coming over to see if there was advice as I ran into some weird bugs (Keeps telling me the length is wrong but I have some logging proving the length I'm sending it is correct...). I'll update to v4 and attempt there instead of continuing with this monster haha. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 @EvelynEve next time just poke me for more info until it gets clear how to code non-monstrous thing Its better if you make it as open-source plugin, that way we'll be able to maintain it together. I realize that data is sensitive, but whole approach for plotting is not 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.