Applying a Filter to a Group breaks mask

オープン
#173 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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]

主要言語
JavaScript
スター
1.4k
フォーク
485
平均マージ
1日 2時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phaserjs/phaser-ce のほかの issue

phaserjs/phaser-ce の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。