pixijs / filters

Collection of community-authored custom display filters for PixiJS

Home Page:https://pixijs.io/filters/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I used colorMapFilter to map the LUT image, but the effect was just to mask the original image

pzppzz opened this issue · comments

Sometimes I get this effect, which is exactly what I want.
image
But sometimes you get this effect.
image
This is the original image. The above two cases are the same colorMap.
image

Please provide more details, example. This issue is insufficient.

Please provide more details, example. This issue is insufficient.
Is that enough description now?

Are you reporting a bug or do you need help? I don't understand your issue.

It's always useful to provide a running example, so that it's easier to diagnose your issue. What does the LUT look like that you're using?

Are you reporting a bug or do you need help? I don't understand your issue.

It's always useful to provide a running example, so that it's easier to diagnose your issue. What does the LUT look like that you're using?

const colorMapFilter = new ColorMapFilter(lutImage, false, mix); this.colorMapFilter = colorMapFilter; this.sprite.filters = [colorMapFilter];
Lut image
cube
The same LUT image sometimes has different effects.
bug
Do you see this GIF image?
https://user-images.githubusercontent.com/89590352/187946222-dd641c19-1ffe-446f-9060-96c9609aa61b.gif

Are you sure you have completely loaded the LUT before applying this? This seems like a race-condition where the image isn't fully loaded and the height is only getting maybe a value of 1, which would the the first blue pixel. That could create some issues for sure.

this._size = colorMap.height;

Are you sure you have completely loaded the LUT before applying this? This seems like a race-condition where the image isn't fully loaded and the height is only getting maybe a value of 1, which would the the first blue pixel. That could create some issues for sure.

this._size = colorMap.height;

Thank you very much. My problem is solved.