User Tag List

Results 1 to 10 of 10

Thread: Changing object's color, but preserve luminosity?

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing object's color, but preserve luminosity?

    I want to give my object customizable colors, but I can't find a good way to do it.



    I tried making an object with an ink effect on top of my main object, but none of them worked either.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's no easy way with a single object, but there's a couple of ways I can think of:

    1. Have 2 objects - one is the RGB coefficient object (use a PNG with white where you want the colour to be). Then have another object ontop that uses additive and has the specular component (the white areas in your example)

    2. Have a transparent object on a white background and make the specular areas of your image semi-transparent - the more transparent the whiter it will be and use RGB coefficient. Alternatively have a white object behind it if you need it to move over other objects.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't manage to get anything other than over-saturated and contrasty results with the ADD effect.

    [Edit: actually, add is okay I think?, but it still prevents me from getting the saturation I want.]

    I made another image in photoshop where the dark colors equal transparency and white parts are visible, and it works pretty ok. It leaves me much less control over the saturation of the color though.



    edit2: I actually found out a way, more or less. I made an image in photoshop where any color from mid-gray is black, and then goes up, and then made the black parts invisible. And then another image with the opposite for light colors. It requires 3 image files (2 of which have an alpha channel) though, which highly increases filesize and my workload.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    "Multiply" would make more sense than "Add", but really you just want a pixelshader to adjust the Hue/Saturation/Lightness - I don't know if anyone has made one already, but if not, just google it and I'm sure you'll find something that can be easily adapted to work in MMF2.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But getting the bright colors to show up was the problem. I don't know any shader plugins either, maybe I should look for one.

    Here's a MFA if someone wants to see how I did it. https://dl.dropbox.com/u/32968627/Recolor.mfa
    It's very inconvenient though, and you need photoshop or something to make the white mask.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    See, it's really not hard to google for a pixelshader and then just create an .xml file for MMF2: http://sdrv.ms/X6VMGh

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah thanks, that seems pretty neat.
    It's not compatible with flash though, which /might/ be a problem. And also Android.

    I actually figured a way to make a perfect mask in photoshop, and made an action to do it automatically. Now I only need the mask object, and a flat color surface below it. Still quite inconvenient, but works.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tsun - Try this example - might be a bit simpler to understand and achieve. No plugins or shaders required. Single Active with White BG of frame.
    (It's funny you should ask for this as I only figured it out for myself a couple of weeks ago!)

    Be careful if you try it on an Active Picture for iOS exporter as it will look greyer than it should on device (fine in an Active though!) See this thread (if registered for iOS Exporter) for more details: http://community.clickteam.com/threads/79685-Bug-257-6-RGB-Tinting-of-Active-Picture-looks-wrong-on-iOS-device-compared-with-PC
    Attached files Attached files

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I would think that example would have extremely limited use considering you need to have a white BG in order to make it work.

  10. #10
    Clicker Multimedia Fusion 2
    GreenOnion's Avatar
    Join Date
    Oct 2012
    Location
    Sweden
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HueExample.zip

    Try that. It's not... Quite what you want, but ... Maybe it's useful for something else. I used the darken effect, and it almost works.

    Goddamn it.

    PS: Your profile picture is adorable.

Similar Threads

  1. Changing color with the draw object
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 9th October 2010, 11:41 AM
  2. Changing one word's color in string object
    By NLK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th August 2008, 12:39 PM
  3. Changing Color to the counter
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th April 2008, 09:52 AM
  4. Example for McPhisto: Color Changing Boxes
    By aidmm in forum File Archive
    Replies: 0
    Last Post: 31st January 2007, 03:43 AM
  5. Changing a Counter Color
    By Shmoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th January 2007, 03:21 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
  •