User Tag List

Results 1 to 8 of 8

Thread: filtering in a resized display

  1. #1
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    filtering in a resized display

    I posted about this in another thread but it's quite important for me so i'll make this thread in the hope to get a reply.

    When the frame display is smaller (say, 1/2) of the size of the game's window, and "resize display to fill window" is ticked, on PC, this will scale the display up with a simple "nearest-neighbour" interpolation, ie, without any smooth filtering.
    If the same app is run on an iOS device, the whole display will be filtered.

    The reason it's important for me to be able to turn this off, is because I want to make some games at 1/2 the actual screen size and scale up, with a pixel art style.
    The filtering applied on the device blurs all the edges of the graphics and makes the art look "fuzzy"

    I trust someone will understand what i mean. I consider it very important to be able to disable this on iOS. Is there a way to do it in the xcode project maybe?

  2. #2
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know what the policy on this forum is regarding bumping threads, but i really don't want this topic to get buried without some kind of answer

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I have researched this a bit but will need more time before I can give a definitive answer if this is possible or not

  4. #4
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for your effort Andos. The idea that it might just be outright impossible is very damning... No clean pixel art iOS games Sucks cause i developed quite a bit of a pixelart style game in MMF before i bought the iOS exporter, with the intention of porting it to that platform...

    Fingers crossed that this can be done...

  5. #5
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also: After looking around a bit i came across a similar discussion on this thread

    http://forums.toucharcade.com/archiv...p/t-71525.html

    Some programmers there seem to be discussing the methods to switch it on or off. Is this info applicable to an MMF object or setting?

  6. #6
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I found a way for it to scale without being smooth but for now it involves some manual code for you at the moment.
    Currently the flag for 'antialiasing while resizing' property flag is disabled, but I will ask Yves to enable it for the next version.

    To do this manually for now you can insert this line in Application/CRunViewController.m at line 31:
    runView.layer.magnificationFilter = kCAFilterNearest;

    This will make it all pixellated on a global basis but only if you use a small window size.

    With the normal window size: I have also been looking into making it work only on a per object basis when you use the 'scale' action using the quality parameter. I don't know if-or-when this will be added.

  7. #7
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I found a way for it to scale without being smooth but for now it involves some manual code for you at the moment.
    Currently the flag for 'antialiasing while resizing' property flag is disabled, but I will ask Yves to enable it for the next version.

    To do this manually for now you can insert this line in Application/CRunViewController.m at line 31:
    runView.layer.magnificationFilter = kCAFilterNearest;

    This will make it all pixellated on a global basis but only if you use a small window size.

    With the normal window size: I have also been looking into making it work only on a per object basis when you use the 'scale' action using the quality parameter. I don't know if-or-when this will be added.

  8. #8
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very very awesome, Andos. You've been nothing but helpful the whole time I've posted here. I'm trying my best to give something back to the community where i am able, and I hope I can repay your attentiveness some day.

Similar Threads

  1. Can you take a screenshot of the original pre-resized game screen display?
    By DinnerSonic in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th June 2013, 06:16 AM
  2. Turn of filtering?
    By mobichan in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 7th December 2011, 11:47 AM
  3. touch joystick disappears when display resized
    By Harry))) in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 31st October 2011, 09:57 AM
  4. Filtering Strings
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 25
    Last Post: 14th December 2009, 02:10 AM
  5. Linear Filtering?
    By stuckboy in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 19th July 2009, 01:10 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
  •