Jump to content

Question About Scrolling/Scaling


EvelynEve
 Share

Recommended Posts

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

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

@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 :)

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...