Jump to content

Visual glitch on v4 + WebGL + TilingSprite


Michael Hoste
 Share

Recommended Posts

Hi guys,

I developed a PixiJS rewriting of XMoto for the web : http://js.xmoto.io/ (original version is here: https://xmoto.tuxfamily.org/)

Everything works quite well, but as I want to update PixiJS version from version 3 to 4, I get a weird visual glitch using WebGL and TilingSprite (it doesn't happen on canvas2D!).

Do you have any idea why this happens? Am I the only one having this issue as TilingSprites are quite common?

Staging version on V4 is here: http://staging.xmoto.io (you should directly see the glitch).

Open Source code is here: http://github.com/michaelhoste/xmoto.js

Typical code for sky is here: https://github.com/MichaelHoste/xmoto.js/blob/master/src/level_elements/sky.coffee#L30 and here: https://github.com/MichaelHoste/xmoto.js/blob/master/src/level_elements/sky.coffee#L51

I'm running on MacOS 10.12 (Sierra) on a mid-2012 macbook pro retina.

Do you see anything obvious ? :-)

Thanks

Capture d’écran 2016-10-16 à 10.03.10.png

Link to comment
Share on other sites

12 minutes ago, xerver said:

Can you try this with the latest dev? I think we fixed this bug:

https://github.com/pixijs/pixi.js/wiki/FAQs#where-can-i-get-a-build

Amazing! I tested it and it works great with the main branch.

I should have tried that before asking.

And, by the way, I had some bad WebGL performances only in Chrome when setting visible=true for many sprites on a short time. And it also seems fixed.

Great job guys!

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...