Filters not rendering on Android or with multiTexture: true

Aperta
#691 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend, game-dev

Direzione di ricerca

Start by comparing the Android filter examples linked in the issue with the Phaser 2.17.0 rendering path, then inspect the sprite input handling for filters. Also investigate how filters interact with multiTexture batching, using the reported ColorMatrix filter and screenshots as evidence. Done means sprite based filters render on Android and filters no longer corrupt batched graphics when multiTexture is enabled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Phaser versions: 2.14.0 +

On Android using a filter that uses a Sprite as a input seems to make the graphic vanish. I am not sure when this issue started but I can confirm from 2.14.0 + it occurs. I found this issue reported in the past here as well https://github.com/photonstorm/phaser-ce/issues/554 . Looking at the example at https://phaser.io/examples/v2/filters/blur the blur filter renders, but this example page seems to always use 2.6.2 regardless of what you select as the Phaser version (checked the console). Looking at https://samme.github.io/phaser-examples-mirror/filters/blur.html which renders with 2.17.0 nothing renders on Android. The same is true with all the filters that use sprites as a input (pixelate, gray, basic). Other filters that do not modify a PIXI/Phaser sprites appearance seem to work (fireball, rainbow bars, etc.). On desktop and iOS the filters seem to render correctly.

Phaser versions: 2.15.0 - 2.17.0

Additionally on desktop applying a filter on a sprite corrupts graphics in a batch when multiTexture: true is enabled. The filter I am using is a ColorMatrix filter I sourced from the PIXI 2.0 filters. The filter renders correctly with multiTexture: false . I have attached some screen shots showing the issue with multiTexture batching enabled.

Screenshot 2021-04-21 080908
Screenshot 2021-04-21 093547

Lingua principale
JavaScript
Stelle
1.4k
Fork
485
Merge medio
1g 2h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phaserjs/phaser-ce

Tutte le issue di phaserjs/phaser-ce

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.