User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Selective saturation

  1. #1
    Clicker Fusion 2.5Install Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    TreyM's Avatar
    Join Date
    Apr 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selective saturation

    I'm not sure if a shader or other method exists for MMF that does this, but I would like to have the ability to selectively reduce or increase saturation with a specified greyscale image like an alpha map. Similar to the way looki's lens shader works. For example, I would like to be able to have the entire frame desaturate to greyscale using an an animated/rescaled circular gradient (obviously not visible to the player since it's for the shader only) moving outwards from my character with the color essentially getting wiped away within the circle until the whole scene is completely desaturated. Is there a current way to do this that I am missing? If there is not, can someone look into creating a shader to do so?

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You didn't say the magic word.
    ...but since I'm feeling charitable, I made you a pixelshader anyway: http://sdrv.ms/Z8mqLU

  3. #3
    Clicker Fusion 2.5Install Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    TreyM's Avatar
    Join Date
    Apr 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much. This will help me out a ton.

    Here is a demonstration of the effect in action using the lens effect in tandem: http://dl.dropbox.com/u/7461878/SaturationMask_Demo.mfa

    The gradients are fairly hi-res 2K images.
    You can control the scale of the gradient with the A & D keys.


  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    The screenshot looks good, but I can't run the .mfa because I don't have the background shader (and the link for it goes to the old forums, which have been closed).
    Would you mind posting the .fx and .xml files, please?

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Thanks Marvin, but I meant the background lens shader ("Looki Background Lens.fx") - sorry, I should have said that.

    EDIT: Never mind - I just renamed the normal "lens.fx" and it seems to work. Nice effect, Trey

  7. #7
    Clicker Fusion 2.5Install Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    TreyM's Avatar
    Join Date
    Apr 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again, MuddyMole. Just what I needed.

    BTW, here are the ovine shaders you needed: http://dl.dropbox.com/u/7461878/Ovine.zip

    I will be making a game using this and would like to place your name in the credits. I can use your forum name or you can PM me your proper name if you would like.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the shader files. Don't worry about the credits - it's not a big deal.

  9. #9
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Good Job MM. I never knew you was a dab hand with HLSL... can we expect anymore in the future?

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I'm not. I don't know the first thing about HLSL - I just guessed how to modify one of the other shaders (ColorDodge.fx), based on this: http://www.tedlindstrom.se/?p=275
    I made a shader for brightness & contrast a little while back too.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Hue Saturation
    By diefox in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th October 2011, 10:18 PM
  2. Selective Color Replace?
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th February 2010, 06:08 PM
  3. Erreur windows selective...
    By Calimero in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th November 2007, 01:58 PM
  4. [request] Runtime Hue Saturation For ActivePicture
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th November 2006, 06:02 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
  •