Applying a Filter to a Group breaks mask

Aperta
#173 5 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
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
game-dev

Direzione di ricerca

Start with src/pixi/display/DisplayObjectContainer.js near the linked _renderWebGL reference, then trace how WebGLSpriteBatch and FilterManager interact with group masks. Use the live example to reproduce the filter and mask combination; done means the gray boxes appear only above the green line when both are applied.

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

Descrizione

bug help wanted
  • A bug in the API:
    • Phaser version(s): 2.7.6 probably >= 2.7
    • Live example: https://codepen.io/Nan0C/pen/RVabZZ
    • Reproduce:
      a. Create a Group with one or more sprites
      b. Apply a Filter and mask to the group
    • What should happen: Filter and mask should be applied to the group. The gray boxes should only be visible above the green line
    • What happens instead: Applying a filter breaks the mask applied to the group. The boxes are visible under the green line

This issue has probably something to do with the issues #39 #153 #154

I assume its a problem with the WebGLSpriteBatch or the FilterManager, since the bug happens after the PIXI.DisplayObjectContainer.prototype._renderWebGL method. Commenting out the parts where a Filter is applied makes the mask work again(obviously because its not used)[DisplayObjectContainer.js#L500]

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.