본문 바로가기
RPG Maker MV/Pixi Filter

Tilemap Noise Filter - RPG Maker MV

by biud436 2017. 10. 15.


Introduction

This plugin applies the noise filter to the Tilemap. (Note that this plugin can use only in WebGL Mode)



I've not added a video due to automatically remove the noise in YouTube.


Installation

First Up, Download the plugin file and then put it in your project's js/plugins folder. After that open the Plugin Managers and then set up this plugin.


Script Calls

This plugin provides scripts calls so we can use scripts calls as follows. 


Enable/Disable Noise : 


This code indicates a noise on the screen.


$gameSystem.setNoiseProperty('enabledNoise', true);

$gameSystem.setNoiseProperty('enabledNoise', false);


a and b values can be changed an amount of noise. 


$gameSystem.setNoiseProperty('a', 0.1);

$gameSystem.setNoiseProperty('b', 0.2);


Set Default Value :  


x and y values can change an element of noise vector on the screen.


$gameSystem.setNoiseProperty('x', 12.9898);

$gameSystem.setNoiseProperty('y', 78.233);


Set Random Range :


This code randomly changes amount of the noise on each frame. It is the 2d vector which has x and y values in fragment shader.


$gameSystem.setNoiseProperty('minX', -3);

$gameSystem.setNoiseProperty('maxX', 3);

$gameSystem.setNoiseProperty('minY', -2);

$gameSystem.setNoiseProperty('maxY', 2);


Plugin Commands

Enable a noise filter.


Tilemap_noise Enable minNoiseAmount maxNoiseAmount

Tilemap_noise Enable 0.1 0.2


Randomly change amount of the noise on each frame. It is the 2d vector which has x and y values in fragment shader.


Tilemap_noise SetRandomX min max

Tilemap_noise SetRandomX -3 3

Tilemap_noise SetRandomY min max

Tilemap_noise SetRandomY -2 2


Disable a noise filter.


Tilemap_noise Disable


Download

Github RAW


Credit and Thanks

Biud436

Vico (Original Shader By PIXI)


Change Log

2016.08.28 (v1.0.0) - First Release.

2016.08.28 (v1.0.1) - Fixed noise issue.

2016.08.28 (v1.0.2) - Fixed render code and Added Script class and Plugin Commands.

2016.10.20 (v1.0.3) - Fixed the issue that is not working in RMMV 1.3.2

2016.11.26 (v1.0.4) - Added certain code to remove the texture from memory.

2017.10.15 (v1.0.5) - Fixed an issue that is not working in RMMV 1.5.1