largepuma Posted January 30, 2020 Share Posted January 30, 2020 Hi, I have about texture update problem using pixi.js v4. I use a canvas as the source of a texture. After creating the texture and binding the texture, I draw the canvas, and call texture.update(). When zooming out the container, the texture disappears gradually. (Please refer the attachment.) So I want to know why the texture disappears (I used webgl's instanced rendering). The source code is located at https://github.com/largepuma/pixi-demo. I'm willing to pay $100 for this problem. Thanks. Quote Link to comment Share on other sites More sharing options...
hayesmaker Posted January 30, 2020 Share Posted January 30, 2020 the demo doesnt display anything when I run it Quote Link to comment Share on other sites More sharing options...
gogoprog Posted January 30, 2020 Share Posted January 30, 2020 Your issue is related to mipmapping / min/mag filters. Quote Link to comment Share on other sites More sharing options...
gogoprog Posted January 30, 2020 Share Posted January 30, 2020 18 minutes ago, gogoprog said: Your issue is related to mipmapping / min/mag filters. Quote Link to comment Share on other sites More sharing options...
Carter W Posted January 31, 2020 Share Posted January 31, 2020 Hello, Greetings I'd Glad to assist you. PM Sent, Please Check. Very Best Regards Carter W Quote Link to comment Share on other sites More sharing options...
gogoprog Posted January 31, 2020 Share Posted January 31, 2020 On 1/30/2020 at 2:24 AM, largepuma said: Hi, I have about texture update problem using pixi.js v4. I use a canvas as the source of a texture. After creating the texture and binding the texture, I draw the canvas, and call texture.update(). When zooming out the container, the texture disappears gradually. (Please refer the attachment.) So I want to know why the texture disappears (I used webgl's instanced rendering). The source code is located at https://github.com/largepuma/pixi-demo. I'm willing to pay $100 for this problem. Thanks. The problem has been solved. Quote Link to comment Share on other sites More sharing options...
largepuma Posted January 31, 2020 Author Share Posted January 31, 2020 @gogoprog have help me to solved this problem. And this topic is closed. Thanks everyone. gogoprog 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 31, 2020 Share Posted January 31, 2020 (edited) Welcome to mipmaps. Yeah, v4 can do that, you need to disable mipmaps or make sure it regenerates every time. Btw, next time you encounter something like that - just post at https://www.html5gamedevs.com/forum/15-pixijs/ . If I got paid for every such problem I could kickstart a new game already and, of course, Welcome to the forums! Edited January 31, 2020 by ivan.popelyshev 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.