设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 86|回复: 0

[转载发布] Wave Filter

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式

    Wave Filter 1.5.10
        by Biud436





    Introduction
        This plugin applies the wave effect to the sprite by using the Fragment Shader.


    Features
        - This only works in WebGL mode.


        - You can use four properties called wave_amp and wave_length and wave_speed and wave_phase on Sprite. the sprite object can set these properties or return their properties.


    Screenshots / Video

    Spoiler



    Click to expand...


    https://www.youtube.com/embed/aZLwL3Sf2Wk











    How to Use

    Spoiler

    • Sprite
    Create a sprite by loading the bitmap image and set the wave to true. The following code applies the wave effect to Sprite.

    // Create Sprite
    var bitmap = ImageManager.loadSvEnemy('Death');
    var sprite = new Sprite(bitmap);
    SceneManager._scene.addChild(sprite);

    // Enable Wave
    sprite.wave = true;

    It is possible to use the Sprite Wave Properties like RPG Maker VX Ace.

    wave : The default value is false.
    wave_amp : You must set the the value is a floating point number between 0 and 1
    wave_length
    : You must set the value is a number between 0 and max-height of the sprite.
    wave_speed : The default value is to 0.25
    wave_phase :
    The default value is to 360



    • Picture

    This plugin command would activate the wave effect to your picture:

    PictureWaveStart picture_id wave_speed wave_amp​
       - picture_id : Specify the id of the game picture.
       - wave_speed : The speed of the wave effect. if the value is to 0, the wave speed will slow down, if the value is 1, it will make a speed is the fastest. The available value is the number between 0 and 1. The default value is to 0.25
       - wave_amp : Amplitude of the wave. if you are set the Amp value with the large value, The image may not be visible. So you must set it to the appropriate value. Likewise, The available value is the number between 0 and 1. The default value is to 0.05

    This plugin command would deactivate the wave effect of your picture:

    PictureWave Stop picture_id
       - picture_id : Specify the id of the game picture.​




    • Tilemap
    The following plugin commands apply the wave effect to Tilemap. This plugin contains these six types them.

    This plugin commands allow you to enable or disable the wave effect.


                        Tilemap_Wave Enable
                        Tilemap_Wave Disable

    This plugin command allows you to set the speed of the wave effect.  the x is a floating-point number between 0 and 1. Default value is to 0.25



                        Tilemap_Wave waveSpeed x

    This plugin command allows you to set the amplitude of the wave effect. the x is a floating-point number between 0 and 1. Default value is to 0.02



                        Tilemap_Wave waveFrequency x

    This plugin command allows you to set the UV speed of the wave effect. the x is a floating-point number between 0 and 1. Default value is to 0.25



                        Tilemap_Wave UVSpeed x



    • Event Notetags

    Note tags :

    These note tags allow you to enable or disable the wave effect.
         <WAVE true>
         <WAVE false>

    This note tag allows you to set the amplitude of the wave effect.
    the x is a floating-point number between 0 and 1.
    the default value is to 0.02

         <WAVE_AMP x>

    This note tag allows you to set the speed of the wave effect.
    the x is a floating-point number between 0 and 1.
    the default value is to 0.25

        <WAVE_SPEED x>


    • Battle Notetag
    These note tags allow you to set the wave effect.
    You have to put the note tags in the note area of the map properties.

       <BATTLEBACK_WAVE : x y>

       These values must replace by a real value such as 0.02
       - x : the x value is the same as a waveFrequency.
       - y : the y value is the same as a waveSpeed.

       For Example :
       <BATTLEBACK_WAVE : 0.02 0.25>

    When using Yanfly's Action Sequence Pack 1, you can enable its filter too.
    This function has the pointer of the Spriteset_Battle and easy to use.

       eval: $gameTemp.setBattleBackWaveEffect(cond, waveAmp, waveSpeed);
         - cond : Specify true or false whether the wave effect is used.
         - waveAmp : the default value is to 0.02
         - waveSpeed : the default value is to 0.25





    Plugin

    Github RAW - Save button appears when you right-click on the link.
    Download (ZIP file) - DownGit

    Change Log

    Spoiler2016.01.14 (v1.0.0) - First Release.
                 2016.01.16 (v1.0.1) - Added the function to remove the filter.
                 2016.01.18 (v1.1.0) - Added the plugin command.
                 2016.01.22 (v1.2.0) - Fixed the Save and Load bug
                 2016.02.16 (v1.3.0) - Fixed Bug (After the player came back to Menu, you had to set the wave effect again)
                 2016.02.26 (v1.3.1) - Fixed the default padding value of the sprite. (default value is to 512)
                 2016.03.03 (v1.3.2) - Added new Sprite Properties (wave_amp, wave_speed, wave_length, wave_phase)
                 2016.08.17 (v1.4.0) - Fixed the issue that is not working in RMMV 1.3.0
                 2016.08.18 (v1.5.0) - supports a wave filter in ShaderTilemap.
                 2016.10.20 (v1.5.1) - Fixed the issue that is not working in RMMV 1.3.2
                 2016.11.10 (v1.5.2) - Fixed the issue that is not working in Orange Overlay plugin.
                 2016.11.18 (v1.5.3) - Fixed an issue where the original tilemap is rendered when using Orange Overlay plugin.
                 2016.11.26 (v1.5.4) - Added certain code to remove the texture from memory.
                 2016.11.30 (v1.5.5) - Fixed the issue that has the black border lines in a filter area.
    2017.12.10 (v1.5.6) - Added the plugin command called 'PictureWave' (it is tested on 1.6.0 beta version)
    2018.04.12 (v1.5.7) - Fixed a cutting issue (added filterArea..)
    2018.04.13 (v1.5.7c) - Added the event note tags that can have the wave effect directly for an event graphic.
    2018.04.15 (v1.5.7e) - Added a new feature that can apply the wave filter in the battle background images
    2018.04.25 (v1.5.7f) - Fixed the note tag error in Battle Test.
    2018.05.09 (v1.5.8) - Fixed the bug that is not working the wave filter for the battleback image.
    2018.11.01 (v1.5.9) :
    - Fixed the issue that the wave filter is not working in the game picture.
    - Fixed the issue that the wave effect do a horizontal looping likes as Tiling Sprite.
    2018.11.29 (v1.5.10) :
    - Fixed the bug that causes an error when calling Erase Event event command.






    Credit and Thanks
        - Biud436


    Terms of Use
        Free for commercial and non-commercial use.


    本贴来自国际rpgmaker官方论坛作者:biud436处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/wave-filter.58874/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 06:39 , Processed in 0.090963 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表