User Tag List

Results 1 to 9 of 9

Thread: Smooth pixels shader?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Smooth pixels shader?

    I know many games that are based on pixel graphics often lets the player choose in the option if they want to apply some sort of "smoothing" effect on the pixels. Is there any such effect that can be applied in mmf? Like a shader on a layer that is above everything else?

    A bit like this: https://dl.dropboxusercontent.com/u/...elVSsmotth.png

  2. #2
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mother of mercy! \o/

    Thanks for sharing!!!!!!!!

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by salamanderpants View Post
    This may interest you.
    That looks cool! But how do I use it properly? I tried it but I only got strange results :s

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    If I remember right, it uses the contents of the object / layer / frame to which it is applied.
    If you want it to use the background instead, you should be able to just open the .fx file and replace "img" with "bkd".

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    If I remember right, it uses the contents of the object / layer / frame to which it is applied.
    If you want it to use the background instead, you should be able to just open the .fx file and replace "img" with "bkd".
    That isn't what he meant. I can't get it to work either. It only makes things double-sized for me, no matter what you set the image size to be.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Of course it does - it's a Scale2x filter.

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    It would be really helpful if someone could upload an example of how to use it correctly

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    Of course it does - it's a Scale2x filter.
    Yes, but you setting the size higher makes the scaled image higher quality. Also, this version of Scale2x doesn't seem to just scale things to be double the original size, it seems to allow you to scale anything smoothly.

  9. #9
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    No. You only have to set the size because pixel shaders are resolution-independent. That other version is also 2x, but by applying it twice (once to the foreground and once to the background) it can do 4x - that's all. None of these pixel art scaling algorithms work with an arbitrary scaling factor.
    If all you want is anti-aliased resizing, there are tons of different ways to do that in MMF2 (shaders, extensions, built-in options, etc) - but it looks crap, so I wouldn't bother.

Similar Threads

  1. Tilemap Pixel Shader (aka "texture atlas" shader)
    By MuddyMole in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 10th May 2013, 08:21 PM
  2. Pink pixels on transparent graphics using Smooth resizing
    By Matriax in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 4th April 2013, 01:05 PM
  3. [RC3][Both renderers] White ghosting pixels with smooth scaling
    By DistantJ in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 2nd February 2013, 08:19 AM
  4. [Bug] Top pixels of Strings cut off
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 12th October 2012, 07:09 PM
  5. Limitation des pixels
    By Jymswiss in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 22nd March 2010, 11:35 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
  •