Jump to content

[Paied]Pixi.js v4 texture update problem


largepuma
 Share

Recommended Posts

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.

pixi-demo.gif

Link to comment
Share on other sites

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.

pixi-demo.gif

 

The problem has been solved.

 

Link to comment
Share on other sites

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 by ivan.popelyshev
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...