User Tag List

Results 1 to 5 of 5

Thread: [Request] Grayscale-based fadeout/fadein to/from black

  1. #1
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    Location
    /dev/null
    Posts
    417
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    [Request] Grayscale-based fadeout/fadein to/from black

    I'd like to request a effect shader that would create nice fadeout effect based on grayscale image the size of game's window (or whatever area would be affected).

    It should have three inputs:
    - Image, the image used as the base
    - Fade color, the color it will be faded to, default is black
    - Fade percentage (either as 0.0-1.0 or 0-100, doesn't really matter), which would tell the effect how much of the screen is to be cleared. 0=everything cleared to fade color.

    As for how it should work, it would be based on a grayscale "mask" (image input). Pixels under whitest pixels would be cleared first, while pixels under blackest mask's pixels would be cleared last. If anyone had any experience with RPG Maker XP, that's how transitions work there.

    Why I'm asking it if there is built-in transition system? Well, it's nice and all... until you want transition that isn't there. Effect like this would make it very easy to create your own transition, just make special image and then manipulate effect coefficient to get fade-in/out effect (either move from 0 to 100/0.0 to 1.0 or viceversa over time to fade).

    Any takers?

  2. #2
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zetcom's Avatar
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can You make an animated gif example for Your effect?

  3. #3
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    Location
    /dev/null
    Posts
    417
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Not sure I know how to make one that would represent effect I'm after well.

    I'll try to explain again: The effect would clear screen to specific color using a mask image over time (time being represented by Fade percentage value and would be driven by events for maximum flexibility). Whitest pixels would be removed (erased) first, for convenience and ease of implementation, let's say ones with highest R value, then as percentage rises/lowers more pixels are erased/shown based on the mask image.

  4. #4
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    Location
    /dev/null
    Posts
    417
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    OK, had more thought about it so I've opened my RPG Maker XP (also from humble) which has this built in and here how it looks like in action:



    Of course it works a bit differently there, but should be possible to replicate via a shader.

    //edit: WTF video tag doesn't support youtu.be links?

  5. #5
    Clicker Fusion 2.5 MaciOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Shadoku's Avatar
    Join Date
    Jul 2006
    Posts
    72
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I know this is an old post, but I needed an effect like this for my own project, figured someone else might find it useful.

    GreyscaleFade.zip

Similar Threads

  1. Cloud Based Multiplayer Request
    By wpd in forum Fusion 2.5
    Replies: 6
    Last Post: 8th August 2017, 04:20 PM
  2. Turn Based Grid Based Following
    By sgtpieman in forum Fusion 2.5
    Replies: 4
    Last Post: 12th May 2014, 08:41 AM
  3. How do you render black (0,0,0, 255)?
    By redpandagames in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 7th October 2012, 11:42 PM
  4. Using FadeIn FadeOut
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th June 2008, 04:36 PM
  5. [Request] Red-black tree extension
    By MattEsch in forum Extension Development
    Replies: 2
    Last Post: 4th June 2008, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •