jstoone Posted August 30, 2016 Share Posted August 30, 2016 Hi I am using a displacement map to distort three graphics lines. And since the lines have a speed, I need to move the displacement space at the same speed as the points, which define the lines. I do this, so that the line keeps it shape, and doesn't "wave" around. But it seems like there is an offset in the speeds at which they move, mostly at lower speeds, which makes the line change a bit of its shape. Is there a better way to achieve this effect, or is there some local/global positioning I'm overseeing with Pixi.js? Would It make sense to move the PIXI.Graphics themselves instead? Here is a simplified version of my project:https://jsfiddle.net/adL8wqwv/1/ There is also some jittering, which I'm unsure if is caused by missing antialiasing or something else... If any of you can spot how to smoothen out the graphics I'd be very happy. But the displacment + graphics offset mentioned above is my main priority so far. Feel free to ask any questions, if something needs to be clarified. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 30, 2016 Share Posted August 30, 2016 Your case is interesting, I'll help you later when I wont be that tired jstoone 1 Quote Link to comment Share on other sites More sharing options...
jstoone Posted August 31, 2016 Author Share Posted August 31, 2016 Thanks again Ivan, I really appreciate it! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 31, 2016 Share Posted August 31, 2016 How big are graphics coords? I'm still not here, but I remember there were about 4 threads about precision this month. If you have something like x1=2125 x2=2126 coords in graphics, you can just set graphics.position.x = 2000 and use local coords 125 and 126. 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.