MV Help with Applying Pixi Filters to Terrax Lighting

Hello,

I've been playing around with a combination of Pixi Filter Controller's dot filter and Terrax Lighting System. As seen in the first image below, when applied to the entire screen (filter-target: 0 or 1), the dot filter creates a sort of 'dithered' effect around the circumference of each light. It's an effect I like quite a bit since I feel it gives everything a more textured look.

However, when the dot filter is applied to the entire screen (filter-target: 0 or 1), it makes everything black and white. To work around this, I've had to apply individual dot filters for both characters and tiles, manually adding colors back in with separate adjustment filters (see second image). This technique only works so long as the dot filter is not applied to the entire screen, otherwise the dot filter will be applied overtop the adjustment filters and everything will be black and white again.

The issue is that filters cannot be individually applied to the Terrax lighting (notice the much smoother gradient to the lighting in the second image than in the first one). The only way to apply a dot filter to the Terrax lighting and create that 'dithered' effect is by applying it to the entire screen, which creates the aforementioned black and white issue.

(Note: I've also tried picture-based lighting plugins like Khas Advanced Lighting but have encountered the same issue)

Screenshot 2025-05-17 004023.png
Screenshot 2025-05-17 004215.png


Does anyone know if there's a way to apply a filter just to the Terrax lighting and not the entire screen?

Alternatively, is there a way to make it so that dot filters don't make everything black and white? This would also solve my problem. The PixiJS Filters Demo shows "grayscale" as a parameter that can be turned on and off, but Pixi Filter Controller lacks that same parameter. Does Pixi v4 not support that functionality?

Thank you very much.
it does exist, but some require a higher pixi version.
as aside from that part, PixiFilter has a ability to create your own,
so it can use that as well if not available in order to make it suit
your style (this require JS knowledge) as there is a sample
on that thread too.
it does exist, but some require a higher pixi version.
as aside from that part, PixiFilter has a ability to create your own,
so it can use that as well if not available in order to make it suit
your style (this require JS knowledge) as there is a sample
on that thread too.

Thanks! I'll look into making my own filter.
The code of Terrax lighting also has some issues. It creates new sprites every frame and remove the old ones. So filters never stay to take effect, even if you apply filters directly to them.
The code of Terrax lighting also has some issues. It creates new sprites every frame and remove the old ones. So filters never stay to take effect, even if you apply filters directly to them.

That's good to know. Thanks!
you can swap Terrax Lightning to CommunityLightning which
has many improvements and bug fixes.

khas also has a nasty bug (2 of them), but none seems to fix 1 of it.
the other one is array related and I fixed that for someone to avoid
conflicting with other plugins on that part.

Shora's lightning is nice alternative from khas if you want dynamic shadows.
Hi! Sorry if this is off-topic, but could you tell me how you created this cool colored dot effect?
Thanks in advance.
Hi! Sorry if this is off-topic, but could you tell me how you created this cool colored dot effect?
Thanks in advance.

Sure! No problem.

All I did was create a separate dot filter for both the 'map' (tiles + parallax) and the characters. From there, I then created several adjustment filters to add color to each element individually (i.e. one for the tiles, one for the parallax background, and so on). You can see an example I made below.

Screenshot 2025-06-13 141342.png
Screenshot 2025-06-13 141151.png


Importantly, using a single dot filter for the entire screen (target = 0) does not work for this effect as it covers up all the adjustment filters, making everything monochrome again. It only works if you create separate dot filters.

Warning: Doing it this way seems to cause an error when entering battle processing. This is a known issue on the Pixi Filter Controller thread. There were a few posts regarding it in the thread (it may take some searching). They linked some possible fixes on GitHub, but I wasn't able to get any of them to work. However, if you do figure out that issue, please let me know.

This is a known issue on the Pixi Filter Controller thread. There were a few posts regarding it in the thread (it may take some searching).

Here's the post with the GitHub link.
Sure! No problem.

All I did was create a separate dot filter for both the 'map' (tiles + parallax) and the characters. From there, I then created several adjustment filters to add color to each element individually (i.e. one for the tiles, one for the parallax background, and so on). You can see an example I made below.

View attachment 342840View attachment 342841

Importantly, using a single dot filter for the entire screen (target = 0) does not work for this effect as it covers up all the adjustment filters, making everything monochrome again. It only works if you create separate dot filters.

Warning: Doing it this way seems to cause an error when entering battle processing. This is a known issue on the Pixi Filter Controller thread. There were a few posts regarding it in the thread (it may take some searching). They linked some possible fixes on GitHub, but I wasn't able to get any of them to work. However, if you do figure out that issue, please let me know.
I'm having a strange problem with the plugin. For some reason, 31 and 32 don't work for me.
It's just 3, but not 31 or 32.
I'm having a strange problem with the plugin. For some reason, 31 and 32 don't work for me.
It's just 3, but not 31 or 32.

Could you send some images of your plugin commands and what it looks like when running?
Could you send some images of your plugin commands and what it looks like when running?
sorry for late reply, but there you go
Could you send some images of your plugin commands and what it looks like when running?

(My interface is in a different language, so I use Google Translate to translate it into English.)
sorry for late reply, but there you go

Hmm, I'm not entirely sure what the issue could be. Your plugin commands look fine. I would suspect it could be due to a collision between the Filter Controller and another plugin you have installed, particularly whatever you use to create that Mode 7 effect.

I would recommend turning off each of your other plugins individually to see if that fixes the issue. That would allow you to isolate which plugin is causing the conflict.

That being said, I hardly know anything about JavaScript so I could easily be wrong. If it continues to not work, you may want to create a separate thread requesting help.

Good luck with your game! That tall sprite with the sneakers looks really unique!
Hmm, I'm not entirely sure what the issue could be. Your plugin commands look fine. I would suspect it could be due to a collision between the Filter Controller and another plugin you have installed, particularly whatever you use to create that Mode 7 effect.

I would recommend turning off each of your other plugins individually to see if that fixes the issue. That would allow you to isolate which plugin is causing the conflict.

That being said, I hardly know anything about JavaScript so I could easily be wrong. If it continues to not work, you may want to create a separate thread requesting help.

Good luck with your game! That tall sprite with the sneakers looks really unique!
Even when I turn off Mode 7, the issue remains.
I also just tested on a clean project without any extra plugins and had the same problem.
I downloaded the plugin from GitHub and I think it's the latest version.

P.s This guy without dot effect.

Hmm, I'm not entirely sure what the issue could be. Your plugin commands look fine. I would suspect it could be due to a collision between the Filter Controller and another plugin you have installed, particularly whatever you use to create that Mode 7 effect.

I would recommend turning off each of your other plugins individually to see if that fixes the issue. That would allow you to isolate which plugin is causing the conflict.

That being said, I hardly know anything about JavaScript so I could easily be wrong. If it continues to not work, you may want to create a separate thread requesting help.

Good luck with your game! That tall sprite with the sneakers looks really unique!
Okay, I finally figured out what the problem was.
For some reason, the first link to the plugin is an old version that has this weird error.
However, the GitHub link is actually the correct one of latest version of the plugin.
For some reason, they also have the same update note, which is very confusing.

Anyway, thank you so much for explaining how you created this cool effect and for trying to help me.
🙂
Okay, I finally figured out what the problem was.
For some reason, the first link to the plugin is an old version that has this weird error.
However, the GitHub link is actually the correct one of latest version of the plugin.
For some reason, they also have the same update note, which is very confusing.

Anyway, thank you so much for explaining how you created this cool effect and for trying to help me.
🙂

Glad to see you cleared up the issue. Paired with the Mode 7, it looks really stylish!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-applying-pixi-filters-to-terrax-lighting.177730/